diff options
author | vmallika <vmallika@redhat.com> | 2015-04-14 10:44:13 +0530 |
---|---|---|
committer | Raghavendra G <rgowdapp@redhat.com> | 2015-05-31 22:29:43 -0700 |
commit | 754df15ece18864adc5297c292c20a846804cbec (patch) | |
tree | 705917fbeab6303a2573bce85a8f0c876a9fbf8e /xlators/features/changelog/lib/src/gf-changelog-journal-handler.c | |
parent | d9efe535c9ee0d01e0718d2bb871067785d33d14 (diff) |
quota: retry connecting to quotad on ENOTCONN error
Suppose if there are two volumes vol1 and vol2,
and quota is enabled and limit is set on vol1.
Now if IO is happening on vol1 and quota is enabled/disabled
on vol2, quotad gets restarted and client will receive
ENOTCONN in the IO path of vol1.
This patch will retry connecting to quotad upto 60sec
in a interval of 5sec (12 retries)
If not able to connect with 12 retries, then return ENOTCONN
Change-Id: Ie7f5d108633ec68ba9cc3a6a61d79680485193e8
BUG: 1211220
Signed-off-by: vmallika <vmallika@redhat.com>
Reviewed-on: http://review.gluster.org/10230
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Tested-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/features/changelog/lib/src/gf-changelog-journal-handler.c')
0 files changed, 0 insertions, 0 deletions