]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: set collection pool opts on collection create, pg load 29093/head
authorSage Weil <sage@redhat.com>
Wed, 17 Jul 2019 17:50:18 +0000 (12:50 -0500)
committerSage Weil <sage@redhat.com>
Wed, 17 Jul 2019 17:54:28 +0000 (12:54 -0500)
commit512d89af9ac0d19df44dedc67fe349022c656907
tree588a713bd1ca992c0ddf2e8bb5adc17c27b6b113
parent122b1b6695b99db1a4e87affb1b86dbdef3c5855
osd: set collection pool opts on collection create, pg load

We need to tell the ObjectStore's Collections what the pool options are
for things like the bluestore compression mode and so on to take effect.

Apply these

- when we create new collections, due to a new pg or a split
- when we start up and open an existing collection

We already apply these changes when there is a pool change.

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