]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: fix frag selection code
authorSage Weil <sage@newdream.net>
Tue, 4 Jan 2011 18:20:18 +0000 (10:20 -0800)
committerSage Weil <sage@newdream.net>
Tue, 4 Jan 2011 18:20:18 +0000 (10:20 -0800)
commit3d4e1d99566319bf483d1611851eaa41d3f95b7b
treee4546fee14cdd9e21f1c27e471352c23405ff481
parent062c4cc820709825a51ea301115bd256449c510c
client: fix frag selection code

Calling fragtree_t::contains() on a non-frag_t is nonsense and will crash.
And a fragtree is a complete partition of the space.  What we really want
to check is if we know where to find the specific frag_t we need.

Signed-off-by: Sage Weil <sage@newdream.net>
src/client/Client.cc