summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
authorN Balachandran <nbalacha@redhat.com>2018-10-17 18:48:19 +0530
committerShyamsundar Ranganathan <srangana@redhat.com>2018-10-18 12:48:09 +0000
commit7e918e9a0724fd50a672fa5a9c844af7f903e9fc (patch)
tree44fc056dcc756d8ae7f0b9deb06c73b101aad773 /api
parent5bc2fd4fc6a8aa65d8d2b2c22ffb6c5b70ef9dac (diff)
debug/io-stats: io stats filenames contain garbage
As dict_unserialize does not null terminate the value, using snprintf adds garbage characters to the buffer used to create the filename. The code also used this->name in the filename which will be the same for all bricks for a volume. The files were thus overwritten if a node contained multiple bricks for a volume. The code now uses the conf->unique instead if available. Change-Id: I2c72534b32634b87961d3b3f7d53c5f2ca2c068c fixes: bz#1640392 Signed-off-by: N Balachandran <nbalacha@redhat.com> (cherry picked from commit 219cd649fdbd7bfd6c2268a0a4f66bcc15918e31)
Diffstat (limited to 'api')
0 files changed, 0 insertions, 0 deletions