]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: put_obj uses write_full
authorYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 10 Jun 2010 23:01:34 +0000 (16:01 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Thu, 10 Jun 2010 23:01:34 +0000 (16:01 -0700)
src/rgw/rgw_rados.cc

index 3c42260e3fda5570a069d868dd8ced4d83a50483..7cd44e4a0ec55e67cc55597db719be2b4c7d321d 100644 (file)
@@ -267,7 +267,7 @@ int RGWRados::put_obj(std::string& id, std::string& bucket, std::string& oid, co
 
   bufferlist bl;
   bl.append(data, size);
-  r = rados->write(pool, oid, 0, bl, size);
+  r = rados->write_full(pool, oid, bl);
   if (r < 0)
     return r;