Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent from DB lock waits on concurrent use of .bvfs_update
Until this change, the HasCache column in the Job table was either 0 or 1, where 0 represents the state bvfs cache does not exist and 1 represents bvfs cache exists. This change introduces -1 representing the state bvfs cache update in progress. Before starting the bvfs cache update, it is now checked if HasCache is -1, in that case the .bvfs_update jobid=n command will return an ERROR: BVFS reported a problem for 107. This change also prevents from duplicate key violations that could occur before on the PathHierarchy table.
- Loading branch information
Showing
1 changed file
with
31 additions
and
5 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