diff options
Diffstat (limited to 'src/os/FileStore.cc')
-rw-r--r-- | src/os/FileStore.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index a91c252e531..b4392e3efb9 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -1666,6 +1666,13 @@ int FileStore::mount() ret = -1; goto close_current_fd; } + + if (g_conf->osd_compact_leveldb_on_mount) { + derr << "Compacting store..." << dendl; + omap_store->compact(); + derr << "...finished compacting store" << dendl; + } + DBObjectMap *dbomap = new DBObjectMap(omap_store); ret = dbomap->init(do_update); if (ret < 0) { |