From 562f2fcde9250ac3e3bfa93ed4470f3d57063d30 Mon Sep 17 00:00:00 2001 From: Faye Amacker <33205765+fxamacker@users.noreply.github.com> Date: Mon, 13 May 2024 15:33:12 -0500 Subject: [PATCH] Lint --- storage.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/storage.go b/storage.go index a25117f..e9584b7 100644 --- a/storage.go +++ b/storage.go @@ -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) }