Skip to content

Commit

Permalink
Merge pull request #6704 from liewegas/wip-up-thru
Browse files Browse the repository at this point in the history
mon: block 'ceph osd pg-temp ...' if pg_temp update is already pending

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
  • Loading branch information
liewegas committed Nov 26, 2015
2 parents 1e9aeb5 + 3680dc3 commit d0690be
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mon/OSDMonitor.cc
Expand Up @@ -6179,6 +6179,11 @@ bool OSDMonitor::prepare_command_impl(MonOpRequestRef op,
err = -ENOENT;
goto reply;
}
if (pending_inc.new_pg_temp.count(pgid)) {
dout(10) << __func__ << " waiting for pending update on " << pgid << dendl;
wait_for_finished_proposal(op, new C_RetryMessage(this, op));
return true;
}

vector<string> id_vec;
vector<int32_t> new_pg_temp;
Expand Down

0 comments on commit d0690be

Please sign in to comment.