summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src/afr-transaction.h
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2009-11-24 08:45:06 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-11-24 06:39:57 -0800
commit21cffbc219efc36229002e71a02b9270cfee9186 (patch)
treedae2cc0b57062b050b8052b6f1bb730b4be90f19 /xlators/cluster/afr/src/afr-transaction.h
parenta63e189822a777b450eeaeda8622cdb0e5e7cb1d (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.h')
-rw-r--r--xlators/cluster/afr/src/afr-transaction.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/afr-transaction.h b/xlators/cluster/afr/src/afr-transaction.h
index 4ba7dfd6d..0d3d4443e 100644
--- a/xlators/cluster/afr/src/afr-transaction.h
+++ b/xlators/cluster/afr/src/afr-transaction.h
@@ -24,6 +24,9 @@ void
afr_transaction_fop_failed (call_frame_t *frame, xlator_t *this,
int child_index);
+int
+afr_lock_server_count (afr_private_t *priv, afr_transaction_type type);
+
int32_t
afr_transaction (call_frame_t *frame, xlator_t *this, afr_transaction_type type);