]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: change find_roots(); add find_takes()
authorSage Weil <sage@inktank.com>
Fri, 22 Mar 2013 21:23:37 +0000 (14:23 -0700)
committerSage Weil <sage@inktank.com>
Fri, 22 Mar 2013 22:15:37 +0000 (15:15 -0700)
commit683f745c145b4935762193020011c6bd6fdeac3a
tree205b141265c3b9d114f4ba613e6b767fc5b0cb1a
parent751b4bf89fe97b58216d4f26996905d365c25cb0
crush: change find_roots(); add find_takes()

The find_roots() was looking for nodes referenced by 'take', but those
aren't necessarily roots, which is what the callers actually want.

Rename to find_takes() and add a real find_roots().  Not very efficient,
but we don't care.

Signed-off-by: Sage Weil <sage@inktank.com>
src/crush/CrushWrapper.cc
src/crush/CrushWrapper.h