null+****@clear*****
null+****@clear*****
2010年 11月 18日 (木) 16:33:43 JST
Kouhei Sutou 2010-11-18 07:33:43 +0000 (Thu, 18 Nov 2010)
New Revision: 071b094378d19dafcd2dd97d4250df93687e39a0
Log:
export grn_db_touch(). #703
Modified files:
include/groonga.h
lib/db.h
Modified: include/groonga.h (+9 -0)
===================================================================
--- include/groonga.h 2010-11-18 08:09:29 +0000 (741c989)
+++ include/groonga.h 2010-11-18 07:33:43 +0000 (8170b64)
@@ -487,6 +487,15 @@ GRN_API grn_obj *grn_db_create(grn_ctx *ctx, const char *path, grn_db_create_opt
GRN_API grn_obj *grn_db_open(grn_ctx *ctx, const char *path);
/**
+ * grn_db_touch:
+ * @db: 内容が変更されたdbを指定します。
+ *
+ * dbの内容の最終更新時刻を現在時刻にします。最終更新時刻は
+ * キャッシュが有効かどうかの判断などに利用されます。
+ **/
+GRN_API void grn_db_touch(grn_ctx *ctx, grn_obj *db);
+
+/**
* grn_ctx_use:
* @db: ctxが使用するdbを指定します。
*
Modified: lib/db.h (+0 -1)
===================================================================
--- lib/db.h 2010-11-18 08:09:29 +0000 (20fa8c9)
+++ lib/db.h 2010-11-18 07:33:43 +0000 (36987e7)
@@ -81,7 +81,6 @@ grn_rc grn_db_close(grn_ctx *ctx, grn_obj *db);
grn_obj *grn_db_keys(grn_obj *s);
uint32_t grn_db_lastmod(grn_obj *s);
-void grn_db_touch(grn_ctx *ctx, grn_obj *s);
grn_rc _grn_table_delete_by_id(grn_ctx *ctx, grn_obj *table, grn_id id,
grn_table_delete_optarg *optarg);