Skip to content

Commit

Permalink
feat: adjust maxDurationMs
Browse files Browse the repository at this point in the history
  • Loading branch information
alenakhineika committed Feb 7, 2025
1 parent 7eb4d23 commit 34a3e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mongodb-log-writer/src/mongo-log-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export class MongoLogManager {
// To handle such scenarios, we will catch lstat errors and retry cleaning up
// to let different processes reach out to different log files.
if (statErr.code === 'ENOENT' && remainingRetries > 0) {
await this.cleanupOldLogFiles(maxDurationMs, remainingRetries - 1);
await this.cleanupOldLogFiles(maxDurationMs - Date.now() - deletionStartTimestamp, remainingRetries - 1);
}
}
}
Expand Down

0 comments on commit 34a3e48

Please sign in to comment.