diff options
author | Vikas Gorur <vikas@gluster.com> | 2009-10-30 05:27:50 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-10-30 04:10:57 -0700 |
commit | b4b20984721e169763a5ac26ffb9353d1ca3568a (patch) | |
tree | 4e154957f9276d08f4f1c2fcb9b75b37af2d816e /xlators/cluster/afr/src/afr.h | |
parent | 2b610a095febf0e89e5341c575b5579c78a009a3 (diff) |
cluster/afr: Don't try to self-heal if there are locks held
If the inodelk_count or entrylk_count is positive on a
file/directory, don't try to do self-heal on it.
Signed-off-by: Vikas Gorur <vikas@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 326 ([2.0.8rc9] Spurious self-heal)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=326
Diffstat (limited to 'xlators/cluster/afr/src/afr.h')
-rw-r--r-- | xlators/cluster/afr/src/afr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index baad63bdc..45a1c9863 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -192,6 +192,9 @@ typedef struct _afr_local { dict_t *xattr_req; int open_fd_count; + int32_t inodelk_count; + int32_t entrylk_count; + /* This struct contains the arguments for the "continuation" (scheme-like) of fops |