Merge "Don't send COMMIT if not in a transaction."

This commit is contained in:
Catrope 2012-09-21 22:51:05 +00:00 committed by Gerrit Code Review
commit a6f899964c

View file

@ -921,7 +921,7 @@ class LoadBalancer {
continue;
}
foreach ( $conns2[$masterIndex] as $conn ) {
if ( $conn->doneWrites() ) {
if ( $conn->trxLevel() && $conn->doneWrites() ) {
$conn->commit( __METHOD__ );
}
}