[Groonga-commit] groonga/groonga [master] add missing GRN_IO_SEG_UNREF(). #846

Back to archive index

null+****@clear***** null+****@clear*****
2011年 1月 28日 (金) 19:47:18 JST


Kouhei Sutou	2011-01-28 10:47:18 +0000 (Fri, 28 Jan 2011)

  New Revision: da896158b7e7474a7a9671432cb63f05d5bcaf86

  Log:
    add missing GRN_IO_SEG_UNREF(). #846

  Modified files:
    lib/store.c

  Modified: lib/store.c (+1 -0)
===================================================================
--- lib/store.c    2011-02-01 08:49:36 +0000 (740bac2)
+++ lib/store.c    2011-01-28 10:47:18 +0000 (07f3233)
@@ -508,6 +508,7 @@ grn_ja_replace(grn_ctx *ctx, grn_ja *ja, grn_id id, grn_ja_einfo *ei, uint64_t *
   eback = einfo[pos];
   if (cas && *cas != *((uint64_t *)&eback)) {
     ERR(GRN_CAS_ERROR, "cas failed (%d)", id);
+    GRN_IO_SEG_UNREF(ja->io, *pseg);
     goto exit;
   }
   // smb_wmb();




Groonga-commit メーリングリストの案内
Back to archive index