]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: only correct filestore collection bits on load 14397/head
authorSage Weil <sage@redhat.com>
Fri, 7 Apr 2017 13:50:12 +0000 (09:50 -0400)
committerSage Weil <sage@redhat.com>
Fri, 7 Apr 2017 13:50:12 +0000 (09:50 -0400)
commit79e78bdbf32490f4402a300762fe3edaa70926fe
tree769e7f0cee11311217fd5737baf0208088fea01f
parent5624b19099eac15d56dd275a3506bdfda752b5fc
osd/PG: only correct filestore collection bits on load

PG::update_store_with_options() is called on load *and* when the pool
properties change, but if we only need to fix bits right at load time.
More importantly, but doing a second check on pool change, we may race
with a previously queued collection create that is not yet readable via
filestore, try to (synchronously) set the property again, and deadlock.

Fixes: http://tracker.ceph.com/issues/19541
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/PG.cc
src/osd/PG.h