mirror of
https://github.com/ceph/ceph
synced 2025-02-23 11:07:35 +00:00
osd: assert min_epoch <= sent_epoch
Otherwise the sender is broken and probaby didn't fill in min_epoch properly! Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
602c5bfd89
commit
5898fe4aa0
@ -6406,6 +6406,7 @@ void OSD::ms_fast_dispatch(Message *m)
|
||||
// note sender epoch, min req'd epoch
|
||||
op->sent_epoch = static_cast<MOSDFastDispatchOp*>(m)->get_map_epoch();
|
||||
op->min_epoch = static_cast<MOSDFastDispatchOp*>(m)->get_min_epoch();
|
||||
assert(op->min_epoch <= op->sent_epoch); // sanity check!
|
||||
|
||||
service.maybe_inject_dispatch_delay();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user