Skip to content

Commit c32c1e7

Browse files
committed
Bringing back "Lock current server id from appending"
This code was in PR #113, but got lost in merge process
1 parent 20c702a commit c32c1e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/v1/internal/ch-node.js

+4
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ function storeFingerprint( serverId, knownHostsPath, fingerprint, cb ) {
8383
return cb(null);
8484
}
8585

86+
// we make the line as appended
87+
// ( 1 is more efficient to store than true because true is an oddball )
88+
_lockFingerprintFromAppending[serverId] = 1;
89+
8690
// If file doesn't exist, create full path to it
8791
try {
8892
fs.accessSync(knownHostsPath);

0 commit comments

Comments
 (0)