HBASE-5547 Don't delete HFiles when in "backup mode", addendum fixes check for fs.delete()

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1366510 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Zhihong Yu 2012-07-27 19:20:00 +00:00
parent 57afee6a6b
commit c8b6b7ad22
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ public abstract class CleanerChore<T extends FileCleanerDelegate> extends Chore
} }
// delete this file if it passes all the cleaners // delete this file if it passes all the cleaners
LOG.debug("Removing:" + filePath + " from archive"); LOG.debug("Removing:" + filePath + " from archive");
if (this.fs.delete(filePath, false)) { if (!this.fs.delete(filePath, false)) {
LOG.warn("Attempted to delete:" + filePath LOG.warn("Attempted to delete:" + filePath
+ ", but couldn't. Run cleaner chain and attempt to delete on next pass."); + ", but couldn't. Run cleaner chain and attempt to delete on next pass.");
} }