pkg/api: use a rwlock when accessing storage

The original patch used a mutex, however, the workload patterns are
likely to be read-heavy, so use a rwlock instead.
This commit is contained in:
Ramkumar Chinchani
2020-03-20 10:56:19 -07:00
parent 2fd87b6a86
commit dfe023225f
3 changed files with 6 additions and 5 deletions
-1
View File
@@ -148,7 +148,6 @@ func TestAPIs(t *testing.T) {
_, _, _, err = il.GetImageManifest("test", d.String())
So(err, ShouldNotBeNil)
})
})
err = il.DeleteBlobUpload("test", v)