[Groonga-commit] groonga/groonga [master] Fix grn_obj_unlink() location

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Nov 22 21:47:54 JST 2012


Kouhei Sutou	2012-11-22 21:47:54 +0900 (Thu, 22 Nov 2012)

  New Revision: d9e73fd92d3466be73595a9843998730ef5da264
  https://github.com/groonga/groonga/commit/d9e73fd92d3466be73595a9843998730ef5da264

  Log:
    Fix grn_obj_unlink() location

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+2 -1)
===================================================================
--- lib/expr.c    2012-11-22 20:29:57 +0900 (bb5e98c)
+++ lib/expr.c    2012-11-22 21:47:54 +0900 (9ab0a25)
@@ -4088,12 +4088,13 @@ grn_table_select_index_range(grn_ctx *ctx, grn_obj *table, grn_obj *index,
       grn_table_cursor_close(ctx, cursor);
       processed = GRN_TRUE;
     }
-    grn_obj_unlink(ctx, index_table);
 
     grn_ii_resolve_sel_and(ctx, (grn_hash *)res, si->logical_op);
   }
   GRN_OBJ_FIN(ctx, &range);
 
+  grn_obj_unlink(ctx, index_table);
+
   return processed;
 }
 
-------------- next part --------------
HTML����������������������������...
Télécharger 



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