diff options
author | Raghavendra G <raghavendra@gluster.com> | 2011-04-21 04:16:44 +0000 |
---|---|---|
committer | Anand Avati <avati@gluster.com> | 2011-04-21 03:35:56 -0700 |
commit | 58465cdca9386fe2fa15049911223f7282e1b412 (patch) | |
tree | 1359cd599a4e9b153c7240ebc548caba1ff75163 /xlators/features/marker/src/marker.c | |
parent | 1f074563ecdaf92b2ecf12d7ea79b2b5d8f50c2d (diff) |
features/marker-quota: handle overflow of counter used to set frame->root->lk_owner.
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
Signed-off-by: Anand Avati <avati@gluster.com>
BUG: 2804 (Occasional log messages seen indicating failure of inodelk)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2804
Diffstat (limited to 'xlators/features/marker/src/marker.c')
-rw-r--r-- | xlators/features/marker/src/marker.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/xlators/features/marker/src/marker.c b/xlators/features/marker/src/marker.c index 7b339748b..862c0a464 100644 --- a/xlators/features/marker/src/marker.c +++ b/xlators/features/marker/src/marker.c @@ -1889,6 +1889,8 @@ marker_priv_cleanup (xlator_t *this) marker_xtime_priv_cleanup (this); + LOCK_DESTROY (&priv->lock); + GF_FREE (priv); out: return; @@ -1975,6 +1977,8 @@ init (xlator_t *this) priv->feature_enabled = 0; + LOCK_INIT (&priv->lock); + data = dict_get (options, "quota"); if (data) { ret = gf_string2boolean (data->data, &flag); |