diff options
author | Vikas Gorur <vikas@gluster.com> | 2009-09-04 01:43:43 +0000 |
---|---|---|
committer | Anand V. Avati <avati@dev.gluster.com> | 2009-09-08 03:22:31 -0700 |
commit | 8c95c2b69c08fa5c7d845e73d0e63fb2f001c511 (patch) | |
tree | 6a43cbe1adba73904d5d5e89a2c35c4211815152 /xlators/storage/posix/src/posix.h | |
parent | fdef6f360f0755847d2520d79a4c7f0af35c7b0a (diff) |
storage/posix: Synchronize access to this->private.
Hold lock on priv while updating variables inside it.
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
BUG: 175 (Statistics for number of open files in Posix incorrect)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=175
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r-- | xlators/storage/posix/src/posix.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |