Skip to content

Commit 3eab205

Browse files
Update packages/mongodb-log-writer/src/mongo-log-manager.ts
Co-authored-by: Anna Henningsen <[email protected]>
1 parent 50e0889 commit 3eab205

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/mongodb-log-writer/src/mongo-log-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export class MongoLogManager {
144144
// To handle such scenarios, we will catch lstat errors and retry cleaning up
145145
// to let different processes reach out to different log files.
146146
if (statErr.code === 'ENOENT' && remainingRetries > 0) {
147-
await this.cleanupOldLogFiles(maxDurationMs - Date.now() - deletionStartTimestamp, remainingRetries - 1);
147+
await this.cleanupOldLogFiles(maxDurationMs - (Date.now() - deletionStartTimestamp), remainingRetries - 1);
148148
}
149149
}
150150

0 commit comments

Comments
 (0)