Skip to content

[5.4] limit size of sqlite manifest cache (#3178) #3204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2021

Conversation

tomerd
Copy link
Contributor

@tomerd tomerd commented Jan 19, 2021

bring #3178 into 5.4

motivation: sqlite manifest cache is now shared by default, controlling its max size is important

changes:
* introduce SQLiteManifestCache::Configuraiton allowing to set max database size
* when database is full, truncate it. this is not refined, but since this is a cache it should be fine.
* add tests including a couple of other tests for SQLiteManifestCache that were missing
* adjust to latest tsc
@tomerd
Copy link
Contributor Author

tomerd commented Jan 19, 2021

@swift-ci please smoke test

@tomerd tomerd added the 5.4 label Jan 19, 2021
@tomerd tomerd changed the title limit size of sqlite manifest cache (#3178) [5.4[ limit size of sqlite manifest cache (#3178) Jan 19, 2021
@tomerd tomerd changed the title [5.4[ limit size of sqlite manifest cache (#3178) [5.4] limit size of sqlite manifest cache (#3178) Jan 19, 2021
@tomerd
Copy link
Contributor Author

tomerd commented Jan 19, 2021

@swift-ci please test

@tomerd tomerd merged commit 9c96dd7 into swiftlang:release/5.4 Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants