]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't allow multiple writers to same multiobject part
authorYehuda Sadeh <yehuda@inktank.com>
Sat, 3 May 2014 00:06:05 +0000 (17:06 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Sat, 3 May 2014 00:06:05 +0000 (17:06 -0700)
commit94e6c0858fb07c0edb8fc4d08e02542d22823ed2
treeb995e83c6e5dcfeb62cf02b538e8a2984b0348bc
parentc049967af829497f8a62e0cbbd6031f85ead8a59
rgw: don't allow multiple writers to same multiobject part

Fixes: #8269
A client might need to retry a multipart part write. The original thread
might race with the new one, trying to clean up after it, clobbering the
part's data.
The fix is to detect whether an original part already existed, and if so
use a different part name for it.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h