* @param ts
* @param task
*/
public void queueWork(AbstractTransaction ts, WorkFragment fragment) {
assert(ts.isInitialized()) : "Unexpected uninitialized transaction: " + ts;
WorkFragmentMessage work = ts.getWorkFragmentMessage(fragment);
boolean success = this.work_queue.offer(work); // , true);
assert(success) :
String.format("Failed to queue %s at partition %d for %s",
work, this.partitionId, ts);
ts.markQueuedWork(this.partitionId);
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(work);
}