forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[config] Implement a process level lock (sonic-net#857)
Changes: 1.) Implement a class, which uses hsetnx for lock. 2.) lock is expired within timeout period or will be released by owner. 3.) After -y prompt, lock is reacquired, because timer could have expired, before user enters yes. Signed-off-by: Praveen Chaudhary pchaudhary@linkedin.com
- Loading branch information
Praveen Chaudhary
authored
Apr 14, 2020
1 parent
cff92dd
commit 3f651dc
Showing
1 changed file
with
107 additions
and
0 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