-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cache manager: fix cache manager failure in none daemon mode
Previously, both AddSnapshot and DelSnapshot will not be executed in the none daemon mode. The fundamental reason is that the incoming parameter is the imageID obtained from the daemon. Now we adjust the function call path to bypass the daemon and get the imageID directly from snapshot labels. For AddSnapshot, we separate it from prepareRemoteSnapshot, run it separately, and parse the imageID directly from the snapshot label. For DelSnapshot, we advance it from Cleanup to Remove. Signed-off-by: zhaoshang <[email protected]>
- Loading branch information
1 parent
92d4e57
commit 60cc64f
Showing
2 changed files
with
31 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