From 8c95c2b69c08fa5c7d845e73d0e63fb2f001c511 Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Fri, 4 Sep 2009 01:43:43 +0000 Subject: storage/posix: Synchronize access to this->private. Hold lock on priv while updating variables inside it. Signed-off-by: Anand V. Avati BUG: 175 (Statistics for number of open files in Posix incorrect) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=175 --- xlators/storage/posix/src/posix.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators/storage/posix/src/posix.h') diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h index 15829db18..9db6c94cd 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -65,6 +65,8 @@ struct posix_private { char *base_path; int32_t base_path_length; + gf_lock_t lock; + char hostname[256]; /* Statistics, provides activity of the server */ struct xlator_stats stats; -- cgit