#include "MOSDFastDispatchOp.h"
-class MOSDPGPush : public MessageInstance<MOSDPGPush, MOSDFastDispatchOp> {
-public:
- friend factory;
+class MOSDPGPush : public MOSDFastDispatchOp {
private:
static constexpr int HEAD_VERSION = 4;
static constexpr int COMPAT_VERSION = 2;
bool is_repair = false;
private:
- uint64_t cost;
+ uint64_t cost = 0;
public:
void compute_cost(CephContext *cct) {
}
MOSDPGPush()
- : MessageInstance(MSG_OSD_PG_PUSH, HEAD_VERSION, COMPAT_VERSION),
- cost(0)
- {}
+ : MOSDFastDispatchOp{MSG_OSD_PG_PUSH, HEAD_VERSION, COMPAT_VERSION}
+ {}
void decode_payload() override {
auto p = payload.cbegin();
<< " " << pushes;
out << ")";
}
+
+private:
+ template<class T, typename... Args>
+ friend boost::intrusive_ptr<T> ceph::make_message(Args&&... args);
};
#endif