diff options
author | 2013-05-01 12:43:03 -0500 | |
---|---|---|
committer | 2013-05-02 11:58:17 -0500 | |
commit | 30d1cff817808fca9801c743d2de4c61f3f38e15 (patch) | |
tree | b6944042ba2919676bd13ebf84c412b04854f00e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rbd: clear EXISTS flag if mapped snapshot disappears (diff) | |
download | linux-dev-30d1cff817808fca9801c743d2de4c61f3f38e15.tar.xz linux-dev-30d1cff817808fca9801c743d2de4c61f3f38e15.zip |
rbd: use binary search for snapshot lookup
Use bsearch(3) to make snapshot lookup by id more efficient. (There
could be thousands of snapshots, and conceivably many more.)
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions