void OpRequest::set_cache() { set_rmw_flags(CEPH_OSD_RMW_FLAG_CACHE); }
void OpRequest::set_promote() { set_rmw_flags(CEPH_OSD_RMW_FLAG_PROMOTE); }
-void OpRequest::mark_flag_point(uint8_t flag, string s) {
+void OpRequest::mark_flag_point(uint8_t flag, const string& s) {
#ifdef WITH_LTTNG
uint8_t old_flags = hit_flag_points;
#endif
void mark_reached_pg() {
mark_flag_point(flag_reached_pg, "reached_pg");
}
- void mark_delayed(string s) {
+ void mark_delayed(const string& s) {
mark_flag_point(flag_delayed, s);
}
void mark_started() {
mark_flag_point(flag_started, "started");
}
- void mark_sub_op_sent(string s) {
+ void mark_sub_op_sent(const string& s) {
mark_flag_point(flag_sub_op_sent, s);
}
void mark_commit_sent() {
private:
void set_rmw_flags(int flags);
- void mark_flag_point(uint8_t flag, string s);
+ void mark_flag_point(uint8_t flag, const string& s);
};
typedef OpRequest::Ref OpRequestRef;