mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-09 06:31:02 +00:00
Fix RBF checkpoint off-by-one WAL ID issue
This commit is contained in:
parent
d826cec4b3
commit
3429421148
1 changed files with 1 additions and 1 deletions
|
|
@ -250,7 +250,7 @@ func (db *DB) checkpoint(exclusive bool, mu sync.Locker) error {
|
|||
|
||||
// Loop over pages in the transaction.
|
||||
for ; walID <= metaWALID; walID++ {
|
||||
canCheckpoint := exclusive || minActiveWALID == 0 || walID <= minActiveWALID
|
||||
canCheckpoint := exclusive || minActiveWALID == 0 || walID < minActiveWALID
|
||||
|
||||
page, err := readWALPage(segments, walID)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue