]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: add create to ObjectOperation
authorSage Weil <sage.weil@dreamhost.com>
Tue, 29 Mar 2011 18:23:45 +0000 (11:23 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Tue, 29 Mar 2011 19:11:11 +0000 (12:11 -0700)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/include/rados/librados.hpp
src/librados.cc

index a44a68a2bb61f670b4892be90d045fdbc01f7447..692d492e4f7a35d28fd3cd7d251f173090cd58cd 100644 (file)
@@ -101,6 +101,7 @@ namespace librados
     ObjectOperation();
     ~ObjectOperation();
 
+    void create(bool exclusive);
     void write(uint64_t off, const bufferlist& bl);
     void write_full(const bufferlist& bl);
     void append(const bufferlist& bl);
index 2fd093facc5b196c470af5decdbdecd54f8f49fb..87783671253805586f0a2497c12240aa98f388f6 100644 (file)
@@ -133,6 +133,12 @@ struct librados::IoCtxImpl {
 };
 
 
+void librados::ObjectOperation::create(bool exclusive)
+{
+  ::ObjectOperation *o = (::ObjectOperation *)impl;
+  o->create(exclusive);
+}
+
 void librados::ObjectOperation::write(uint64_t off, const bufferlist& bl)
 {
   ::ObjectOperation *o = (::ObjectOperation *)impl;