containerd/metadata
Derek McGowan b9cf0d75a9
Fix panic in metadata content writer on copy error
The `createAndCopy` function is only called when `nw.w` is nil
in order to create a new writer and prepare it. The current code
is attempting to close `nw.w` when there is a copy error. The
correct behavior would be to close the new writer and not touch `nw.w`.

Signed-off-by: Derek McGowan <derek@mcg.dev>
2021-09-23 10:29:52 -07:00
..
boltutil Add more bolt utils 2021-04-11 19:32:46 -07:00
adaptors.go content: support filters on local.store#Walk() 2020-11-11 11:17:48 -08:00
bolt.go boltdb/bolt --> go.etcd.io/bbolt 2018-09-12 15:23:57 -07:00
buckets_test.go Add shared content label to namespaces 2021-07-28 18:49:32 +00:00
buckets.go Add shared content label to namespaces 2021-07-28 18:49:32 +00:00
containers_test.go Replace errors.Cause() with errors.Is() 2020-05-08 14:36:45 +02:00
containers.go fix invalid validation error checking 2021-06-03 15:58:11 -05:00
content_test.go Update metadata interfaces for containers and leases 2019-09-23 15:27:39 -07:00
content.go Fix panic in metadata content writer on copy error 2021-09-23 10:29:52 -07:00
db_test.go Support target snapshot references on prepare 2019-11-25 10:07:25 -08:00
db.go fix-up typo 2019-09-26 13:02:03 +08:00
gc_test.go Add flat GC label for leases 2019-07-18 11:16:46 -07:00
gc.go Add flat GC label for leases 2019-07-18 11:16:46 -07:00
images_test.go Replace errors.Cause() with errors.Is() 2020-05-08 14:36:45 +02:00
images.go Add shared content label to namespaces 2021-07-28 18:49:32 +00:00
leases_test.go fix make test failure of missing sha256 package 2020-09-10 18:50:49 +09:00
leases.go metadata: modify NewLeaseManager to return leases.Manager 2021-05-07 21:26:17 +08:00
migrations.go Adds a no-op migration for metadata v3 2018-09-12 15:33:42 -07:00
namespaces_test.go metadata: improve deleting a non-empty namespace's error message 2021-04-15 15:49:44 -07:00
namespaces.go metadata: improve deleting a non-empty namespace's error message 2021-04-15 15:49:44 -07:00
snapshot_test.go Move label filter to snapshots package 2019-12-25 12:13:08 +09:00
snapshot.go Add Cleanup to snapshot API 2020-01-07 14:59:20 -08:00