From c611192489d1f5180959d9c22c1b4ca15e8940c8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Thu, 22 Jul 2010 16:03:53 -0700 Subject: [PATCH] osd: create missing temp collection/dir --- src/osd/OSD.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index f431bb7217332..fb83d667dc370 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -481,6 +481,14 @@ int OSD::init() clear_temp(); + // make sure (newish) temp dir exists + if (!store->collection_exists(coll_t(coll_t::TYPE_TEMP))) { + dout(10) << "creating temp pg dir" << dendl; + ObjectStore::Transaction t; + t.create_collection(coll_t(coll_t::TYPE_TEMP)); + store->apply_transaction(t); + } + // load up pgs (as they previously existed) load_pgs(); -- 2.39.5