Skip to content

Commit

Permalink
improve comment wording
Browse files Browse the repository at this point in the history
  • Loading branch information
kolesnikovae authored Nov 19, 2024
1 parent f99ad46 commit d82aa6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/experiment/metastore/fsm/boltdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ func newDB(logger log.Logger, metrics *metrics, dir string) *boltdb {

// open creates a new or opens an existing boltdb database.
//
// The only case when we open the database in read-only mode is when we
// restore it from a snapshot: before closing the database being in-use,
// we open the snapshot in read-only mode to verify its integrity.
// The only case in which we open the database in read-only mode is when we
// restore it from a snapshot: before closing the database in use, we open
// the snapshot in read-only mode to verify its integrity.
//
// Read-only mode guarantees the snapshot won't be corrupted by the current
// process, and allows loading the database more quickly (by skipping the
// process and allows loading the database more quickly (by skipping the
// free page list preload).
func (db *boltdb) open(readOnly bool) (err error) {
defer func() {
Expand Down

0 comments on commit d82aa6a

Please sign in to comment.