Created
July 15, 2016 21:36
-
-
Save nirbhayc/5cc515b5a0fa1cd96eb165ab4f57b293 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sql/wsrep_mysqld.cc b/sql/wsrep_mysqld.cc | |
index 11c1bef..04ba4aa 100644 | |
--- a/sql/wsrep_mysqld.cc | |
+++ b/sql/wsrep_mysqld.cc | |
@@ -995,6 +995,12 @@ bool wsrep_sync_wait (THD* thd, uint mask) | |
return true; | |
} | |
} | |
+ /* SELECT must have waited for wsrep_sync_wait=1. */ | |
+ else if ((thd->lex->sql_command == SQLCOM_SELECT) && | |
+ (thd->variables.wsrep_sync_wait & WSREP_SYNC_WAIT_BEFORE_READ)) | |
+ { | |
+ DBUG_ASSERT(false); | |
+ } | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment