Commit 1797a6f
committed
Don't scan for valid messages when deleting
Looking for valid messages before deleting a message store file
was an old check for extra safety. However, it is a bottleneck
under intense workload: it can take a few seconds to delete a file
(a vast majority of that spent scanning for messages), while new
files can be created faster than that. That leads to the disk usage
growing, even if the number of messages in the queues is not.
We are not aware of any situations where this check actually found
valid messages in a file that was requested to be deleted.
This is a well tested code path a this point, so let's just remove
the extra check.1 parent 7289487 commit 1797a6f
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2123 | 2123 | | |
2124 | 2124 | | |
2125 | 2125 | | |
2126 | | - | |
2127 | | - | |
2128 | | - | |
| 2126 | + | |
| 2127 | + | |
| 2128 | + | |
2129 | 2129 | | |
2130 | 2130 | | |
2131 | 2131 | | |
| |||
2134 | 2134 | | |
2135 | 2135 | | |
2136 | 2136 | | |
2137 | | - | |
2138 | 2137 | | |
2139 | 2138 | | |
2140 | 2139 | | |
| |||
0 commit comments