[Groonga-commit] groonga/groonga at 96f26db [master] Touch DB to clear cache on truncating a column

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jan 26 23:55:16 JST 2015


Kouhei Sutou	2015-01-26 23:55:16 +0900 (Mon, 26 Jan 2015)

  New Revision: 96f26db3158aac515b77a3c229d584f205b984ea
  https://github.com/groonga/groonga/commit/96f26db3158aac515b77a3c229d584f205b984ea

  Message:
    Touch DB to clear cache on truncating a column

  Modified files:
    lib/db.c

  Modified: lib/db.c (+3 -0)
===================================================================
--- lib/db.c    2015-01-26 23:52:42 +0900 (ee120aa)
+++ lib/db.c    2015-01-26 23:55:16 +0900 (550c8f7)
@@ -1884,6 +1884,9 @@ grn_column_truncate(grn_ctx *ctx, grn_obj *column)
       rc = grn_ra_truncate(ctx, (grn_ra *)column);
       break;
     }
+    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