[Groonga-commit] groonga/groonga [master] fixed a typo which caused double close

Back to archive index

null+****@clear***** null+****@clear*****
2011年 11月 21日 (月) 07:13:09 JST


Daijiro MORI	2011-11-20 22:13:09 +0000 (Sun, 20 Nov 2011)

  New Revision: bebef31d5b4a9ec649380eb5391de2910eea5951

  Log:
    fixed a typo which caused double close

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+1 -1)
===================================================================
--- lib/ii.c    2011-11-18 11:14:44 +0000 (b134b97)
+++ lib/ii.c    2011-11-20 22:13:09 +0000 (03149a1)
@@ -3500,7 +3500,7 @@ grn_ii_truncate(grn_ctx *ctx, grn_ii *ii)
   lexicon = ii->lexicon;
   flags = ii->header->flags;
   if ((rc = grn_io_close(ctx, ii->seg))) { goto exit; }
-  if ((rc = grn_io_close(ctx, ii->seg))) { goto exit; }
+  if ((rc = grn_io_close(ctx, ii->chunk))) { goto exit; }
   ii->seg = NULL;
   ii->chunk = NULL;
   if (segpath && (rc = grn_io_remove(ctx, segpath))) { goto exit; }




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