-
Notifications
You must be signed in to change notification settings - Fork 175
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: cold GET vs upgrading rlock to wlock
* remove all `sync.Cond` related state and logic * reduce low-level `lock-info` to just rc and bool (excl) * poll for up to 'host-busy' timeout * return 'err-busy' if unsuccessful Signed-off-by: Alex Aizman <alex.aizman@gmail.com>
- Loading branch information
1 parent
e469684
commit 9857e78
Showing
4 changed files
with
79 additions
and
115 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# | ||
# NOTE: internal use (local playground only) | ||
# | ||
|
||
aaa=($(find /tmp/ais -type f | grep %ob)) | ||
echo "Listed: ${#aaa[@]} objects" | ||
|
||
while true | ||
do | ||
sleep 1 | ||
bbb=${aaa[$RANDOM % ${#aaa[@]}]} | ||
rm $bbb 2>/dev/null && echo "Deleted: $bbb" | ||
done |
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