Skip to content

Commit

Permalink
tidy CleanSkippedSequenceQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
gregns1 committed Apr 26, 2024
1 parent 51baa32 commit bc9a2c4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions db/change_cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,7 @@ func (c *changeCache) CleanSkippedSequenceQueue(ctx context.Context) error {

base.InfofCtx(ctx, base.KeyCache, "Starting CleanSkippedSequenceQueue for database %s", base.MD(c.db.Name))

maxWait := int64(c.options.CacheSkippedSeqMaxWait.Seconds())
compactedSequences := c.skippedSeqs.SkippedSequenceCompact(ctx, maxWait)
compactedSequences := c.skippedSeqs.SkippedSequenceCompact(ctx, int64(c.options.CacheSkippedSeqMaxWait.Seconds()))
if compactedSequences == 0 {
base.InfofCtx(ctx, base.KeyCache, "CleanSkippedSequenceQueue complete. No sequences to be compacted from skipped sequence list for database %s.", base.MD(c.db.Name))
return nil
Expand Down

0 comments on commit bc9a2c4

Please sign in to comment.