]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osdmap: use FEATURE encoder macro
authorSage Weil <sage@newdream.net>
Mon, 20 Feb 2012 18:41:52 +0000 (10:41 -0800)
committerSage Weil <sage@newdream.net>
Mon, 20 Feb 2012 18:56:42 +0000 (10:56 -0800)
This generates encode/decode functions that pass feature bits into the
encoder, allowing us to encode old formats.

Signed-off-by: Sage Weil <sage@newdream.net>
src/osd/OSDMap.h

index 94476a6b036961974257040f48ce9b5884d172eb..aedb86df35b60b6759a93a660c10f5c8fd9f06fe 100644 (file)
@@ -680,8 +680,8 @@ public:
   void dump(Formatter *f) const;
   static void generate_test_instances(list<OSDMap*>& o);
 };
-WRITE_CLASS_ENCODER(OSDMap)
-WRITE_CLASS_ENCODER(OSDMap::Incremental)
+WRITE_CLASS_ENCODER_FEATURES(OSDMap)
+WRITE_CLASS_ENCODER_FEATURES(OSDMap::Incremental)
 
 typedef std::tr1::shared_ptr<const OSDMap> OSDMapRef;