deleteOlderThan
Deletes at most limit logs received before cutoffTimestamp and returns how many it removed. Callers repeat it until it removes fewer than limit, so a retention pass never holds the write lock for the whole backlog.
Deletes at most limit logs received before cutoffTimestamp and returns how many it removed. Callers repeat it until it removes fewer than limit, so a retention pass never holds the write lock for the whole backlog.