mirror of
https://github.com/xcat2/confluent.git
synced 2025-02-25 23:02:20 +00:00
Fix rollback
First the data was not actually being staged in the rollback area. Secondly, there wasn't an assurance that the disk wouldn't have rollback committed...
This commit is contained in:
parent
9edb225bd3
commit
c925353f02
@ -509,11 +509,16 @@ def rollback_clear():
|
||||
_cfgstore = _oldcfgstore
|
||||
_oldtxcount = 0
|
||||
_oldcfgstore = None
|
||||
ConfigManager._bg_sync_to_file()
|
||||
|
||||
|
||||
def clear_configuration():
|
||||
global _cfgstore
|
||||
global _txcount
|
||||
global _oldcfgstore
|
||||
global _oldtxcount
|
||||
_oldcfgstore = _cfgstore
|
||||
_oldtxcount = _txcount
|
||||
_cfgstore = {}
|
||||
_txcount = 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user