[Groonga-mysql-commit] mroonga/mroonga [master] Fix wrong variable name

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 17:31:27 JST 2012


Kouhei Sutou	2012-10-04 17:31:27 +0900 (Thu, 04 Oct 2012)

  New Revision: 09032ee614bec290cf26eeae585ef0c1eef9dc9b
  https://github.com/mroonga/mroonga/commit/09032ee614bec290cf26eeae585ef0c1eef9dc9b

  Log:
    Fix wrong variable name
    
    option_bits should be store just option bits. It should not store a
    value after a bit operation.

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+3 -3)
===================================================================
--- ha_mroonga.cpp    2012-10-04 17:29:10 +0900 (f10a034)
+++ ha_mroonga.cpp    2012-10-04 17:31:27 +0900 (04b1ca5)
@@ -12924,11 +12924,11 @@ bool ha_mroonga::check_written_by_row_based_binlog()
   uint64 option_bits;
 #endif
 #ifdef MRN_OPTION_BITS_IS_UNDER_VARIABLES
-  option_bits = thd->variables.option_bits & OPTION_BIN_LOG;
+  option_bits = thd->variables.option_bits;
 #else
-  option_bits = thd->options & OPTION_BIN_LOG;
+  option_bits = thd->options;
 #endif
-  if (!option_bits) {
+  if (!(option_bits & OPTION_BIN_LOG)) {
     DBUG_RETURN(false);
   }
 
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-mysql-commit mailing list
Back to archive index