]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: fix crush_perm_choose; optimize r=0 case.
authorSage Weil <sage@newdream.net>
Wed, 13 May 2009 23:46:20 +0000 (16:46 -0700)
committerSage Weil <sage@newdream.net>
Wed, 13 May 2009 23:46:20 +0000 (16:46 -0700)
commitbc58419f99610bed6ace3db6899c6bce0c37a7da
treea15b43ccb3002595a7e8e57517cdae867e8bc0ae
parent0c2871fb0d88120b32ff0ce98b5ca2ae5a40232d
crush: fix crush_perm_choose; optimize r=0 case.

This was misbehaving for x=0, among other things.

Avoid filling in perm array for the initial (p)r=0 call.  We only
need to do a full permutation for subsequent r.
src/crush/CrushWrapper.h
src/crush/mapper.c
src/psim.cc