mds: fix lock print methods

This commit is contained in:
Sage Weil 2009-01-02 14:13:12 -08:00
parent 4087a07478
commit d5130abfd7
2 changed files with 2 additions and 2 deletions

View File

@ -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";

View File

@ -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())