]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librgw: temporary fix RGWWrite
authorMatt Benjamin <mbenjamin@redhat.com>
Sun, 17 Jan 2016 22:30:06 +0000 (17:30 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:08:12 +0000 (12:08 -0500)
commite43eb4d63495471960ae6533e61d64c997b56a36
tree5df9afed15698b2e775b7b9ffdc9c89911d39c53
parent8aa4378106a3c7e22c89223b29479ca20dbebc62
librgw: temporary fix RGWWrite

The current behavior of put_data_and_throttle leads to data
curruption, because the supplied buffer is apparently still being
written when the call returns--regardless of the value of
need_to_wait.

For now, do a buffer::copy of the supplied buffer, rather than the
original buffer::static, since that will at least be released
when no longer needed.

Probably this improves apparent rgw_write performance, but is not
what was originally intended.

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