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/storage | |
| parent | 6e6b4b4fd002347ca08691f73e10b961f693d754 (diff) | |
Revert "glusterd-rebalance: if file is open, don't do rebalance"
This reverts commit 6e6b4b4fd002347ca08691f73e10b961f693d754.
Diffstat (limited to 'xlators/storage')
| -rw-r--r-- | xlators/storage/posix/src/posix.c | 25 | 
1 files changed, 0 insertions, 25 deletions
diff --git a/xlators/storage/posix/src/posix.c b/xlators/storage/posix/src/posix.c index 28857b09fdf..fbdc2a13d77 100644 --- a/xlators/storage/posix/src/posix.c +++ b/xlators/storage/posix/src/posix.c @@ -3031,22 +3031,6 @@ posix_getxattr (call_frame_t *frame, xlator_t *this,                  goto out;          } -        if (loc->inode && !strcmp (name, GLUSTERFS_OPEN_FD_COUNT)) { -		if (!list_empty (&loc->inode->fd_list)) { -			ret = dict_set_uint32 (dict, (char *)name, 1); -                        if (ret < 0) -                                gf_log (this->name, GF_LOG_WARNING, -                                        "Failed to set dictionary value for %s", -                                        name); -		} else { -			ret = dict_set_uint32 (dict, (char *)name, 0); -                        if (ret < 0) -                                gf_log (this->name, GF_LOG_WARNING, -                                        "Failed to set dictionary value for %s", -                                        name); -		} -                goto done; -        }  	if (loc->inode && IA_ISREG (loc->inode->ia_type) && name &&  	    (strcmp (name, GF_XATTR_PATHINFO_KEY) == 0)) {                  snprintf (host_buf, 1024, "%s:%s", priv->hostname, @@ -3187,15 +3171,6 @@ posix_fgetxattr (call_frame_t *frame, xlator_t *this,                  goto out;          } -        if (!strcmp (name, GLUSTERFS_OPEN_FD_COUNT)) { -                ret = dict_set_uint32 (dict, (char *)name, 1); -                if (ret < 0) -                        gf_log (this->name, GF_LOG_WARNING, -                                "Failed to set dictionary value for %s", -                                name); -                goto done; -        } -          size = sys_flistxattr (_fd, NULL, 0);          if (size == -1) {                  op_errno = errno;  | 
