We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50e0889 commit 3eab205Copy full SHA for 3eab205
packages/mongodb-log-writer/src/mongo-log-manager.ts
@@ -144,7 +144,7 @@ export class MongoLogManager {
144
// To handle such scenarios, we will catch lstat errors and retry cleaning up
145
// to let different processes reach out to different log files.
146
if (statErr.code === 'ENOENT' && remainingRetries > 0) {
147
- await this.cleanupOldLogFiles(maxDurationMs - Date.now() - deletionStartTimestamp, remainingRetries - 1);
+ await this.cleanupOldLogFiles(maxDurationMs - (Date.now() - deletionStartTimestamp), remainingRetries - 1);
148
}
149
150
0 commit comments