]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
msg/async: perform V2 frame dispatch in dedicated method.
authorRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 13 Feb 2019 18:13:43 +0000 (19:13 +0100)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 21 Feb 2019 20:58:35 +0000 (21:58 +0100)
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
src/msg/async/ProtocolV2.cc
src/msg/async/ProtocolV2.h

index 61a7d34692377f0bb784d29a93042e26bd973cee..ade751432da45b942b378112270b8df9861d3811 100644 (file)
@@ -1464,6 +1464,10 @@ CtPtr ProtocolV2::handle_read_frame_preamble_main(char *buffer, int r) {
     }
   }
 
+  return handle_read_frame_dispatch();
+}
+
+CtPtr ProtocolV2::handle_read_frame_dispatch() {
   ldout(cct, 10) << __func__ << " next payload_len=" << next_payload_len
                  << " tag=" << static_cast<uint32_t>(next_tag) << dendl;
 
index 278c4da1a9cc658c5e5c05c9a65a6c13c1260229..1514e199b60f29375ed3c7149fdf7781d341e200 100644 (file)
@@ -161,6 +161,7 @@ private:
 
   Ct<ProtocolV2> *read_frame();
   Ct<ProtocolV2> *handle_read_frame_preamble_main(char *buffer, int r);
+  Ct<ProtocolV2> *handle_read_frame_dispatch();
   Ct<ProtocolV2> *handle_frame_payload(char *buffer, int r);
 
   Ct<ProtocolV2> *ready();