-
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.
Tweak gc to keep up to --storage-keep-hint-slots=5 newest slots with …
…unique hints, even if those slots are old (#34) ## PRs in the Stack - ➡ #34 (The stack is managed by [git-grok](https://github.com/dimikot/git-grok).)
- Loading branch information
Showing
4 changed files
with
110 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash | ||
source ./common.sh | ||
|
||
ci-storage \ | ||
--slot-id=myslot-a1 \ | ||
--hint="a" \ | ||
store | ||
ci-storage \ | ||
--slot-id=myslot-a2 \ | ||
--hint="a" \ | ||
store | ||
|
||
ci-storage \ | ||
--slot-id=myslot-b1 \ | ||
--hint="b" \ | ||
store | ||
ci-storage \ | ||
--slot-id=myslot-b2 \ | ||
--hint="b" \ | ||
store | ||
|
||
ci-storage \ | ||
--slot-id=myslot-c1 \ | ||
--hint="c" \ | ||
store | ||
ci-storage \ | ||
--slot-id=myslot-c2 \ | ||
--hint="c" \ | ||
store | ||
|
||
ci-storage \ | ||
--slot-id=myslot-d1 \ | ||
--hint="d" \ | ||
store | ||
ci-storage \ | ||
--slot-id=myslot-d2 \ | ||
--hint="d" \ | ||
store | ||
|
||
ci-storage \ | ||
--slot-id=myslot-x \ | ||
--hint="x" \ | ||
--storage-keep-hint-slots=2 \ | ||
store | ||
|
||
grep -qF 'myslot-x, the newest slot overall' "$OUT" | ||
grep -qF 'myslot-d2, the newest slot with this hint (hint=d' "$OUT" | ||
grep -qF 'myslot-c2, the newest slot with this hint (hint=c' "$OUT" | ||
grep -qF 'myslot-b2, new enough' "$OUT" | ||
grep -qF 'myslot-a2, new enough' "$OUT" | ||
|