Navigation Menu

Skip to content

Commit

Permalink
Fix wrong variable name
Browse files Browse the repository at this point in the history
option_bits should be store just option bits. It should not store a
value after a bit operation.
  • Loading branch information
kou committed Oct 4, 2012
1 parent 5c665fe commit 09032ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ha_mroonga.cpp
Expand Up @@ -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);
}

Expand Down

0 comments on commit 09032ee

Please sign in to comment.