Kouhei Sutou
null+****@clear*****
Sun Nov 1 11:45:53 JST 2015
Kouhei Sutou 2015-11-01 11:45:53 +0900 (Sun, 01 Nov 2015) New Revision: ab5a754b52550c0888c934541289bc859aaca686 https://github.com/mroonga/mroonga/commit/ab5a754b52550c0888c934541289bc859aaca686 Message: Add auto repair start log It's for detecting "auto repairing". Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+6 -0) =================================================================== --- ha_mroonga.cpp 2015-11-01 09:21:09 +0900 (2e78086) +++ ha_mroonga.cpp 2015-11-01 11:45:53 +0900 (560afd5) @@ -4100,6 +4100,9 @@ int ha_mroonga::wrapper_open(const char *name, int mode, uint open_options) const char *table_name = mapper.table_name(); size_t table_name_size = strlen(table_name); if (db->is_broken_table(table_name, table_name_size)) { + GRN_LOG(ctx, GRN_LOG_NOTICE, + "Auto repair is started: <%s>", + name); operations_->clear(table_name, table_name_size); db->mark_table_repaired(table_name, table_name_size); if (!share->disable_keys) { @@ -4310,6 +4313,9 @@ int ha_mroonga::storage_open(const char *name, int mode, uint open_options) const char *table_name = mapper.table_name(); size_t table_name_size = strlen(table_name); if (db->is_broken_table(table_name, table_name_size)) { + GRN_LOG(ctx, GRN_LOG_NOTICE, + "Auto repair is started: <%s>", + name); error = operations_->repair(table_name, table_name_size); if (!error) db->mark_table_repaired(table_name, table_name_size); -------------- next part -------------- HTML����������������������������... ダウンロード