-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix censusDB data race and extend census export/import endpoints
We added a new global lock for censusDB. Before, the lock only affected the individual trees, however as censusDB is able to load the same tree twice (in case of paralel calls to the API census endpoints), a write operation could be done racy to the same tree database. Now Censusdb requires to call Unload() after Load() to release the lock. In addition, extend the import/export methods to allow IPFS transfers. Signed-off-by: p4u <[email protected]>
- Loading branch information
Showing
10 changed files
with
246 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.