]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crush: fix perm_choose bug
authorSage Weil <sage@newdream.net>
Tue, 16 Jun 2009 22:03:50 +0000 (15:03 -0700)
committerSage Weil <sage@newdream.net>
Tue, 16 Jun 2009 22:03:50 +0000 (15:03 -0700)
commitcb719ac3eba7b32fd45ca9a39d3800a220653427
treeb52b7e086c48c0ad3342f7d3cbc93cbc62d6c9d8
parent52bee4b5a28dbc9d1f30e02921cb7d3dc9a7e5c3
crush: fix perm_choose bug

We would get incorrect results if we calculated the same mapping
twice in a row in certain cases.  Der.  Also, the permutation
calculation was basically just wrong.
src/crush/crush.h
src/crush/mapper.c