diff options
author | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-19 06:20:24 -0700 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-19 06:20:24 -0700 |
commit | e788e2dec0c90c77a88b561636df569d94c8e638 (patch) | |
tree | dfeda2fd13ce9669d4da5804916d01e5da6ccefb /xlators/mgmt/glusterd/src/glusterd-rebalance.c | |
parent | 6e6b4b4fd002347ca08691f73e10b961f693d754 (diff) |
Revert "glusterd-rebalance: if file is open, don't do rebalance"
This reverts commit 6e6b4b4fd002347ca08691f73e10b961f693d754.
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-rebalance.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-rebalance.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-rebalance.c b/xlators/mgmt/glusterd/src/glusterd-rebalance.c index f3c5b9591..934fc7030 100644 --- a/xlators/mgmt/glusterd/src/glusterd-rebalance.c +++ b/xlators/mgmt/glusterd/src/glusterd-rebalance.c @@ -53,7 +53,6 @@ gf_glusterd_rebalance_move_data (glusterd_volinfo_t *volinfo, const char *dir) struct stat new_stbuf = {0,}; char full_path[1024] = {0,}; char tmp_filename[1024] = {0,}; - char value[16] = {0,}; if (!volinfo->defrag) goto out; @@ -83,12 +82,6 @@ gf_glusterd_rebalance_move_data (glusterd_volinfo_t *volinfo, const char *dir) ((stbuf.st_mode & 01000) == 01000))) continue; - /* If the file is open, don't run rebalance on it */ - ret = sys_lgetxattr (full_path, GLUSTERFS_OPEN_FD_COUNT, - &value, 16); - if ((ret < 0) || !strncmp (value, "1", 1)) - continue; - /* If its a regular file, and sticky bit is set, we need to rebalance that */ snprintf (tmp_filename, 1024, "%s/.%s.gfs%llu", dir, |