[Groonga-commit] groonga/groonga at c361b77 [master] Stop to log object removed for temporary table

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Jan 24 22:30:47 JST 2016


Kouhei Sutou	2016-01-24 22:30:47 +0900 (Sun, 24 Jan 2016)

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

  Message:
    Stop to log object removed for temporary table

  Modified files:
    lib/db.c

  Modified: lib/db.c (+3 -1)
===================================================================
--- lib/db.c    2016-01-23 13:13:45 +0900 (d6940cd)
+++ lib/db.c    2016-01-24 22:30:47 +0900 (6474467)
@@ -8950,7 +8950,9 @@ _grn_obj_remove(grn_ctx *ctx, grn_obj *obj)
   if (ctx->impl && ctx->impl->db) {
     uint32_t s = 0;
     const char *n = _grn_table_key(ctx, ctx->impl->db, DB_OBJ(obj)->id, &s);
-    GRN_LOG(ctx, GRN_LOG_NOTICE, "DDL:obj_remove %.*s", s, n);
+    if (s > 0) {
+      GRN_LOG(ctx, GRN_LOG_NOTICE, "DDL:obj_remove %.*s", s, n);
+    }
   }
   if (obj->header.type != GRN_PROC &&
       (io_path = grn_obj_path(ctx, obj)) && *io_path != '\0') {
-------------- next part --------------
HTML����������������������������...
Télécharger 



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