2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-15 12:17:47 +00:00

Clear transaction count on config clear

A clear configuration should have 0 transactions.
This commit is contained in:
Jarrod Johnson 2018-06-22 14:46:52 -04:00
parent c6a0aeca3b
commit 5588712320

View File

@ -474,7 +474,7 @@ def stop_leading():
def clear_configuration():
global _cfgstore
_cfgstore = {}
todelete = _config_areas + ('globals', 'collective')
todelete = _config_areas + ('globals', 'collective', 'transactioncount')
for cfg in todelete:
try:
os.remove(os.path.join(ConfigManager._cfgdir, cfg))