Skip to content

Commit 457aa80

Browse files
authored
Merge pull request ceph#56980 from sajibreadd/device-class-mask-65228
osd: class:device-class config database mask does not work for osd_compact_on_start Reviewed-by: Igor Fedotov <[email protected]>
2 parents 228fbaa + eda7eee commit 457aa80

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/osd/OSD.cc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3930,11 +3930,6 @@ int OSD::init()
39303930

39313931
dout(2) << "superblock: I am osd." << superblock.whoami << dendl;
39323932

3933-
if (cct->_conf.get_val<bool>("osd_compact_on_start")) {
3934-
dout(2) << "compacting object store's DB" << dendl;
3935-
store->compact();
3936-
}
3937-
39383933
// prime osd stats
39393934
{
39403935
struct store_statfs_t stbuf;
@@ -4080,6 +4075,11 @@ int OSD::init()
40804075
if (is_stopping())
40814076
return 0;
40824077

4078+
if (cct->_conf.get_val<bool>("osd_compact_on_start")) {
4079+
dout(2) << "compacting object store's DB" << dendl;
4080+
store->compact();
4081+
}
4082+
40834083
// start objecter *after* we have authenticated, so that we don't ignore
40844084
// the OSDMaps it requests.
40854085
service.final_init();

0 commit comments

Comments
 (0)