From 3dcbf460d1d1f08cb6d7a7e787cb8af6f23b943e Mon Sep 17 00:00:00 2001 From: Greg Farnum Date: Fri, 6 Dec 2013 18:19:13 -0800 Subject: [PATCH] encoding: fix [encode|decode]_array_nohead We want to actually encode each element and keep it, rather than writing each one at the position after the array end! Signed-off-by: Greg Farnum --- src/include/encoding.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/include/encoding.h b/src/include/encoding.h index fedc8b312997..cafebbf5de9a 100644 --- a/src/include/encoding.h +++ b/src/include/encoding.h @@ -198,13 +198,13 @@ template inline void encode_array_nohead(const A a[], int n, bufferlist &bl) { for (int i=0; i inline void decode_array_nohead(A a[], int n, bufferlist::iterator &p) { for (int i=0; i