]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: handle stripe transition when flushing final pending_data_bl 9407/head
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 5 May 2016 21:02:25 +0000 (14:02 -0700)
committerNathan Cutler <ncutler@suse.com>
Tue, 31 May 2016 15:02:01 +0000 (17:02 +0200)
commit4eea92b4a50e06d850c39009d122f8bbbd48c857
tree9878e146890d16ee27fb7418f525b2ccd12b9f7c
parenta33629106ec64acdaba45bf9db18d2402a926b8e
rgw: handle stripe transition when flushing final pending_data_bl

Fixes: http://tracker.ceph.com/issues/15745
When complete_writing_data() is called, if pending_data_bl is not empty
we still need to handle stripe transition correctly. If pending_data_bl
has more data that we can allow in current stripe, move to the next one.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit b7a7d41839558b1a8786a66e27d9d80e606f61c7)

Conflicts:
src/rgw/rgw_rados.cc (hammer write_data() takes rgw_obj reference as
4th argument, hammer throttle_data() takes rgw_obj as 2nd argument)
src/rgw/rgw_rados.cc