* refs/pull/25879/head:
client: define template to declare ref
client: use message smart ptr instead of raw ptr
client: make map lookup optimizations
client: do not clear message payload
client: clean up variable name
*: use std::string_view instead of char ptr
Reviewed-by: Sage Weil <sage@redhat.com>
~MLock() override {}
public:
- const char *get_type_name() const override { return "ILock"; }
+ std::string_view get_type_name() const override { return "ILock"; }
void print(ostream& out) const override {
- out << "lock(a=" << get_lock_action_name(action)
- << " " << get_lock_type_name(lock_type)
+ out << "lock(a=" << SimpleLock::get_lock_action_name(action)
+ << " " << SimpleLock::get_lock_type_name(lock_type)
<< " " << object_info
<< ")";
}