]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msg/async/ProtocolV2: clean up preamble comments
authorSage Weil <sage@redhat.com>
Sun, 17 Feb 2019 15:30:56 +0000 (09:30 -0600)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Thu, 21 Feb 2019 22:31:01 +0000 (23:31 +0100)
Signed-off-by: Sage Weil <sage@redhat.com>
src/msg/async/ProtocolV2.cc

index 8cc35cfc7f35a2e22452528d164a23fcf6a2df30..c823537500b7b89e29366cb1eea2b55effd8bc64 100644 (file)
@@ -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 {