diff --git a/blockstore/splitstore/splitstore.go b/blockstore/splitstore/splitstore.go index 77edc8790..cf3c07a62 100644 --- a/blockstore/splitstore/splitstore.go +++ b/blockstore/splitstore/splitstore.go @@ -610,8 +610,6 @@ func (s *SplitStore) trackWrite(c cid.Cid) { defer s.mx.Unlock() s.pendingWrites[c] = struct{}{} - - s.debug.LogWrite(s.curTs, c, s.writeEpoch) } // and also combine batch writes into them @@ -622,8 +620,6 @@ func (s *SplitStore) trackWrites(cids []cid.Cid) { for _, c := range cids { s.pendingWrites[c] = struct{}{} } - - s.debug.LogWriteMany(s.curTs, cids, s.writeEpoch) } func (s *SplitStore) flushPendingWrites(locked bool) { @@ -647,6 +643,8 @@ func (s *SplitStore) flushPendingWrites(locked bool) { if err != nil { log.Errorf("error putting implicit write batch to tracker: %s", err) } + + s.debug.LogWriteMany(s.curTs, cids, epoch) } func (s *SplitStore) background() {