Be explicit about impact of not writing caches

A follow-up to https://github.com/containers/storage/pull/2031 .

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač 2024-08-30 15:31:04 +02:00
parent 7915da61e3
commit cd7809d38b
1 changed files with 3 additions and 1 deletions

View File

@ -289,8 +289,10 @@ func (c *layersCache) load() error {
}
if r.ReadOnly {
// if the layer is coming from a read-only store, do not attempt
// If the layer is coming from a read-only store, do not attempt
// to write to it.
// Therefore,we wont find any matches in read-only-store layers,
// unless the read-only store layer comes prepopulated with cacheKey data.
continue
}