diff options
author | Anders Blomdell <anders.blomdell@control.lth.se> | 2014-07-29 17:11:20 +0200 |
---|---|---|
committer | Anand Avati <avati@redhat.com> | 2014-07-31 09:07:59 -0700 |
commit | a278c2aecedfbe17e2749109d73b292ca25ff439 (patch) | |
tree | 641fffd317549e0f1da0c096b4c00b2c8d163fdb /xlators/cluster/dht/src/dht-rebalance.c | |
parent | 93a4558dddbea78a51171b2bf92e37da3ffb40dd (diff) |
Symlink mtime changes when rebalancing
Added mtime preservation for special files during rebalance.
Change-Id: If04921d4d66853fde8b4d8a3ab748790864f8f42
BUG: 1122443
Signed-off-by: Anders Blomdell <anders.blomdell@control.lth.se>
Reviewed-on: http://review.gluster.org/8383
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Shyamsundar Ranganathan <srangana@redhat.com>
Reviewed-by: Harshavardhana <harsha@harshavardhana.net>
Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/cluster/dht/src/dht-rebalance.c')
-rw-r--r-- | xlators/cluster/dht/src/dht-rebalance.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/cluster/dht/src/dht-rebalance.c b/xlators/cluster/dht/src/dht-rebalance.c index 96bc02075cb..365099b9e0b 100644 --- a/xlators/cluster/dht/src/dht-rebalance.c +++ b/xlators/cluster/dht/src/dht-rebalance.c @@ -817,7 +817,8 @@ migrate_special_files (xlator_t *this, xlator_t *from, xlator_t *to, loc_t *loc, done: ret = syncop_setattr (to, loc, buf, - (GF_SET_ATTR_UID | GF_SET_ATTR_GID | + (GF_SET_ATTR_MTIME | + GF_SET_ATTR_UID | GF_SET_ATTR_GID | GF_SET_ATTR_MODE), NULL, NULL); if (ret) { gf_msg (this->name, GF_LOG_WARNING, 0, |