Skip to content

Commit

Permalink
import from 1380 (#1389) (#1390)
Browse files Browse the repository at this point in the history
(cherry picked from commit e54eae5)
  • Loading branch information
PanternBao authored and yanhuqing666 committed Sep 10, 2019
1 parent bff6b55 commit dd160d6
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 dd160d6

Please sign in to comment.