Kouhei Sutou
null+****@clear*****
Mon Feb 8 17:05:51 JST 2016
Kouhei Sutou 2016-02-08 17:05:51 +0900 (Mon, 08 Feb 2016) New Revision: 8542afad3447b6108c4b197fa4dc090f9bac1e12 https://github.com/groonga/groonga/commit/8542afad3447b6108c4b197fa4dc090f9bac1e12 Message: Remove needless check DB is required for calling a command. Modified files: lib/proc/proc_object.c Modified: lib/proc/proc_object.c (+0 -6) =================================================================== --- lib/proc/proc_object.c 2016-02-08 17:00:08 +0900 (f183a66) +++ lib/proc/proc_object.c 2016-02-08 17:05:51 +0900 (e024f40) @@ -31,12 +31,6 @@ command_object_exist(grn_ctx *ctx, grn_id id; db = grn_ctx_db(ctx); - if (!db) { - GRN_PLUGIN_ERROR(ctx, GRN_INVALID_ARGUMENT, - "[object_exist] DB isn't opened"); - return NULL; - } - name = grn_plugin_proc_get_var(ctx, user_data, "name", -1); if (GRN_TEXT_LEN(name) == 0) { GRN_PLUGIN_ERROR(ctx, GRN_INVALID_ARGUMENT, -------------- next part -------------- HTML����������������������������... Download