Kouhei Sutou
null+****@clear*****
Sun Feb 3 21:59:41 JST 2013
Kouhei Sutou 2012-12-14 22:34:12 +0900 (Fri, 14 Dec 2012) New Revision: 9b3a045a615a60e2805ca81a0b9effdcd366eac8 https://github.com/mroonga/mroonga/commit/9b3a045a615a60e2805ca81a0b9effdcd366eac8 Log: storage: clear cache on data change oprations Data change operations are write_row, delete_row and update_row in storage API. Modified files: ha_mroonga.cpp Modified: ha_mroonga.cpp (+7 -0) =================================================================== --- ha_mroonga.cpp 2013-02-02 14:52:33 +0900 (070a819) +++ ha_mroonga.cpp 2012-12-14 22:34:12 +0900 (1de3e0a) @@ -5192,6 +5192,8 @@ int ha_mroonga::storage_write_row(uchar *buf) } slot_data->last_insert_record_id = record_id; + grn_db_touch(ctx, grn_ctx_db(ctx)); + DBUG_RETURN(0); err2: @@ -5685,6 +5687,8 @@ int ha_mroonga::storage_update_row(const uchar *old_data, uchar *new_data) DBUG_RETURN(error); } + grn_db_touch(ctx, grn_ctx_db(ctx)); + DBUG_RETURN(0); err: @@ -5977,6 +5981,9 @@ int ha_mroonga::storage_delete_row(const uchar *buf) ) { DBUG_RETURN(error); } + + grn_db_touch(ctx, grn_ctx_db(ctx)); + DBUG_RETURN(0); } -------------- next part -------------- HTML����������������������������...Download