diff options
author | Amar Tumballi <amarts@redhat.com> | 2018-10-17 23:03:04 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2018-11-02 06:24:47 +0000 |
commit | c2a543ec947ac56f882a9c0a890f49c63dedeaff (patch) | |
tree | a4c42a711699ca7591d4cea0c3bcc6926ed98f17 /libglusterfs/src/options.c | |
parent | 55a6ba56bea9ec0d3316c005300c514ea3ab0e54 (diff) |
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 <amarts@redhat.com>
Diffstat (limited to 'libglusterfs/src/options.c')
-rw-r--r-- | libglusterfs/src/options.c | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |