]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd_types.cc: don't store 32 least siognificant bits of state twice 19965/head
authorPiotr Dałek <piotr.dalek@corp.ovh.com>
Tue, 16 Jan 2018 09:47:19 +0000 (10:47 +0100)
committerPiotr Dałek <piotr.dalek@corp.ovh.com>
Tue, 16 Jan 2018 10:04:24 +0000 (11:04 +0100)
commit0230fe673396cc84b595ff2215546880bd77eb5b
tree6d5b7ccfc043a37ca0d891e6e581b86c1ae30046
parentae7472fb075f7e1ea79598481786cba0d7e3f389
osd_types.cc: don't store 32 least siognificant bits of state twice

a25221e55172c326b48dea6f08c16d700921864e introduced a new, 64bit
pg state field, retaining encoding and decoding of least significant
32 bits for compatibility reasons.
This commit also adds encoding of entire 64bit state field, meaning
that the least significant bits are encoded and decoded twice.
Fix this by encoding each half of 64bit field separately.

Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
src/osd/osd_types.cc