Update store/store.go

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Philip O'Toole
2025-12-08 21:29:32 -05:00
committed by GitHub
parent 73c05b5f88
commit d2d7b3c772

View File

@@ -1790,9 +1790,9 @@ func (s *Store) Load(lr *proto.LoadRequest) error {
// is regenerated. This will ensure a fast restart after a load, if one is
// requested. However we don't want to fail the load if the snapshot fails
// for any reason.
if err := s.Snapshot(0); err != nil {
s.logger.Printf("snapshot after load failed: %s", err.Error())
}
if err := s.Snapshot(0); err != nil && err != ErrNothingNewToSnapshot {
s.logger.Printf("snapshot after load failed: %s", err.Error())
}
stats.Add(numLoads, 1)
return nil