s3: Fix concurrency bug when writing non-aligned data.
commit97739efe84e204ceeda75135db86315eeb2a45e8
authorNikolaus Rath <Nikolaus@rath.org>
Sat, 21 May 2022 17:39:48 +0000 (21 18:39 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 11 Jun 2022 15:58:12 +0000 (11 16:58 +0100)
tree5237b2dd0830806902c5990fea331af87b144bf6
parentf79e951c20510381d5cd83c203c670874a4978f4
s3: Fix concurrency bug when writing non-aligned data.

Currently, clients attempting to concurrently write two
(non-overlapping) buffers may end-up overwriting each others changes
if one of the buffers is non-aligned. This commit fixes the issue by
always locking objects for mutation.

It also removes an accidental double-fetching of the object during
read-modify-write.
plugins/S3/S3.py