]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't recalculate etags for slo/dlo 27561/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 9 Apr 2019 19:26:08 +0000 (15:26 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 12 Apr 2019 16:27:39 +0000 (12:27 -0400)
commit64abb12ed40573f622bc444905c8d4788dfcd021
tree29fec4016c92ca96e590f8fb8ffa71887ba1f6ff
parentdbbf060a318dab3a2518cd2f336962b827c2e043
rgw: don't recalculate etags for slo/dlo

for slo, we've already calculated this as 'lo_etag' in get_params()
for dlo, the local 'etag' already contains the hash of an empty string

the calls to complete_etag() were calling hash.Final() a second time on
the same hash without a hash.Restart() in between. this apparently
worked fine with NSS, but with OpenSSL the second call to Final()
returns a different value

Fixes: https://tracker.ceph.com/issues/39160
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 4b849a49bd6c6b66f8185739ae21f0e6aa526a1a)
src/rgw/rgw_op.cc