diff options
author | Shehjar Tikoo <shehjart@gluster.com> | 2009-10-01 06:59:04 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-01 07:23:50 -0700 |
commit | 25217d43f9786b71de4d86cae122403f2cbaf1e5 (patch) | |
tree | 0ba064fd8cc1b7518beb4757918d1d64d588f959 /xlators/cluster/dht/src/dht-selfheal.c | |
parent | 398de05aeba82ddfa055e8696521f3d5a4cbabe5 (diff) |
distribute: NFS-friendly logic changes
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 145 (NFSv3 related additions to 2.1 task list)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=145
Diffstat (limited to 'xlators/cluster/dht/src/dht-selfheal.c')
-rw-r--r-- | xlators/cluster/dht/src/dht-selfheal.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/xlators/cluster/dht/src/dht-selfheal.c b/xlators/cluster/dht/src/dht-selfheal.c index d3b36363ee3..4bde0b81655 100644 --- a/xlators/cluster/dht/src/dht-selfheal.c +++ b/xlators/cluster/dht/src/dht-selfheal.c @@ -212,6 +212,13 @@ dht_selfheal_dir_mkdir_cbk (call_frame_t *frame, void *cookie, xlator_t *this, prev = cookie; subvol = prev->this; + dht_stat_merge (this, &local->stbuf, stbuf, prev->this); + if (prev->this == local->hashed_subvol) + local->st_ino = local->stbuf.st_ino; + + dht_stat_merge (this, &local->preparent, preparent, prev->this); + dht_stat_merge (this, &local->postparent, postparent, prev->this); + if ((op_ret == 0) || (op_errno == EEXIST)) { for (i = 0; i < layout->cnt; i++) { if (layout->list[i].xlator == subvol) { |