Unverified 提交 2bf89a0b authored 作者: Andrei Tokar's avatar Andrei Tokar 提交者: GitHub

Merge pull request #1081 from cbvms123/tmp_transactionid

Session.getTransactionId should return a more distinguishing value
......@@ -1634,7 +1634,7 @@ public class Session extends SessionWithState implements TransactionStore.Rollba
if (transaction == null) {
return ValueNull.INSTANCE;
}
return ValueString.get(Long.toString(getTransaction().getId()));
return ValueString.get(Long.toString(getTransaction().getSequenceNum()));
}
if (!database.isPersistent()) {
return ValueNull.INSTANCE;
......
......@@ -126,6 +126,10 @@ public class Transaction {
return transactionId;
}
public long getSequenceNum() {
return sequenceNum;
}
public int getStatus() {
return getStatus(statusAndLogId.get());
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论