[Groonga-commit] groonga/groonga at cd5ea98 [master] Improve unlink error handling

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jun 5 16:37:58 JST 2017


Kouhei Sutou	2017-06-05 16:37:58 +0900 (Mon, 05 Jun 2017)

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

  Message:
    Improve unlink error handling

  Modified files:
    lib/io.c

  Modified: lib/io.c (+2 -3)
===================================================================
--- lib/io.c    2017-06-05 16:36:54 +0900 (7ba2c8b)
+++ lib/io.c    2017-06-05 16:37:58 +0900 (9e9125e)
@@ -822,12 +822,11 @@ grn_io_remove_raw(grn_ctx *ctx, const char *path)
   char buffer[PATH_MAX];
 
   if (grn_unlink(path) != 0) {
-    ERRNO_ERR("failed to remove path: <%s>",
+    ERRNO_ERR("[io][remove] failed to remove path: <%s>",
               path);
     return ctx->rc;
-  } else {
-    GRN_LOG(ctx, GRN_LOG_INFO, "removed path on grn_io_remove_raw(): <%s>", path);
   }
+  GRN_LOG(ctx, GRN_LOG_INFO, "[io][remove] removed path: <%s>", path);
 
   for (fno = 1; ; fno++) {
     struct stat s;
-------------- next part --------------
HTML����������������������������...
下載 



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