]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: use encode function for new Incremental
authorSage Weil <sage@newdream.net>
Mon, 20 Feb 2012 19:02:49 +0000 (11:02 -0800)
committerSage Weil <sage@newdream.net>
Mon, 20 Feb 2012 19:02:49 +0000 (11:02 -0800)
When we encode an Incremental, use the encode wrapper function, so that
we can capture the encoded struct when building with ENCODE_DUMP.  Set
all features (the default when encode() is called directly).

Signed-off-by: Sage Weil <sage@newdream.net>
src/mon/OSDMonitor.cc

index 139d5f943b922a80614d94db9e022acc7d4d4968..f50b0976ad8c45fd05bf81a6e014026990e9c53d 100644 (file)
@@ -307,7 +307,7 @@ void OSDMonitor::encode_pending(bufferlist &bl)
 
   // encode
   assert(paxos->get_version() + 1 == pending_inc.epoch);
-  pending_inc.encode(bl);
+  ::encode(pending_inc, bl, -1);
 }