]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: fix pps calculation from pgid.ps() and pgid.pool()
authorSage Weil <sage@newdream.net>
Wed, 17 Jun 2009 19:50:06 +0000 (12:50 -0700)
committerSage Weil <sage@newdream.net>
Wed, 17 Jun 2009 19:51:08 +0000 (12:51 -0700)
commit9d6538ceb236e1ca33ffa48a049b8473cc25e729
tree653d742aaf4ae3d7bab59bc30e477009e4ef2602
parent1f086d9b63dd95e53a2077180df4da9f5c16bc4b
osd: fix pps calculation from pgid.ps() and pgid.pool()

The final placement seed needs to factor in pool, but that can't be
fed into stable_mod or you get weird results (for example, 1.ff and
1.adff won't necessary map to the same thing because of the
stable_mod).  Add pool to the stable_mod result, instead.  The seed
itself doesn't need to be bounded; it's just an input for CRUSH.
Just so long as there are a limited number of such inputs for a given
pool.
src/osd/osd_types.h