diff options
author | nik-redhat <nladha@redhat.com> | 2020-07-28 11:45:09 +0530 |
---|---|---|
committer | Sanju Rakonde <sanjurakonde@review.gluster.org> | 2020-08-18 09:31:04 +0000 |
commit | ad1d697d40db047c3024cb98b42839963bdbdf0f (patch) | |
tree | 52436a5af7368485f5584a36795095948e6fc8fe /xlators/mount | |
parent | f5f94e574a8e27e4a6665567db30b82618115694 (diff) |
glusterd: performance improvement
Issue:
In the glusertd_op_stage_create_volume(), fetching of values
from the dict is done, whereas same values are fetched
by glusterd_check_brick_order() which is called from
that function. This leads to unnecssary performance overhead.
Fix:
Instead of fetching the values again, passing the
values to the glusterd_check_brick_order()
if it's fethced before, else a NULL is passed
and then only fetching is done here.
Also, few changes are made to the code to reduce
the cost of operations such as 'fast fail' for
false conditions and a bit of code clean up.
Fixes: #1397
Change-Id: Ic7b523adbca8eb63ef9eb29c206e3b19e05c0815
Signed-off-by: nik-redhat <nladha@redhat.com>
Diffstat (limited to 'xlators/mount')
0 files changed, 0 insertions, 0 deletions