From c5070ff4bd9291965ea0bee53b649fc3976b53ab Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 11 Mar 2008 15:12:21 -0700 Subject: [PATCH] osd: fix startup after mkfs when osds dont come up in unison --- src/TODO | 1 - src/osd/OSD.cc | 2 +- src/osd/OSDMap.cc | 4 ++-- src/osd/OSDMap.h | 2 +- src/start.sh | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/TODO b/src/TODO index b59532d085ed9..10e0d612764ba 100644 --- a/src/TODO +++ b/src/TODO @@ -6,7 +6,6 @@ gsoc? - online changes to pg_num - initialization of pg_num during non-simple mkfs... -- review/remove post_mkfs hacks in PG.cc?? code cleanup - userspace encoding/decoding needs major cleanup diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 070f6b7eb94a9..03561a0df15d5 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -1409,7 +1409,7 @@ void OSD::advance_map(ObjectStore::Transaction& t) ps_t numps = osdmap->get_pg_num(); ps_t fromps = osdmap->get_prior_pg_num(); ps_t numlps = osdmap->get_localized_pg_num(); - ps_t fromlps = osdmap->get_prior_pg_num(); + ps_t fromlps = osdmap->get_prior_localized_pg_num(); dout(1) << "mkpg " << osdmap->get_fsid() << " on " << fromps << "-" << numps << " normal, " << fromlps << "-" << numlps << " localized pg sets" << dendl; diff --git a/src/osd/OSDMap.cc b/src/osd/OSDMap.cc index 1b0d36566940e..a7c3da120abb1 100644 --- a/src/osd/OSDMap.cc +++ b/src/osd/OSDMap.cc @@ -37,7 +37,7 @@ void OSDMap::build_simple(epoch_t e, ceph_fsid &fsid, for (int i=0; i