*/
public void queuePrepare(AbstractTransaction ts, PartitionCountingCallback<? extends AbstractTransaction> callback) {
assert(ts.isInitialized()) : "Uninitialized transaction: " + ts;
assert(callback.isInitialized()) : "Uninitialized callback: " + ts;
PrepareTxnMessage work = new PrepareTxnMessage(ts, callback);
boolean success = this.work_queue.offer(work);
assert(success) :
String.format("Failed to queue %s at partition %d for %s",
work, this.partitionId, ts);
if (debug.val)
LOG.debug(String.format("%s - Added %s to partition %d " +
"work queue [size=%d]",
ts, work.getClass().getSimpleName(), this.partitionId,
this.work_queue.size()));
// if (hstore_conf.site.specexec_enable) this.specExecScheduler.interruptSearch();
}