cluster: fix permanent deoptimizations
PR-URL: https://github.com/nodejs/node/pull/12456 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
e8a429075f
commit
033ea9974f
@ -99,7 +99,7 @@ function shared(message, handle, indexesKey, cb) {
|
|||||||
delete handles[key];
|
delete handles[key];
|
||||||
delete indexes[indexesKey];
|
delete indexes[indexesKey];
|
||||||
return close.apply(this, arguments);
|
return close.apply(this, arguments);
|
||||||
};
|
}.bind(handle);
|
||||||
assert(handles[key] === undefined);
|
assert(handles[key] === undefined);
|
||||||
handles[key] = handle;
|
handles[key] = handle;
|
||||||
cb(message.errno, handle);
|
cb(message.errno, handle);
|
||||||
@ -192,7 +192,7 @@ function _disconnect(masterInitiated) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const key in handles) {
|
for (var key in handles) {
|
||||||
const handle = handles[key];
|
const handle = handles[key];
|
||||||
delete handles[key];
|
delete handles[key];
|
||||||
waitingCount++;
|
waitingCount++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user