Commit 3e60436
authored
Filestore fixes (#7508)
This PR makes the following fixes in the filestore:
* `indexCacheBuf` no longer tries to correct `fseq`, since the head
hole-filling should have already identified the gap;
* `writeMsgRecordLocked` now only replaces the cache `fseq` if writing
the first index;
* An off-by-one error in tail hole-filling that could mark one sequence
as incorrectly deleted and altogether miss the last one has been fixed;
* Skip messages are now written without releasing and re-acquiring the
message block mutex.
Signed-off-by: Neil Twigg <[email protected]>1 file changed
+10
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4537 | 4537 | | |
4538 | 4538 | | |
4539 | 4539 | | |
4540 | | - | |
4541 | | - | |
4542 | 4540 | | |
4543 | | - | |
4544 | | - | |
| 4541 | + | |
| 4542 | + | |
| 4543 | + | |
| 4544 | + | |
4545 | 4545 | | |
4546 | 4546 | | |
4547 | 4547 | | |
| |||
4629 | 4629 | | |
4630 | 4630 | | |
4631 | 4631 | | |
4632 | | - | |
4633 | | - | |
4634 | 4632 | | |
4635 | | - | |
| 4633 | + | |
| 4634 | + | |
4636 | 4635 | | |
4637 | 4636 | | |
4638 | 4637 | | |
| |||
6399 | 6398 | | |
6400 | 6399 | | |
6401 | 6400 | | |
6402 | | - | |
| 6401 | + | |
| 6402 | + | |
6403 | 6403 | | |
6404 | 6404 | | |
6405 | | - | |
6406 | | - | |
6407 | 6405 | | |
6408 | 6406 | | |
6409 | 6407 | | |
| |||
7097 | 7095 | | |
7098 | 7096 | | |
7099 | 7097 | | |
7100 | | - | |
7101 | | - | |
7102 | | - | |
7103 | | - | |
7104 | 7098 | | |
7105 | 7099 | | |
7106 | 7100 | | |
| |||
7143 | 7137 | | |
7144 | 7138 | | |
7145 | 7139 | | |
7146 | | - | |
7147 | | - | |
| 7140 | + | |
| 7141 | + | |
7148 | 7142 | | |
7149 | 7143 | | |
7150 | 7144 | | |
| |||
0 commit comments