From 28646a6cec727d7603c99e4295f38cbf65fae3b3 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Sun, 17 Feb 2019 09:30:56 -0600 Subject: [PATCH] msg/async/ProtocolV2: clean up preamble comments Signed-off-by: Sage Weil --- src/msg/async/ProtocolV2.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/msg/async/ProtocolV2.cc b/src/msg/async/ProtocolV2.cc index 8cc35cfc7f3..c823537500b 100644 --- a/src/msg/async/ProtocolV2.cc +++ b/src/msg/async/ProtocolV2.cc @@ -84,7 +84,8 @@ if(connection->interceptor) { \ #define INTERCEPT(S) #endif -static void alloc_aligned_buffer(bufferlist &data, unsigned len, unsigned off) { +static void alloc_aligned_buffer(bufferlist &data, unsigned len, unsigned off) +{ // create a buffer to read into that matches the data alignment unsigned alloc_len = 0; unsigned left = len; @@ -111,7 +112,7 @@ using segment_t = ProtocolV2::segment_t; // V2 preamble consists of one or more preamble blocks depending on // the number of segments a particular frame needs. Each block holds -// up to 2 segments and has its own CRC. +// up to MAX_NUM_SEGMENTS segments and has its own CRC. // // XXX: currently the multi-segment facility is NOT implemented. struct preamble_block_t { -- 2.39.5