]> 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>
Thu, 12 Sep 2013 01:54:39 +0000 (18:54 -0700)
commit626669afaa333d73707553a85f5c874e99e9cbd8
treed14cdb6df5402b9e27b83237e3e12bd35b26cc47
parent0499948aad64c6c66668b43963403fb0cb1a2737
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>
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h