diff options
Diffstat (limited to 'api/src/glfs.c')
-rw-r--r-- | api/src/glfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api/src/glfs.c b/api/src/glfs.c index 75dd315f6bd..7542d8b9fcd 100644 --- a/api/src/glfs.c +++ b/api/src/glfs.c @@ -563,7 +563,8 @@ pub_glfs_new (const char *volname) if (ret) return NULL; - THIS->ctx = ctx; + if (!THIS->ctx) + THIS->ctx = ctx; /* then ctx_defaults_init, for xlator_mem_acct_init(THIS) */ ret = glusterfs_ctx_defaults_init (ctx); |