}
for i, r := range c.subqueues {
_, ackLevel := r.getLevels()
// oldestTime can be time.Time{} here since countDelta is 0
c.db.updateAckLevelAndBacklogStats(subqueueIndex(i), ackLevel, 0, time.Time{})
}
c.subqueueLock.Unlock()
ctx, cancel := context.WithTimeout(c.tqCtx, ioTimeout)
_ = c.db.SyncState(ctx)
cancel()
}