From 21cffbc219efc36229002e71a02b9270cfee9186 Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Tue, 24 Nov 2009 08:45:06 +0000 Subject: 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 Signed-off-by: Anand V. Avati 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 --- xlators/cluster/afr/src/afr.h | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators/cluster/afr/src/afr.h') diff --git a/xlators/cluster/afr/src/afr.h b/xlators/cluster/afr/src/afr.h index 3bd8a458bc2..2f57426621d 100644 --- a/xlators/cluster/afr/src/afr.h +++ b/xlators/cluster/afr/src/afr.h @@ -95,6 +95,7 @@ typedef struct { int active_sinks; int *success; int *locked_nodes; + int lock_count; mode_t impunging_entry_mode; const char *linkname; -- cgit