[Groonga-commit] groonga/groonga at 936a560 [master] grn_pat: remove a quick-fix patch

Back to archive index

susumu.yata null+****@clear*****
Wed Oct 28 19:02:06 JST 2015


susumu.yata	2015-10-28 19:02:06 +0900 (Wed, 28 Oct 2015)

  New Revision: 936a560eed554f15842665d923398a58589137ac
  https://github.com/groonga/groonga/commit/936a560eed554f15842665d923398a58589137ac

  Message:
    grn_pat: remove a quick-fix patch
    
    GitHub: #420, #421

  Modified files:
    lib/pat.c

  Modified: lib/pat.c (+0 -5)
===================================================================
--- lib/pat.c    2015-10-28 18:51:45 +0900 (827406b)
+++ lib/pat.c    2015-10-28 19:02:06 +0900 (fa0a779)
@@ -1127,11 +1127,6 @@ _grn_pat_del(grn_ctx *ctx, grn_pat *pat, const char *key, uint32_t key_size, int
   uint32_t len = key_size * 16;
   grn_id r, otherside, *proot, *p, *p0 = NULL;
 
-  /* FIXME: This is a quick-fix approach. */
-  if (_grn_pat_get(ctx, pat, key, key_size, NULL) == GRN_ID_NIL) {
-    return GRN_INVALID_ARGUMENT;
-  }
-
   /* delinfo_new() must be called before searching for rn. */
   di = delinfo_new(ctx, pat);
   di->shared = shared;
-------------- next part --------------
HTML����������������������������...
Download 



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