Kouhei Sutou
null+****@clear*****
Tue Mar 15 10:40:43 JST 2016
Kouhei Sutou 2016-03-15 10:40:43 +0900 (Tue, 15 Mar 2016) New Revision: 81c16a25e16529b968476876985ebf248a7718ed https://github.com/groonga/groonga/commit/81c16a25e16529b968476876985ebf248a7718ed Message: load: clear loader when it's no longer needed Added files: test/command/suite/load/load_after_table_remove.expected test/command/suite/load/load_after_table_remove.test Modified files: lib/proc.c Modified: lib/proc.c (+1 -1) =================================================================== --- lib/proc.c 2016-03-14 18:45:50 +0900 (7ba47a9) +++ lib/proc.c 2016-03-15 10:40:43 +0900 (249d419) @@ -150,7 +150,7 @@ proc_load(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data) if (ctx->impl->loader.table) { grn_db_touch(ctx, DB_OBJ(ctx->impl->loader.table)->db); } - /* maybe necessary : grn_ctx_loader_clear(ctx); */ + grn_ctx_loader_clear(ctx); } return NULL; } Added: test/command/suite/load/load_after_table_remove.expected (+20 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/load/load_after_table_remove.expected 2016-03-15 10:40:43 +0900 (e90e0f4) @@ -0,0 +1,20 @@ +table_create Users TABLE_NO_KEY +[[0,0.0,0.0],true] +column_create Users age COLUMN_SCALAR Int32 +[[0,0.0,0.0],true] +table_create AnotherUsers TABLE_NO_KEY +[[0,0.0,0.0],true] +column_create AnotherUsers age COLUMN_SCALAR Int32 +[[0,0.0,0.0],true] +load --table Users --columns "age" +[ +[1] +] +[[0,0.0,0.0],1] +table_remove Users +[[0,0.0,0.0],true] +load --table AnotherUsers --columns "age" +[ +[1] +] +[[0,0.0,0.0],1] Added: test/command/suite/load/load_after_table_remove.test (+16 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/load/load_after_table_remove.test 2016-03-15 10:40:43 +0900 (b06c43f) @@ -0,0 +1,16 @@ +table_create Users TABLE_NO_KEY +column_create Users age COLUMN_SCALAR Int32 +table_create AnotherUsers TABLE_NO_KEY +column_create AnotherUsers age COLUMN_SCALAR Int32 + +load --table Users --columns "age" +[ +[1] +] + +table_remove Users + +load --table AnotherUsers --columns "age" +[ +[1] +] -------------- next part -------------- HTML����������������������������...ダウンロード