summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-self-heal-common.c
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-10-13 06:42:28 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-10-13 06:23:06 -0700
commit103a9ecfaf5881b31844b8a12a5b98dc5308a800 (patch)
tree821a94852500d83fa378f1e61b845bcaf3c17934 /xlators/cluster/afr/src/afr-self-heal-common.c
parent7d6e73d4421265a304fd22964649e555a2db8097 (diff)
cluster/afr: Set mtime of parent directory in self-heal properly.
While creating/deleting an entry as part of entry self-heal, set the parent directory's mtime to match that on the source subvolume. Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 137 (Parent directory mtime not reset after a create in self-heal) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=137
Diffstat (limited to 'xlators/cluster/afr/src/afr-self-heal-common.c')
-rw-r--r--xlators/cluster/afr/src/afr-self-heal-common.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xlators/cluster/afr/src/afr-self-heal-common.c b/xlators/cluster/afr/src/afr-self-heal-common.c
index b42801cede3..42d57a1869a 100644
--- a/xlators/cluster/afr/src/afr-self-heal-common.c
+++ b/xlators/cluster/afr/src/afr-self-heal-common.c
@@ -853,9 +853,9 @@ sh_missing_entries_newentry_cbk (call_frame_t *frame, void *cookie,
call_frame_t *setattr_frame = NULL;
int call_count = 0;
int child_index = 0;
-
+
struct stat stbuf;
- int32_t valid = 0;
+ int32_t valid;
local = frame->local;
sh = &local->self_heal;
@@ -1204,6 +1204,7 @@ sh_missing_entries_lookup_cbk (call_frame_t *frame, void *cookie,
buf->st_mode);
local->self_heal.buf[child_index] = *buf;
+
} else {
gf_log (this->name, GF_LOG_TRACE,
"path %s on subvolume %s => -1 (%s)",