throw new ServerFaultException(msg, txn_id);
}
// We want to store this before sending back the acknowledgment so that the transaction can get
// access to it right away
PartitionExecutor executor = hstore_site.getPartitionExecutor(ts.getBasePartition());
WorkResult result = request.getResult();
if (result.getStatus() != Status.OK) {
// TODO: Process error!
} else {
for (int i = 0, cnt = result.getDepIdCount(); i < cnt; i++) {
int fragmentId = request.getFragmentId(i);
int stmtCounter = request.getStmtCounter(i);
int paramsHash = request.getParamHash(i);
VoltTable vt = null;
try {
this.fds.setBuffer(result.getDepData(i).asReadOnlyByteBuffer());
vt = this.fds.readObject(VoltTable.class);
} catch (IOException ex) {
throw new RuntimeException(ex);
}
executor.addPrefetchResult(ts, stmtCounter, fragmentId,
request.getSourcePartition(),
paramsHash, vt);
} // FOR
}