mirror of
https://github.com/ceph/ceph
synced 2025-04-01 23:02:17 +00:00
ReplicatedPG: do not meaninglessly fill in the reqid on make_writeable() cloning
This reqid is used to fill in a map that is used for giving clients the correct version on replayed ops, unless the reqid is blank (in which case it doesn't go into the map). Indirect clones are not ops that the client wants to observe and the version is incorrect right now, so don't fill it in. Note that this should not have actually caused any buggy behavior, because the map would have simply been overwritten by the real requested event a short time later (while still protected by locks and things). But it's very confusing. Signed-off-by: Greg Farnum <greg@inktank.com>
This commit is contained in:
parent
a9a516a299
commit
82e40a7d86
@ -3772,7 +3772,7 @@ void ReplicatedPG::make_writeable(OpContext *ctx)
|
||||
ctx->log.push_back(pg_log_entry_t(pg_log_entry_t::CLONE, coid, ctx->at_version,
|
||||
ctx->obs->oi.version,
|
||||
ctx->obs->oi.user_version,
|
||||
ctx->reqid, ctx->new_obs.oi.mtime));
|
||||
osd_reqid_t(), ctx->new_obs.oi.mtime));
|
||||
::encode(snaps, ctx->log.back().snaps);
|
||||
|
||||
ctx->at_version.version++;
|
||||
|
Loading…
Reference in New Issue
Block a user