]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: push hash calculater deeper
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Sep 2014 21:07:44 +0000 (14:07 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Tue, 23 Sep 2014 20:55:49 +0000 (13:55 -0700)
commitdab7a4f6ad054b53cedca76ee329a6395918b1ab
treec4254a37c77a35a1579139d87043c1bb20e82707
parentbd0a91343ce70d71acced753688a502b7e8b552e
rgw: push hash calculater deeper

This might have been the culprit for #9307. Before we were calculating
the hash after the call to processor->handle_data(), however, that
method might have spliced the bufferlist, so we can't be sure that the
pointer that we were holding originally is still invalid. Instead, push
the hash calculation down. Added a new explicit complete_hash() call to
the processor, since when we're at complete() it's too late (we need to
have the hash at that point already).

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

Conflicts:
src/rgw/rgw_rados.h
src/rgw/rgw_op.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h