[Groonga-commit] groonga/groonga at 2431a9d [master] io: remove created file on failure while creating new io

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Apr 16 15:31:10 JST 2015


Kouhei Sutou	2015-04-16 15:31:10 +0900 (Thu, 16 Apr 2015)

  New Revision: 2431a9d436c3ef55c3b3acdb9c1bc9447b31f69e
  https://github.com/groonga/groonga/commit/2431a9d436c3ef55c3b3acdb9c1bc9447b31f69e

  Message:
    io: remove created file on failure while creating new io

  Modified files:
    lib/io.c

  Modified: lib/io.c (+1 -0)
===================================================================
--- lib/io.c    2015-04-16 14:18:58 +0900 (34c9127)
+++ lib/io.c    2015-04-16 15:31:10 +0900 (c67a143)
@@ -324,6 +324,7 @@ grn_io_create(grn_ctx *ctx, const char *path, uint32_t header_size, uint32_t seg
         GRN_MUNMAP(&grn_gctx, NULL, &fis->fmo, fis, header, b);
       }
       grn_close(ctx, fis);
+      grn_unlink(path);
     }
     GRN_GFREE(fis);
   }
-------------- next part --------------
HTML����������������������������...
다운로드 



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