mirror of
https://github.com/ceph/ceph
synced 2025-01-21 18:45:23 +00:00
osd: observe snapset.head_exists on read
This commit is contained in:
parent
e54851f3d1
commit
aab685bea9
@ -472,9 +472,18 @@ bool ReplicatedPG::pick_read_snap(pobject_t& poid)
|
||||
|
||||
// head?
|
||||
if (want > snapset.seq) {
|
||||
dout(10) << "pick_read_snap " << head << " want " << want << " > snapset seq " << snapset.seq << " -- HIT" << dendl;
|
||||
poid = head;
|
||||
return true;
|
||||
if (snapset.head_exists) {
|
||||
dout(10) << "pick_read_snap " << head
|
||||
<< " want " << want << " > snapset seq " << snapset.seq
|
||||
<< " -- HIT" << dendl;
|
||||
poid = head;
|
||||
return true;
|
||||
} else {
|
||||
dout(10) << "pick_read_snap " << head
|
||||
<< " want " << want << " > snapset seq " << snapset.seq
|
||||
<< " but head_exists = false -- DNE" << dendl;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// which clone would it be?
|
||||
|
Loading…
Reference in New Issue
Block a user