diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2019-11-05 18:05:38 +0200 |
---|---|---|
committer | Atin Mukherjee <amukherj@redhat.com> | 2019-11-18 01:13:45 +0000 |
commit | 515d1b4577d989fa99f236d9e344a71db7d001a0 (patch) | |
tree | 1f22c700a77469aae355d32124a55f7f7cb017df /xlators/storage/posix/src | |
parent | d1842d97b22419a8b73c2da07caa5f346ee6f7a7 (diff) |
glusterd-volgen.c: improve volgen_graph_set_options_generic()
Skip fetching "skip-CLIOT" unconditionally on every
invocation of volgen_graph_set_options_generic().
Instead, fetch only if the vme->key matches to it.
We calculate the length of vme->key (but we would have
done it anyway in dict_get() later on, so now we can use
dict_getn() instead and re-use that key length) and check
if the lengths match before doing a strcmp() between them.
Lastly, if they match, we actually do the fetch.
Change-Id: I9d9a7104f9e920bf81477128adb5fc87f5d30627
updates: bz#1193929
Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src')
0 files changed, 0 insertions, 0 deletions