forked from containerd/accelerated-container-image
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Userspace Convertor: Add Deduplication Version Support
Introduce a simple versioning system for the userspace convertor. This prevents inconsistencies with an existing DB if a new version is used Signed-off-by: Esteban <[email protected]>
- Loading branch information
1 parent
e68524b
commit eb62ab2
Showing
7 changed files
with
101 additions
and
45 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
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 |
---|---|---|
@@ -1,22 +1,24 @@ | ||
CREATE database conversioncache; | ||
USE conversioncache; | ||
CREATE TABLE `overlaybd_layers` ( | ||
`consistency_version` int(6) NOT NULL, | ||
`host` varchar(255) NOT NULL, | ||
`repo` varchar(255) NOT NULL, | ||
`chain_id` varchar(255) NOT NULL COMMENT 'chain-id of the normal image layer', | ||
`data_digest` varchar(255) NOT NULL COMMENT 'digest of overlaybd layer', | ||
`data_size` bigint(20) NOT NULL COMMENT 'size of overlaybd layer', | ||
PRIMARY KEY (`host`,`repo`,`chain_id`), | ||
KEY `index_registry_chainId` (`host`,`chain_id`) USING BTREE | ||
KEY `index_registry_chainId` (`consistency_version`,`host`,`chain_id`) USING BTREE | ||
) DEFAULT CHARSET=utf8; | ||
|
||
CREATE TABLE `overlaybd_manifests` ( | ||
`consistency_version` int(6) NOT NULL, | ||
`host` varchar(255) NOT NULL, | ||
`repo` varchar(255) NOT NULL, | ||
`src_digest` varchar(255) NOT NULL COMMENT 'digest of the normal image manifest', | ||
`out_digest` varchar(255) NOT NULL COMMENT 'digest of overlaybd manifest', | ||
`data_size` bigint(20) NOT NULL COMMENT 'size of overlaybd manifest', | ||
`mediatype` varchar(255) NOT NULL COMMENT 'mediatype of the converted image manifest', | ||
PRIMARY KEY (`host`,`repo`,`src_digest`, `mediatype`), | ||
KEY `index_registry_src_digest` (`host`,`src_digest`, `mediatype`) USING BTREE | ||
KEY `index_registry_src_digest` (`consistency_version`,`host`,`src_digest`, `mediatype`) USING BTREE | ||
) DEFAULT CHARSET=utf8; |
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
Oops, something went wrong.