This is temporarily; we'll put this in an async, parallelized thread
shortly.
Signed-off-by: Sage Weil <sage@redhat.com>
ls.pop_front();
}
}
+
+ // FIXME: hacky synchronous blocking mapping update
+ utime_t start = ceph_clock_now();
+ mapping.update(osdmap);
+ utime_t end = ceph_clock_now();
+ dout(10) << __func__ << " updated mapping in " << (end - start) << dendl;
}
void OSDMonitor::on_shutdown()
#include "msg/Messenger.h"
#include "osd/OSDMap.h"
+#include "osd/OSDMapMapping.h"
#include "PaxosService.h"
CephContext *cct;
public:
OSDMap osdmap;
+ OSDMapMapping mapping;
private:
// [leader]