mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
gdb: Fix "scylla columnfamilies" command
Broken in0e4d5bc2f3. Message-Id: <1499951956-26206-1-git-send-email-tgrabiec@scylladb.com> (cherry picked from commit54953c8d27)
This commit is contained in:
committed by
Avi Kivity
parent
aac1d5d54d
commit
5aa3e23fcd
@@ -190,7 +190,7 @@ class scylla_column_families(gdb.Command):
|
||||
db = find_db(shard)
|
||||
cfs = db['_column_families']
|
||||
for (key, value) in list_unordered_map(cfs):
|
||||
value = value['_p']['_value'] # it's a lw_shared_ptr
|
||||
value = value['_p'].reinterpret_cast(gdb.lookup_type('column_family').pointer()).dereference() # it's a lw_shared_ptr
|
||||
schema = value['_schema']['_p'].reinterpret_cast(gdb.lookup_type('schema').pointer())
|
||||
name = str(schema['_raw']['_ks_name']) + '/' + str(schema['_raw']['_cf_name'])
|
||||
schema_version = str(schema['_raw']['_version'])
|
||||
|
||||
Reference in New Issue
Block a user