diff options
author | 2016-05-03 20:55:50 +0800 | |
---|---|---|
committer | 2016-05-26 01:15:37 +0200 | |
commit | a407846ef7c6e7905ab0d1ebc0c86fbebb065b87 (patch) | |
tree | 58faee98894dd316c872a82e59e88307c25841a2 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ceph: fix inode reference leak (diff) | |
download | linux-dev-a407846ef7c6e7905ab0d1ebc0c86fbebb065b87.tar.xz linux-dev-a407846ef7c6e7905ab0d1ebc0c86fbebb065b87.zip |
ceph: don't assume frag tree splits in mds reply are sorted
The algorithm that updates i_fragtree relies on that the frag tree
splits in mds reply are of the same order of i_fragtree. This is not
true because current MDS encodes frag tree splits in ascending order
of (unsigned)frag_t. But nodes in i_fragtree are sorted according to
ceph_frag_compare().
The fix is sort the frag tree splits first, then updates i_fragtree.
Signed-off-by: Yan, Zheng <zyan@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions