mirror of
https://github.com/ceph/ceph
synced 2025-03-07 00:40:00 +00:00
osd: fix the setting of soid in sub_op_push
In the case of recovery pull using sub op, and if the prep push on remote peers fail for some reasons, recovery_info.soid is not set in prep_push_op_blank. Use it on the primary would lead to an assertion failure. Signed-off-by: Zhiqiang Wang <zhiqiang@xsky.com>
This commit is contained in:
parent
d25b3550da
commit
1842a910cc
@ -2353,7 +2353,7 @@ void ReplicatedBackend::sub_op_push(OpRequestRef op)
|
||||
MOSDSubOp *m = static_cast<MOSDSubOp *>(op->get_req());
|
||||
|
||||
PushOp pop;
|
||||
pop.soid = m->recovery_info.soid;
|
||||
pop.soid = m->poid;
|
||||
pop.version = m->version;
|
||||
m->claim_data(pop.data);
|
||||
pop.data_included.swap(m->data_included);
|
||||
|
Loading…
Reference in New Issue
Block a user