Skip to content

Commit

Permalink
Merge pull request ceph#1474 from ceph/wip-7740
Browse files Browse the repository at this point in the history
OSD::handle_pg_query: on dne pg, send lb=hobject_t() if deleting

Reviewed-by: Sage Weil <[email protected]>
  • Loading branch information
Sage Weil committed Mar 16, 2014
2 parents 2f9a748 + 04de781 commit ce9bfb8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/osd/OSD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6938,6 +6938,11 @@ void OSD::handle_pg_query(OpRequestRef op)

dout(10) << " pg " << pgid << " dne" << dendl;
pg_info_t empty(spg_t(pgid.pgid, it->second.to));
/* This is racy, but that should be ok: if we complete the deletion
* before the pg is recreated, we'll just start it off backfilling
* instead of just empty */
if (service.deleting_pgs.lookup(pgid))
empty.last_backfill = hobject_t();
if (it->second.type == pg_query_t::LOG ||
it->second.type == pg_query_t::FULLLOG) {
ConnectionRef con = service.get_con_osd_cluster(from, osdmap->get_epoch());
Expand Down

0 comments on commit ce9bfb8

Please sign in to comment.