MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / GetTablesStatus

Function GetTablesStatus

tools/fedb_migrate.py:138–155  ·  view source on GitHub ↗
(output)

Source from the content-addressed store, hash-verified

136 return partition_on_tablet
137
138def GetTablesStatus(output):
139 # tid pid offset mode state enable_expire ttl ttl_offset memused compress_type skiplist_height
140 lines = output.split("\n")
141 content_is_started = False
142 partition_on_tablet = {}
143 for line in lines:
144 if line.startswith("---------"):
145 content_is_started = True
146 continue
147 if not content_is_started:
148 continue
149 partition = line.split()
150 if len(partition) < 4:
151 continue
152
153 key = "{}_{}".format(partition[0], partition[1])
154 partition_on_tablet[key] = partition
155 return partition_on_tablet
156
157def Analysis():
158 # show table

Callers 1

RecoverDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected