mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 22:43:42 +08:00
return read-only db if we don't need to reload
This commit is contained in:
@@ -356,10 +356,11 @@ def get_db_state(disposition=DISPOSITION_RO):
|
||||
|
||||
else:
|
||||
log.debug("cache consistency: Using cached blockstack state")
|
||||
ret = blockstack_db
|
||||
|
||||
reload_lock.release()
|
||||
|
||||
return blockstack_db
|
||||
return ret
|
||||
|
||||
|
||||
def invalidate_db_state():
|
||||
|
||||
Reference in New Issue
Block a user