Skip to content

Commit

Permalink
fix: prevent panic when bad checkpoint happens
Browse files Browse the repository at this point in the history
  • Loading branch information
erayarslan committed Apr 26, 2024
1 parent f0e765a commit 871d9dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions couchbase/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ func (s *cbMetadata) Load(

if err != nil {
doc = models.NewEmptyCheckpointDocument(bucketUUID)
logger.Log.Warn("corrupted checkpoint, vbID: %d, key: %v, err: %v", vbID, id, err)
err = nil
} else {
exist = true
}
Expand Down

0 comments on commit 871d9dd

Please sign in to comment.