Skip to content

Commit

Permalink
HDFS-13529. Fix default trash policy emptier trigger time correctly. …
Browse files Browse the repository at this point in the history
…Contributed by He Xiaoqiao.

Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
  • Loading branch information
Hexiaoqiao authored and jojochuang committed Aug 1, 2019
1 parent e111789 commit f86de6f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ protected class Emptier implements Runnable {
public void run() {
if (emptierInterval == 0)
return; // trash disabled
long now = Time.now();
long end;
long now, end;
while (true) {
now = Time.now();
end = ceiling(now, emptierInterval);
try { // sleep for interval
Thread.sleep(end - now);
Expand Down

0 comments on commit f86de6f

Please sign in to comment.