Skip to content

Commit

Permalink
0004079: Refresh lock for purge service
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Aug 27, 2019
1 parent 3764762 commit ad4f0b6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -440,11 +440,11 @@ private int purgeByMinMax(long[] minMax, long minGapStartId, MinMaxDeleteSql ide
log.debug("Deleted {} rows", count);
totalCount += count;

if (totalCount > 0
&& (System.currentTimeMillis() - ts > DateUtils.MILLIS_PER_MINUTE * 5)) {
if (System.currentTimeMillis() - ts > DateUtils.MILLIS_PER_MINUTE * 5) {
log.info("Purged {} of {} rows so far using {} statements", new Object[] {
totalCount, identifier.toString().toLowerCase(), totalDeleteStmts });
ts = System.currentTimeMillis();
clusterService.refreshLock(ClusterConstants.PURGE_OUTGOING);
}
minId = maxId + 1;
}
Expand Down

0 comments on commit ad4f0b6

Please sign in to comment.