]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
HashIndex: fix list_by_hash handling of next->is_max()
authorSamuel Just <sam.just@inktank.com>
Thu, 6 Dec 2012 21:57:01 +0000 (13:57 -0800)
committerSamuel Just <sam.just@inktank.com>
Fri, 7 Dec 2012 00:56:25 +0000 (16:56 -0800)
commitf2914af52ebb3005d23ddd4fbf1dd882c53a03c5
treeca65ad204c52670c9bec08b3c7c6a1c35683825b
parent0c010949721231d9f4811b7fa51924483f50d888
HashIndex: fix list_by_hash handling of next->is_max()

get_path_str() should not handle hobject_t::get_max().  get_path_str()
now asserts that the passed object is not max and the callers now check
for is_max().  This caused HashIndex.cc to incorrectly scan an entire
collection before returning no objects rather than scanning the top
level and returning no objects.  It did not actually list_by_hash to
return an incorrect answer, however.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
src/os/HashIndex.cc
src/test/filestore/store_test.cc