Commit
cefa55b288b40e17ade9875493dd94de52ac22bf moved PG initialization
into init(), but passed acting for both up and acting args. This lead to
confusion between primary and replica.
Also fix debug print so that the output is useful.
Fixes: #2075, #2070
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
history.last_epoch_started = history.epoch_created - 1;
}
- pg->init(role, acting, acting, history, &t);
+ pg->init(role, up, acting, history, &t);
dout(7) << "_create_lock_pg " << *pg << dendl;
return pg;
void PG::init(int role, vector<int>& newup, vector<int>& newacting, pg_history_t& history,
ObjectStore::Transaction *t)
{
- dout(10) << "init role " << role << " up " << up << " acting " << acting
+ dout(10) << "init role " << role << " up " << newup << " acting " << newacting
<< " history " << history << dendl;
set_role(role);