-
Notifications
You must be signed in to change notification settings - Fork 430
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch statCache to internal.cache.Lru (#1514)
* statCache uses internal lru.Cache This change switches internal.cache.metadata.statCache to use gcsfuse-internal lru.Cache from jacobsa/*lrucache.Cache . This is a step towards unification of metadata cache with the readonly cache interface and design. Currently statCache takes in capacity (count) for initialization, but is now well-placed to switch to size (in Mbytes) . * minor cleanup * Remove CheckInvariants() from StatCache As new lru cache doesn't expose its checkInvariants method, StatCache also cannot implement a CheckInvariants() method. * rename invariantCache->testHelperCache This change is there because there this helper class no more does any CheckInvariants() call because it is not supported anymore on statCache.
- Loading branch information
1 parent
c6da129
commit 02b9f18
Showing
4 changed files
with
21 additions
and
52 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