]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: push hash calculater deeper 2476/head
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Sep 2014 21:07:44 +0000 (14:07 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Sep 2014 21:07:44 +0000 (14:07 -0700)
commitd41c3e858c6f215792c67b8c2a42312cae07ece9
tree56caead49c8884ac6cf26f35cc7cd9817de42fa7
parent9f4c687288f051d388772b55800258be1b93f85d
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>
src/rgw/rgw_op.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h