mirror of https://gitee.com/bigwinds/arangodb
control the agency dumper via whether we launched an agency or not (#9058)
This commit is contained in:
parent
70cccc3c89
commit
8db0acae79
|
@ -1155,7 +1155,7 @@ function shutdownInstance (instanceInfo, options, forceTerminate) {
|
|||
timeout *= 2;
|
||||
}
|
||||
|
||||
if ((toShutdown.length > 0) && (options.cluster === true) && (options.dumpAgencyOnError === true)) {
|
||||
if ((toShutdown.length > 0) && (options.agency === true) && (options.dumpAgencyOnError === true)) {
|
||||
dumpAgency(instanceInfo, options);
|
||||
}
|
||||
var shutdownTime = internal.time();
|
||||
|
@ -1377,6 +1377,7 @@ function startInstanceCluster (instanceInfo, protocol, options,
|
|||
return [subArgs, subDir];
|
||||
};
|
||||
|
||||
options.agency = true;
|
||||
options.agencyWaitForSync = false;
|
||||
let usedPorts = [];
|
||||
options.usedPorts = usedPorts;
|
||||
|
|
Loading…
Reference in New Issue