]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mimic: osd: set collection pool opts on collection create, pg load 32125/head
authorSage Weil <sage@redhat.com>
Mon, 9 Dec 2019 12:48:20 +0000 (13:48 +0100)
committerDan van der Ster <daniel.vanderster@cern.ch>
Mon, 9 Dec 2019 13:42:10 +0000 (14:42 +0100)
commit00e874f76a5802ee13dc12c6ddad29bbc9282c92
tree205e9c221a1708717958ed3cae8fd7d82ee4bc9e
parent71bd687b6e8b9424dd5e5974ed542595d8977416
mimic: 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.

(This is a manual backport of 512d89af9ac0d19df44dedc67fe349022c656907).

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