import org.voltdb.VoltTable;
public class DeleteLoadPartitionedBase extends VoltProcedure {
public long doWork(SQLStmt delete, SQLStmt deletecp, long cid) {
voltQueueSQL(delete, cid);
VoltTable[] results = voltExecuteSQL();
<BUG>if (results[0].asScalarLong() != 1) {
throw new VoltAbortException("Failed to delete cid that should exist: cid=" + cid);
</BUG>
}
voltQueueSQL(deletecp, cid);

import org.voltdb.VoltTable;
public class DeleteLoadPartitionedBase extends VoltProcedure {
public long doWork(SQLStmt delete, SQLStmt deletecp, long cid) {
voltQueueSQL(delete, cid);
VoltTable[] results = voltExecuteSQL();
long r = results[0].asScalarLong();
if (r != 1) {
throw new VoltAbortException("Failed to delete cid that should exist: deleted=" + r + " cid=" + cid);
}
voltQueueSQL(deletecp, cid);
