Commit 757ca13
committed
Make rotated log filenames collision-free with a per-stream sequence
Rotated filenames used a millisecond timestamp, so two rotations within the
same millisecond (observed on fast CI) produced identical names. Append a
per-stream incrementing sequence to each rotated filename to guarantee
uniqueness. Fixes the intermittent test_size_triggers_rotation failure.1 parent ec9aa7b commit 757ca13
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
| |||
745 | 748 | | |
746 | 749 | | |
747 | 750 | | |
| 751 | + | |
748 | 752 | | |
749 | 753 | | |
750 | | - | |
| 754 | + | |
| 755 | + | |
751 | 756 | | |
752 | 757 | | |
753 | 758 | | |
| |||
0 commit comments