Navigation Menu

Skip to content

Commit

Permalink
Reduce variable scope
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 4, 2012
1 parent 1db8839 commit 5c665fe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ha_mroonga.cpp
Expand Up @@ -12899,13 +12899,8 @@ bool ha_mroonga::check_written_by_row_based_binlog()
{
MRN_DBUG_ENTER_METHOD();
THD *thd = ha_thd();
int current_stmt_binlog_row;
#ifdef _WIN32
unsigned __int64 option_bits;
#else
uint64 option_bits;
#endif

int current_stmt_binlog_row;
#ifdef MRN_ROW_BASED_CHECK_IS_METHOD
current_stmt_binlog_row = thd->is_current_stmt_binlog_format_row();
#else
Expand All @@ -12923,6 +12918,11 @@ bool ha_mroonga::check_written_by_row_based_binlog()
DBUG_RETURN(false);
}

#ifdef _WIN32
unsigned __int64 option_bits;
#else
uint64 option_bits;
#endif
#ifdef MRN_OPTION_BITS_IS_UNDER_VARIABLES
option_bits = thd->variables.option_bits & OPTION_BIN_LOG;
#else
Expand Down

0 comments on commit 5c665fe

Please sign in to comment.