[Groonga-commit] ranguba/rroonga at cb11da1 [master] Fix error check order

Back to archive index

Masafumi Yokoyama null+****@clear*****
Mon Jul 13 10:28:30 JST 2015


Masafumi Yokoyama	2015-07-13 10:28:30 +0900 (Mon, 13 Jul 2015)

  New Revision: cb11da1cc92860f5cd5959a0ac587073082f2b0a
  https://github.com/ranguba/rroonga/commit/cb11da1cc92860f5cd5959a0ac587073082f2b0a

  Message:
    Fix error check order

  Modified files:
    ext/groonga/rb-grn-flushable.c

  Modified: ext/groonga/rb-grn-flushable.c (+1 -2)
===================================================================
--- ext/groonga/rb-grn-flushable.c    2015-07-13 10:28:20 +0900 (4d7cb64)
+++ ext/groonga/rb-grn-flushable.c    2015-07-13 10:28:30 +0900 (0bfa258)
@@ -59,13 +59,12 @@ rb_grn_flushable_flush (int argc, VALUE *argv, VALUE self)
                  rb_grn_inspect(self));
     }
 
-    rb_grn_context_check(context, self);
-
     if (RVAL2CBOOL(rb_recursive_p)) {
         grn_obj_flush_recursive(context, object);
     } else {
         grn_obj_flush(context, object);
     }
+    rb_grn_context_check(context, self);
 
     return Qnil;
 }
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index