Navigation Menu

Skip to content

Commit

Permalink
Touch DB to clear cache on truncating a column
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 26, 2015
1 parent 200a753 commit 96f26db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/db.c
Expand Up @@ -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);
Expand Down

0 comments on commit 96f26db

Please sign in to comment.