mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-04 10:07:28 +01:00
Merge pull request #944 from seaweedfs/fix/checkpoint-single-retire
storage: the owned-map checkpoint retires its dirty entries once
This commit is contained in:
commit
59eef13285
1 file changed
+5
-9
@@ -164,15 +164,11 @@ func (s *WALStore) persistOwnedMapCheckpointV3(highestLSN, recoveryGen uint64) e
|
||||
}
|
||||
return s.rolloverCheckpointV3Locked()
|
||||
}
|
||||
// The extent was fsynced by the flusher.
|
||||
d, err := s.publishCheckpointV3(cp, false, recoveryGen)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
s.mu.Lock()
|
||||
s.checkpointedV3Locked(d.CheckpointLSN)
|
||||
s.mu.Unlock()
|
||||
return nil
|
||||
// The extent was fsynced by the flusher. The publication sets the
|
||||
// checkpoint and retires the dirty entries at or below it itself
|
||||
// (checkpointedV3Locked, under the store lock it holds).
|
||||
_, err := s.publishCheckpointV3(cp, false, recoveryGen)
|
||||
return err
|
||||
}
|
||||
|
||||
// publishCheckpointV3 is the one v3 checkpoint publication (plan row 9: the
|
||||
|
||||
Reference in new issue
Block a user