diff options
Diffstat (limited to 'libglusterfs/src/ctx.c')
-rw-r--r-- | libglusterfs/src/ctx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/ctx.c b/libglusterfs/src/ctx.c index 1c707eb5dfd..1cf1b988590 100644 --- a/libglusterfs/src/ctx.c +++ b/libglusterfs/src/ctx.c @@ -49,6 +49,9 @@ glusterfs_ctx_new () ctx = NULL; } + GF_ATOMIC_INIT (ctx->stats.max_dict_pairs, 0); + GF_ATOMIC_INIT (ctx->stats.total_pairs_used, 0); + GF_ATOMIC_INIT (ctx->stats.total_dicts_used, 0); out: return ctx; } |