return read-only db if we don't need to reload

This commit is contained in:
Jude Nelson
2016-09-22 20:49:31 -04:00
parent b0ffaaf3c2
commit e8fb063b6a

View File

@@ -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():