Pair<LocalTransaction, Status> pair = null;
int limit = CHECK_RESTART_QUEUE_LIMIT;
while ((pair = this.restartQueue.poll()) != null) {
LocalTransaction ts = pair.getFirst();
Status status = pair.getSecond();
if (trace.val)
LOG.trace(String.format("%s - Ready to restart transaction [status=%s]", ts, status));
Status ret = this.hstore_site.transactionRestart(ts, status);
if (trace.val)
LOG.trace(String.format("%s - Got return result %s after restarting", ts, ret));
ts.unmarkNeedsRestart();
this.hstore_site.queueDeleteTransaction(ts.getTransactionId(), status);