mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 06:55:45 +00:00
Fixed flush_db_tarantool, not it removes also from blocks spaces
This commit is contained in:
parent
717d5af8be
commit
a94946ef66
@ -39,7 +39,7 @@ def flush_tarantool_db(connection, dbname):
|
|||||||
for _id in _all_data:
|
for _id in _all_data:
|
||||||
if "assets" == s:
|
if "assets" == s:
|
||||||
connection.run(connection.space(s).delete(_id[1]), only_data=False)
|
connection.run(connection.space(s).delete(_id[1]), only_data=False)
|
||||||
elif "abci_chains" == s:
|
elif s in ["blocks", "abci_chains"]:
|
||||||
connection.run(connection.space(s).delete(_id[2], only_data=False))
|
connection.run(connection.space(s).delete(_id[2], only_data=False))
|
||||||
else:
|
else:
|
||||||
connection.run(connection.space(s).delete(_id[0], only_data=False))
|
connection.run(connection.space(s).delete(_id[0], only_data=False))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user