Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ public int execute(final String fullCommand, final CommandLine cl, final Shell s
} else if (cl.hasOption(delete.getOpt())) {
String[] txids = cl.getOptionValues(delete.getOpt());
validateArgs(txids);
failedCommand = deleteTx(shellState.getWriter(), admin, zs, zk, managerLockPath, txids);
failedCommand =
deleteTx(shellState.getWriter(), admin, zs, zk, managerLockPath, tableLocksPath, txids);
} else if (cl.hasOption(list.getOpt())) {
printTx(shellState, admin, zs, zk, tableLocksPath, cl.getOptionValues(list.getOpt()), cl);
} else if (cl.hasOption(print.getOpt())) {
Expand Down Expand Up @@ -237,11 +238,11 @@ protected void printTx(Shell shellState, AdminUtil<FateCommand> admin, ZooStore<
}

protected boolean deleteTx(PrintWriter out, AdminUtil<FateCommand> admin,
ZooStore<FateCommand> zs, ZooReaderWriter zk, ServiceLockPath zLockManagerPath, String[] args)
throws InterruptedException, KeeperException {
ZooStore<FateCommand> zs, ZooReaderWriter zk, ServiceLockPath zLockManagerPath,
ServiceLockPath zTableLocksPath, String[] args) throws InterruptedException, KeeperException {
for (int i = 1; i < args.length; i++) {
if (admin.prepDelete(zs, zk, zLockManagerPath, args[i])) {
admin.deleteLocks(zk, zLockManagerPath, args[i]);
admin.deleteLocks(zk, zTableLocksPath, args[i]);
} else {
out.printf("Could not delete transaction: %s%n", args[i]);
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ String dumpTx(ZooStore<FateCommand> zs, String[] args) {
@Override
protected boolean deleteTx(PrintWriter out, AdminUtil<FateCommand> admin,
ZooStore<FateCommand> zs, ZooReaderWriter zk, ServiceLockPath zLockManagerPath,
String[] args) throws InterruptedException, KeeperException {
ServiceLockPath zTableLocksPath, String[] args)
throws InterruptedException, KeeperException {
deleteCalled = true;
return true;
}
Expand Down