For now, default to the sent_epoch (latest).
Signed-off-by: Sage Weil <sage@redhat.com>
class MOSDFastDispatchOp : public Message {
public:
virtual epoch_t get_map_epoch() const = 0;
+ virtual epoch_t get_min_epoch() const {
+ return get_map_epoch();
+ }
virtual spg_t get_spg() const = 0;
MOSDFastDispatchOp(int t, int version, int compat_version)
reqid.name._num, reqid.tid, reqid.inc);
}
- // note sender epoch
+ // 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();
service.maybe_inject_dispatch_delay();
bool check_send_map = true; ///< true until we check if sender needs a map
epoch_t sent_epoch = 0; ///< client's map epoch
+ epoch_t min_epoch = 0; ///< min epoch needed to handle this msg
bool hitset_inserted;
const Message *get_req() const { return request; }