If we have osdmap N, we want to onetime subscribe
starting at N+1. Among other things, it means we
hear when the NOUP flag is cleared.
This appears to have broken somewhere around
3c76b81f2f96b790b72f2088164ed8e9d5efbba1.
Fixes: #7511
Signed-off-by: Sage Weil <sage@inktank.com>
// get all the latest maps
if (osdmap->get_epoch() > oldest)
- osdmap_subscribe(osdmap->get_epoch(), true);
+ osdmap_subscribe(osdmap->get_epoch() + 1, true);
else
osdmap_subscribe(oldest - 1, true);
}