]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/ceph_test_msgr: do not use Message::middle for holding transient data 11680/head
authorKefu Chai <kchai@redhat.com>
Fri, 28 Oct 2016 17:54:58 +0000 (01:54 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 28 Oct 2016 18:06:37 +0000 (02:06 +0800)
commit56896a7ed20869ce91ade4c77c1d6cbab8d50de1
tree075efe7aeb16d1dd9272119fa351f19ab0935d9d
parent44bd8db678bea4f9dcb35fea9824294c8f3081cf
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>
src/test/msgr/test_msgr.cc