Skip to content

Commit

Permalink
Merge pull request ceph#1319 from ceph/wip-primary-temp-fix
Browse files Browse the repository at this point in the history
osd/OSDMap: respect temp primary without temp acting

Reviewed-by: Greg Farnum <[email protected]>
  • Loading branch information
gregsfortytwo committed Feb 26, 2014
2 parents 5a6cb3d + 1040d1b commit 82aba4b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/osd/OSDMap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1557,7 +1557,9 @@ void OSDMap::_pg_to_up_acting_osds(pg_t pg, vector<int> *up, int *up_primary,
_get_temp_osds(*pool, pg, &_acting, &_acting_primary);
if (_acting.empty()) {
_acting = _up;
_acting_primary = _up_primary;
if (_acting_primary == -1) {
_acting_primary = _up_primary;
}
}
if (up)
up->swap(_up);
Expand Down

0 comments on commit 82aba4b

Please sign in to comment.