]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush/mapper: clarify numrep vs endpos
authorSage Weil <sage@inktank.com>
Tue, 3 Dec 2013 01:15:56 +0000 (17:15 -0800)
committerSage Weil <sage@inktank.com>
Tue, 3 Dec 2013 22:41:25 +0000 (14:41 -0800)
commit1b567ee08972f268c11b43fc881e57b5984dd08b
tree9babf32ce93386e21988339dffdb7692962f3d86
parentd51a219a10afe35832297fed72cbe59f2c4baef4
crush/mapper: clarify numrep vs endpos

Pass numrep (the width of the result) separately from the number of results
we want *this* iteration.  This makes things less awkward when we do a
recursive call (for chooseleaf) and want only one item.

Signed-off-by: Sage Weil <sage@inktank.com>
src/crush/mapper.c