Skip to content

Commit

Permalink
import from 1380 (actiontech#1389)
Browse files Browse the repository at this point in the history
  • Loading branch information
PanternBao authored and yanhuqing666 committed Sep 10, 2019
1 parent 83b87f4 commit e54eae5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ public XACommitNodesHandler(NonBlockingSession session) {
@Override
public void commit() {
final int initCount = session.getTargetCount();
if (initCount <= 0) {
session.getSource().write(session.getOkByteArray());
session.multiStatementNextSql(session.getIsMultiStatement().get());
return;
}

lock.lock();
try {
reset(initCount);
Expand Down

0 comments on commit e54eae5

Please sign in to comment.