moby/layer
Sebastiaan van Stijn 203fcd6997
layers: remove layerStore.getWithoutLock()
This function was abstracting things a bit too much; the layerStore had a
exported `.Get()` which called `.getWithoutLock()`, but also a non-exported
`.get()`, which also called `.getWithoutLock()`.

While it's common to have a non-exported variant (without locking), the naming
of `.get()` could easily be confused for that variant (which it wasn't).

All locations where `.get()` was called were already handling locks for
`releaseLayer()`, so moving the actual locking inline for `.get()` makes it
more visible where locking happens.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-02-28 19:57:37 +01:00
..
empty.go layer: remove unused error return from .Size() and .DiffSize() 2022-01-24 18:45:47 +01:00
empty_test.go layer: remove unused error return from .Size() and .DiffSize() 2022-01-24 18:45:47 +01:00
filestore.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
filestore_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
filestore_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
filestore_windows.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
layer.go layer: remove unused error return from .Size() and .DiffSize() 2022-01-24 18:45:47 +01:00
layer_store.go layers: remove layerStore.getWithoutLock() 2022-02-28 19:57:37 +01:00
layer_store_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
layer_test.go Merge pull request #43182 from thaJeztah/layer_remove_unused_error 2022-02-17 20:51:45 +01:00
layer_unix.go Update to Go 1.17.0, and gofmt with Go 1.17 2021-08-24 23:33:27 +02:00
layer_unix_test.go layer: remove unused error return from .Size() and .DiffSize() 2022-01-24 18:45:47 +01:00
layer_windows.go Fix a typos in layer_windows.go 2018-11-18 18:45:06 +08:00
migration.go layers: remove layerStore.getWithoutLock() 2022-02-28 19:57:37 +01:00
migration_test.go layer: remove OS from layerstore 2022-01-25 15:23:23 +01:00
mount_test.go refactor: move from io/ioutil to io and os package 2021-08-27 14:56:57 +08:00
mounted_layer.go Remove unused functions, variables, fields 2019-09-18 12:57:12 +02:00
ro_layer.go Merge pull request #43182 from thaJeztah/layer_remove_unused_error 2022-02-17 20:51:45 +01:00
ro_layer_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00