Skip to content

Commit

Permalink
Merge branch 'main' into version-restore
Browse files Browse the repository at this point in the history
  • Loading branch information
yihuang authored Jul 25, 2023
2 parents 4e3213c + 35a40d2 commit 3b9b44d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions memiavl/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,6 @@ func (db *DB) RewriteSnapshot() error {
snapshotDir := snapshotName(db.lastCommitInfo.Version)
tmpDir := snapshotDir + "-tmp"
path := filepath.Join(db.dir, tmpDir)
if err := os.MkdirAll(path, os.ModePerm); err != nil {
return err
}
if err := db.MultiTree.WriteSnapshot(path); err != nil {
return errors.Join(err, os.RemoveAll(path))
}
Expand Down

0 comments on commit 3b9b44d

Please sign in to comment.