diff options
author | Pavan Sondur <pavan@gluster.com> | 2010-10-01 04:33:49 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-01 03:41:25 -0700 |
commit | 828829a9cf7b925709f9a1f289d9a6cb94b74dd8 (patch) | |
tree | 844d5373d5157388ddc0bf2f46de9da2d8fac8bb /xlators | |
parent | 3009bc7b585ae9973c6b50ce464a52f20182c63f (diff) |
cluster/pump: Initiailize pthread mutex and saved fds list.
Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 865 (Add locks recovery support in GlusterFS)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=865
Diffstat (limited to 'xlators')
-rw-r--r-- | xlators/cluster/afr/src/pump.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xlators/cluster/afr/src/pump.c b/xlators/cluster/afr/src/pump.c index 45ae7db0882..b10a7c0ae62 100644 --- a/xlators/cluster/afr/src/pump.c +++ b/xlators/cluster/afr/src/pump.c @@ -2385,6 +2385,9 @@ init (xlator_t *this) priv->pump_private = pump_priv; + pthread_mutex_init (&priv->mutex, NULL); + INIT_LIST_HEAD (&priv->saved_fds); + pump_change_state (this, PUMP_STATE_ABORT); ret = 0; |