[Groonga-commit] groonga/groonga at da6e347 [master] Add missing touch on renaming column

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Jan 7 22:29:04 JST 2017


Kouhei Sutou	2017-01-07 22:29:04 +0900 (Sat, 07 Jan 2017)

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

  Message:
    Add missing touch on renaming column

  Modified files:
    lib/db.c

  Modified: lib/db.c (+3 -0)
===================================================================
--- lib/db.c    2017-01-07 21:01:03 +0900 (62c264b)
+++ lib/db.c    2017-01-07 22:29:04 +0900 (e7365f8)
@@ -10013,6 +10013,9 @@ grn_column_rename(grn_ctx *ctx, grn_obj *column, const char *name, unsigned int
     grn_memcpy(fullname + len + 1, name, name_size);
     name_size += len + 1;
     rc = grn_obj_rename(ctx, column, fullname, name_size);
+    if (rc == GRN_SUCCESS) {
+      grn_obj_touch(ctx, column, NULL);
+    }
   }
 exit :
   GRN_API_RETURN(rc);
-------------- next part --------------
HTML����������������������������...
Download 



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