From c2a543ec947ac56f882a9c0a890f49c63dedeaff Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Wed, 17 Oct 2018 23:03:04 +0530 Subject: xlator: add generic option parsing framework As an example, and also as an enhancement, added 'log-level' as a default option to every translator (glusterfs already support infrastructure to handle xl->loglevel). Corresponding infrastructure to add per xlator log-level is not present in glusterd volume-set. Plan is to get it sorted out in later patches or in GD2. * Why this is needed? - Mainly because we need to only add different log-level to some xlator to debug few things in a production system, while not changing overall log-level. This helps in better debug-ability. Updates: bz#1193929 Change-Id: Ia4098ce39197cd423345b3d31fe8315481681ab8 Signed-off-by: Amar Tumballi --- libglusterfs/src/options.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfs/src/options.c') diff --git a/libglusterfs/src/options.c b/libglusterfs/src/options.c index 601baf9004f..12078327b4f 100644 --- a/libglusterfs/src/options.c +++ b/libglusterfs/src/options.c @@ -1120,6 +1120,7 @@ xlator_reconfigure_rec(xlator_t *old_xl, xlator_t *new_xl) THIS = old_xl; xlator_init_lock(); + handle_default_options(old_xl, new_xl->options); ret = old_xl->reconfigure(old_xl, new_xl->options); xlator_init_unlock(); -- cgit