]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: don't recalculate etags for slo/dlo 27470/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 9 Apr 2019 19:26:08 +0000 (15:26 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 9 Apr 2019 19:26:10 +0000 (15:26 -0400)
commit4b849a49bd6c6b66f8185739ae21f0e6aa526a1a
treecda0e5a4d752d65f92d284e2f996e18215fd37d3
parent2f3a22e23cd3989d5f6481b9540c568f14879503
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>
src/rgw/rgw_op.cc