HBASE-18928 Backup delete command shows wrong number of deletes requested (Amit Kabra)
This commit is contained in:
parent
73414ab270
commit
7b8969412e
|
@ -571,7 +571,7 @@ public final class BackupCommands {
|
||||||
System.arraycopy(args, 1, backupIds, 0, backupIds.length);
|
System.arraycopy(args, 1, backupIds, 0, backupIds.length);
|
||||||
try (BackupAdminImpl admin = new BackupAdminImpl(conn);) {
|
try (BackupAdminImpl admin = new BackupAdminImpl(conn);) {
|
||||||
int deleted = admin.deleteBackups(backupIds);
|
int deleted = admin.deleteBackups(backupIds);
|
||||||
System.out.println("Deleted " + deleted + " backups. Total requested: " + args.length);
|
System.out.println("Deleted " + deleted + " backups. Total requested: " + (args.length -1));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
System.err
|
System.err
|
||||||
.println("Delete command FAILED. Please run backup repair tool to restore backup system integrity");
|
.println("Delete command FAILED. Please run backup repair tool to restore backup system integrity");
|
||||||
|
|
Loading…
Reference in New Issue