Skip to content

Commit 79b8d8d

Browse files
authored
chore: fix some typos in comment (#13369)
Signed-off-by: suranmiao <[email protected]>
1 parent d802f8b commit 79b8d8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

blockstore/badger/blockstore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func (b *Blockstore) unlockMove(state bsMoveState) {
241241
//
242242
// The blockstore MUST accept new writes during the move and ensure that these
243243
// are persisted to the new blockstore; if a failure occurs aboring the move,
244-
// then they must be peristed to the old blockstore.
244+
// then they must be persisted to the old blockstore.
245245
// In short, the blockstore must not lose data from new writes during the move.
246246
func (b *Blockstore) movingGC(ctx context.Context) error {
247247
// this inlines moveLock/moveUnlock for the initial state check to prevent a second move

blockstore/splitstore/markset_badger.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ func (s *BadgerMarkSet) BeginCriticalSection() error {
115115
s.mx.Unlock()
116116

117117
if write {
118-
// all writes sync once perist is true
118+
// all writes sync once persist is true
119119
return s.write(seqno)
120120
}
121121

0 commit comments

Comments
 (0)