remove duplicate pendingTransfer++

This commit is contained in:
Simon Smith 2023-09-15 14:41:41 +01:00 committed by GitHub
parent 53a96fb26b
commit bca4f1c217
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

1
db.js
View File

@ -3252,7 +3252,6 @@ module.exports.CreateDB = function (parent, func) {
for (var i in docs) {
obj.pendingTransfer++;
eventRecordsTransferCount++;
for (var b in docs[i].ids) { if (docs[i].ids[b] != '*') { obj.pendingTransfer++; } }
obj.StoreEvent(docs[i], function () { obj.pendingTransfer--; });
}
}