Kouhei Sutou
null+****@clear*****
Thu Oct 4 17:29:10 JST 2012
Kouhei Sutou 2012-10-04 17:29:10 +0900 (Thu, 04 Oct 2012) New Revision: 5c665fe62841a0c8a389e82f247cb7c83cc2c10c https://github.com/mroonga/mroonga/commit/5c665fe62841a0c8a389e82f247cb7c83cc2c10c Log: Reduce variable scope Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+6 -6) =================================================================== --- ha_mroonga.cpp 2012-10-04 17:28:39 +0900 (05eb33f) +++ ha_mroonga.cpp 2012-10-04 17:29:10 +0900 (f10a034) @@ -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 @@ -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 -------------- next part -------------- HTML����������������������������...Download