From: Greg Farnum Date: Sat, 7 Dec 2013 02:19:13 +0000 (-0800) Subject: encoding: fix [encode|decode]_array_nohead X-Git-Tag: v0.75~125^2~17 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3dcbf460d1d1f08cb6d7a7e787cb8af6f23b943e;p=ceph.git 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 --- 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