]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw_file: refuse partial, out-of-order writes 10284/head
authorMatt Benjamin <mbenjamin@redhat.com>
Wed, 13 Jul 2016 14:16:59 +0000 (10:16 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 13 Jul 2016 14:40:03 +0000 (10:40 -0400)
commit12aded803e24539266ce9698c678088e2158a82a
tree4dc6de33e2693ad08dc76eb5d2c63309b1802450
parent1af398f48b9c3abfc6001789dfd50726b74af34c
rgw_file: refuse partial, out-of-order writes

A single file object may be opened only once per gateway
instance, and writes to that object must be complete, and in-order.
Enforce this.

If an invalid write is seen, deletes the current write transaction.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc
src/rgw/rgw_file.h