]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph_test_cls_hello: set RETURNVEC on the expected EINVAL request 33708/head
authorSage Weil <sage@redhat.com>
Tue, 3 Mar 2020 13:11:41 +0000 (07:11 -0600)
committerSage Weil <sage@redhat.com>
Wed, 4 Mar 2020 15:48:38 +0000 (09:48 -0600)
commit7dcb492bd3f50725714e4181d915913011f178f2
tree560b1d1949471bd337ec83692c69333069729964
parentfd6fe6a41320529cf02f8a06d27d8769974a679d
ceph_test_cls_hello: set RETURNVEC on the expected EINVAL request

We are sending a request that returns an error *and* a data payload.  In order
to reliably get the payload, we need to set the RETURNVEC flag so that it is
recorded in the pg log.  Otherwise, we might get unlucky and resend the request
and end up in the dup handler and get the error code but no payload.

Fixes: https://tracker.ceph.com/issues/44385
Signed-off-by: Sage Weil <sage@redhat.com>
src/test/cls_hello/test_cls_hello.cc