From 53e49e8592140d9f9d2134df6bb8322276e27cff Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Thu, 26 Jul 2012 15:21:38 +0530 Subject: cluster/distribute: Always return the latest time in struct iatt. save the a/c/mtime in inode_ctx, and dht_inode_ctx_update checks the passed iatte, and updates the stat's time, and inode_ctx's time accordingly. For preparent times, only the iatt stat to be returned is updated, not the ctx. With this, update, WIPE is removed, as we would always be passing back the latest mtime, and hence cache times will be relevant. TODO-handle rename WIPE calls Change-Id: I8e4c738cd830f3fafeef789c9181f9c242ac96a2 BUG: 857791 Signed-off-by: shishir gowda Reviewed-on: http://review.gluster.org/3737 Tested-by: Gluster Build System Reviewed-by: Anand Avati --- xlators/cluster/dht/src/dht-mem-types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/cluster/dht/src/dht-mem-types.h') diff --git a/xlators/cluster/dht/src/dht-mem-types.h b/xlators/cluster/dht/src/dht-mem-types.h index 4f3a90e914a..e893eb48fd8 100644 --- a/xlators/cluster/dht/src/dht-mem-types.h +++ b/xlators/cluster/dht/src/dht-mem-types.h @@ -28,6 +28,8 @@ enum gf_dht_mem_types_ { gf_dht_mt_subvol_time, gf_dht_mt_loc_t, gf_defrag_info_mt, + gf_dht_mt_inode_ctx_t, + gf_dht_mt_ctx_stat_time_t, gf_dht_mt_end }; #endif -- cgit