summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/xlator.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/xlator.c')
-rw-r--r--libglusterfs/src/xlator.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libglusterfs/src/xlator.c b/libglusterfs/src/xlator.c
index b060d393730..4071a7c0569 100644
--- a/libglusterfs/src/xlator.c
+++ b/libglusterfs/src/xlator.c
@@ -217,6 +217,7 @@ xlator_volopt_dynload (char *xlator_type, void **dl_handle,
int xlator_dynload_oldway (xlator_t *xl)
{
+ int i = 0;
int ret = -1;
void *handle = NULL;
volume_opt_list_t *vol_opt = NULL;
@@ -300,6 +301,12 @@ int xlator_dynload_oldway (xlator_t *xl)
INIT_LIST_HEAD (&vol_opt->list);
list_add_tail (&vol_opt->list, &xl->volume_options);
+ /* make sure 'min' is set to high value, so it would be
+ properly set later */
+ for (i = 0; i < GF_FOP_MAXVALUE; i++) {
+ xl->stats.interval.latencies[i].min = 0xffffffff;
+ }
+
ret = 0;
out: