diff --git a/lib/storage/metadata/mongoclient/readStream.js b/lib/storage/metadata/mongoclient/readStream.js index d7e47f748..3531a0341 100644 --- a/lib/storage/metadata/mongoclient/readStream.js +++ b/lib/storage/metadata/mongoclient/readStream.js @@ -15,7 +15,7 @@ class MongoReadStream extends Readable { objectMode: true, highWaterMark: 0, }); - this.numberOfReadStreamOpen++; + MongoReadStream.numberOfReadStreamOpen++; if (options.limit === 0) { return; @@ -151,7 +151,7 @@ class MongoReadStream extends Readable { return; } this._destroyed = true; - this.numberOfReadStreamClosed++; + MongoReadStream.numberOfReadStreamClosed++; this._cursor.close().catch(err => { if (err) {