mirror of
https://github.com/ceph/ceph
synced 2025-01-30 06:53:38 +00:00
mds: fix lock print methods
This commit is contained in:
parent
4087a07478
commit
d5130abfd7
@ -57,7 +57,7 @@ public:
|
|||||||
xlistitem_updated.remove_myself(); // FIXME this should happen sooner, i think...
|
xlistitem_updated.remove_myself(); // FIXME this should happen sooner, i think...
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *get_scatterlock_state_name(int s) {
|
const char *get_state_name(int s) {
|
||||||
switch(s) {
|
switch(s) {
|
||||||
case LOCK_SYNC: return "sync";
|
case LOCK_SYNC: return "sync";
|
||||||
case LOCK_SYNC_LOCK: return "sync->lock";
|
case LOCK_SYNC_LOCK: return "sync->lock";
|
||||||
|
@ -358,7 +358,7 @@ public:
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void _print(ostream& out) {
|
virtual void _print(ostream& out) {
|
||||||
out << get_lock_type_name(get_type()) << " ";
|
out << get_lock_type_name(get_type()) << " ";
|
||||||
out << get_state_name(get_state());
|
out << get_state_name(get_state());
|
||||||
if (!get_gather_set().empty())
|
if (!get_gather_set().empty())
|
||||||
|
Loading…
Reference in New Issue
Block a user