]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: drain pending requests before completing write
authorYehuda Sadeh <yehuda@inktank.com>
Tue, 10 Sep 2013 19:18:55 +0000 (12:18 -0700)
committerYehuda Sadeh <yehuda@inktank.com>
Wed, 18 Sep 2013 18:40:56 +0000 (11:40 -0700)
commita855aba9d18936e9a060119e041518790cd4b831
tree9e0f9132ea3b34de47f7b51ae34465966c211a0a
parent670db7e80ddc9c26c43a4f66907a5996ce207c4d
rgw: drain pending requests before completing write

Fixes: #6268
When doing aio write of objects (either regular or multipart parts) we
need to drain pending aio requests. Otherwise if gateway goes down then
object might end up corrupted.

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
(cherry picked from commit 626669afaa333d73707553a85f5c874e99e9cbd8)
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h