1
0
Fork 0

control the agency dumper via whether we launched an agency or not (#9058)

This commit is contained in:
Wilfried Goesgens 2019-05-23 14:50:44 +02:00 committed by Jan
parent 70cccc3c89
commit 8db0acae79
1 changed files with 2 additions and 1 deletions

View File

@ -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;