diff options
author | Vikas Gorur <vikas@gluster.com> | 2009-11-24 08:45:06 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-11-24 06:39:57 -0800 |
commit | 21cffbc219efc36229002e71a02b9270cfee9186 (patch) | |
tree | dae2cc0b57062b050b8052b6f1bb730b4be90f19 /xlators/cluster/afr/src/afr-transaction.c | |
parent | a63e189822a777b450eeaeda8622cdb0e5e7cb1d (diff) |
cluster/afr: Hold blocking locks for data self-heal.
Data self-heal now holds blocking locks, and instead of locking
on all subvolumes, it only locks on {data-lock-server-count} subvolumes.
Signed-off-by: Vikas Gorur <vikas@gluster.com>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 170 (Auto-heal fails on files that are open()-ed/mmap()-ed)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=170
Diffstat (limited to 'xlators/cluster/afr/src/afr-transaction.c')
-rw-r--r-- | xlators/cluster/afr/src/afr-transaction.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xlators/cluster/afr/src/afr-transaction.c b/xlators/cluster/afr/src/afr-transaction.c index ca13b9f0711..a2627b9caca 100644 --- a/xlators/cluster/afr/src/afr-transaction.c +++ b/xlators/cluster/afr/src/afr-transaction.c @@ -358,7 +358,7 @@ out: } -static int +int afr_lock_server_count (afr_private_t *priv, afr_transaction_type type) { int ret = 0; |