We don't want to take the time to flush things to disk and shut down all
the worker threads if there is nothing new in the osdmap update (as is
usually the case).
Signed-off-by: Sage Weil <sage@newdream.net>
state = STATE_ACTIVE;
+ // make sure there is something new, here, before we bother flushing the queues and such
+ if (m->get_last() <= osdmap->get_epoch()) {
+ dout(10) << " no new maps here, dropping" << dendl;
+ m->put();
+ return;
+ }
+
// pause, requeue op queue
//wait_for_no_ops();