Esempio n. 1
0
 /**
  * Note this fails for Sysprocs that use it in non-coordinating fragment work. Don't.
  *
  * @return The transaction id for determinism, not for ordering.
  */
 long getTransactionId() {
   StoredProcedureInvocation invocation = m_txnState.getInvocation();
   if (invocation != null && invocation.getType() == ProcedureInvocationType.REPLICATED) {
     return invocation.getOriginalTxnId();
   } else {
     return m_txnState.txnId;
   }
 }