S3: Fix deadlock in list_object_versions after multipart upload (#5742)

This commit is contained in:
Jens Widell 2022-12-09 23:09:05 +01:00 committed by GitHub
parent 4ac9e91dfd
commit 9be9edf8fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -161,11 +161,10 @@ class FakeKey(BaseModel, ManagedState):
@property
def value(self):
self.lock.acquire()
with self.lock:
self._value_buffer.seek(0)
r = self._value_buffer.read()
r = copy.copy(r)
self.lock.release()
return r
@property