Merge "Don't send COMMIT if not in a transaction."
This commit is contained in:
commit
a6f899964c
1 changed files with 1 additions and 1 deletions
|
|
@ -921,7 +921,7 @@ class LoadBalancer {
|
|||
continue;
|
||||
}
|
||||
foreach ( $conns2[$masterIndex] as $conn ) {
|
||||
if ( $conn->doneWrites() ) {
|
||||
if ( $conn->trxLevel() && $conn->doneWrites() ) {
|
||||
$conn->commit( __METHOD__ );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue