Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
fxamacker committed May 14, 2024
1 parent 75e4960 commit 562f2fc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -1010,8 +1010,10 @@ func (s *PersistentSlabStorage) NondeterministicFastCommit(numWorkers int) error
}

if modifiedSlabCount < 2 {
// Avoid goroutine overhead
ids := append(modifiedSlabIDs, deletedSlabIDs...)
// Avoid goroutine overhead.
// Return after committing modified and deleted slabs.
ids := modifiedSlabIDs
ids = append(ids, deletedSlabIDs...)
return s.commit(ids)
}

Expand Down

0 comments on commit 562f2fc

Please sign in to comment.