Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check local lock client first on slaves
By adding explicit methods for re-entry on the Locks.Client interface we can use the local lock client for checking if the lock is held locally, and achieve the same behaviour of locking on the master first, and not talking to the master on re-entry, while lowering the overhead of lock maintenance on the slave. The lock maps in the SlaveLockClient completely disappear, and instead the state of the local lock client is used, since that already contains the same state. Not only does this lower the memory footprint (for slaves that execute a write load), it also simplifies the code of the SlaveLockClient.
- Loading branch information
Showing
9 changed files
with
249 additions
and
69 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
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
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
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.