]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
MClientRequest: Releases should have a constructor
authorGreg Farnum <gregf@hq.newdream.net>
Thu, 17 Sep 2009 18:16:33 +0000 (11:16 -0700)
committerGreg Farnum <gregf@hq.newdream.net>
Fri, 18 Sep 2009 01:29:24 +0000 (18:29 -0700)
src/messages/MClientRequest.h

index c7b56277144b8cc16bceef9b5f8901c9aa6c7958..cdc267748a87238d148af40c3bea272babdad6ab 100644 (file)
@@ -54,6 +54,11 @@ public:
     mutable ceph_mds_request_release item;
     nstring dname;
 
+    Release() : item(), dname() {}
+
+    Release(ceph_mds_request_release rel, nstring name) :
+      item(rel), dname(name) {}
+
     void encode(bufferlist& bl) const {
       item.dname_len = dname.length();
       ::encode(item, bl);