mirror of
https://github.com/ceph/ceph
synced 2025-01-20 01:51:34 +00:00
mds: return string_view for type str
This is a cheap refactor. Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
This commit is contained in:
parent
c7350ac23c
commit
e540028cba
@ -671,7 +671,7 @@ bool PurgeQueue::drain(
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string PurgeItem::get_type_str() const
|
||||
std::string_view PurgeItem::get_type_str() const
|
||||
{
|
||||
switch(action) {
|
||||
case PurgeItem::NONE: return "NONE";
|
||||
|
@ -76,7 +76,7 @@ public:
|
||||
f->close_section();
|
||||
}
|
||||
|
||||
std::string get_type_str() const;
|
||||
std::string_view get_type_str() const;
|
||||
private:
|
||||
static const std::map<std::string, PurgeItem::Action> actions;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user