]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/ceph_test_msgr: do not use Message::middle for holding transient data
authorKefu Chai <kchai@redhat.com>
Fri, 28 Oct 2016 17:54:58 +0000 (01:54 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 2 Nov 2016 11:23:24 +0000 (19:23 +0800)
commit3e1edde98610b11b94c59d23de979d6cd79dd8fe
treeb418396b28b0da9bc4aac05d4f25d8a25722ef8e
parent8f75bd64768b6984c537dd15b5d9159070b86d91
test/ceph_test_msgr: do not use Message::middle for holding transient data

Message::middle is used for holding encoded data, so we we can not stuff
it with payload and leave the "payload" field empty. this change
refactors the ceph_test_msgr by introducing a Payload class which
encodes all test data in it.

Fixes: http://tracker.ceph.com/issues/17728
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 56896a7ed20869ce91ade4c77c1d6cbab8d50de1)
Conflicts:
src/test/msgr/test_msgr.cc: do not use the new-style DENC()
framework for implementing the encoder of Payload class. DENC() was
introduced after jewel was released.
src/test/msgr/test_msgr.cc