summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix
diff options
context:
space:
mode:
authorSanju Rakonde <srakonde@redhat.com>2019-10-16 23:26:03 +0530
committerAtin Mukherjee <amukherj@redhat.com>2019-10-18 05:21:19 +0000
commit105c7c5e7deaf9be29b81dc51f58dd5e5f8bd071 (patch)
treed6f9853c363a8e8369063093126548c1fc16329d /xlators/storage/posix
parentb0ea2d10f7668f1d1076e06ec165230526d8b892 (diff)
glusterd: display correct rebalance data size after glusterd restart
Problem: After completion of rebalance, if glusterd is restarted, rebalance status displays wrong rebalance data size in its output. Cause: While glusterd restoring the information from /var/lib/glusterd/ into its memory, glusterd fetches rebalance_data from /var/lib/glusterd/vols/volname/node_state.info. This value is converted into an integer using atoi(), which is returning incorrect value for larger values. Solution: use sscanf() instead of atoi() to convert string to integer(in this case it is unsigned long) fixes: bz#1762438 Change-Id: Icbdb096919612b4a1d6fb0e315f09d38900abf4e Signed-off-by: Sanju Rakonde <srakonde@redhat.com>
Diffstat (limited to 'xlators/storage/posix')
0 files changed, 0 insertions, 0 deletions