diff options
author | Kefu Chai <kchai@redhat.com> | 2021-03-10 09:08:36 +0100 |
---|---|---|
committer | Kefu Chai <kchai@redhat.com> | 2021-03-10 15:35:25 +0100 |
commit | 5deb55aec0590ba0c50ea11bc44ef539716bff06 (patch) | |
tree | 0afe2ed2994d8c2ea420b3cf9c00d9cd9b7377ae /src/msg/async/ProtocolV2.cc | |
parent | test: use s/init_le*/ceph_le*/ (diff) | |
download | ceph-5deb55aec0590ba0c50ea11bc44ef539716bff06.tar.xz ceph-5deb55aec0590ba0c50ea11bc44ef539716bff06.zip |
auth,msg,common: test: use s/init_le*/ceph_le*/
for better readability.
Signed-off-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/msg/async/ProtocolV2.cc')
-rw-r--r-- | src/msg/async/ProtocolV2.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/msg/async/ProtocolV2.cc b/src/msg/async/ProtocolV2.cc index 855006447f7..2419aabe2ff 100644 --- a/src/msg/async/ProtocolV2.cc +++ b/src/msg/async/ProtocolV2.cc @@ -527,8 +527,8 @@ ssize_t ProtocolV2::write_message(Message *m, bool more) { ceph_msg_header2 header2{header.seq, header.tid, header.type, header.priority, header.version, - init_le32(0), header.data_off, - init_le64(ack_seq), + ceph_le32(0), header.data_off, + ceph_le64(ack_seq), footer.flags, header.compat_version, header.reserved}; @@ -1359,16 +1359,16 @@ CtPtr ProtocolV2::handle_message() { current_header.type, current_header.priority, current_header.version, - init_le32(msg_frame.front_len()), - init_le32(msg_frame.middle_len()), - init_le32(msg_frame.data_len()), + ceph_le32(msg_frame.front_len()), + ceph_le32(msg_frame.middle_len()), + ceph_le32(msg_frame.data_len()), current_header.data_off, peer_name, current_header.compat_version, current_header.reserved, - init_le32(0)}; - ceph_msg_footer footer{init_le32(0), init_le32(0), - init_le32(0), init_le64(0), current_header.flags}; + ceph_le32(0)}; + ceph_msg_footer footer{ceph_le32(0), ceph_le32(0), + ceph_le32(0), ceph_le64(0), current_header.flags}; Message *message = decode_message(cct, 0, header, footer, msg_frame.front(), |