Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem: memiavl leave tmp directories behind #1099

Merged
merged 12 commits into from
Jul 13, 2023
Prev Previous commit
Merge remote-tracking branch 'origin/main' into cleanup_tmp
  • Loading branch information
mmsqe committed Jul 13, 2023
commit c09896c9754c5f5852fe8bfc8ea9f5324fca8b17
5 changes: 5 additions & 0 deletions memiavl/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,11 @@ func removeTmpDirs(rootDir string) error {
return nil
}

// ReadOnly returns whether the DB is opened in read-only mode.
func (db *DB) ReadOnly() bool {
return db.readOnly
}

// SetInitialVersion wraps `MultiTree.SetInitialVersion`.
// it do an immediate snapshot rewrite, because we can't use wal log to record this change,
// because we need it to convert versions to wal index in the first place.
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.