scylla-gdb: Use find_db helper

Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
This commit is contained in:
Pavel Emelyanov
2021-09-02 17:28:31 +03:00
parent 75e1d7ea74
commit e69969b6c7

View File

@@ -1729,7 +1729,7 @@ class scylla_memory(gdb.Command):
@staticmethod
def print_replica_stats():
db = sharded(gdb.parse_and_eval('::debug::db')).local()
db = find_db()
try:
mem_stats = dict()