]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls_rgw: remove the write_bucket_dir function.
authorGreg Farnum <gregory.farnum@dreamhost.com>
Wed, 12 Oct 2011 00:02:20 +0000 (17:02 -0700)
committerGreg Farnum <gregory.farnum@dreamhost.com>
Thu, 13 Oct 2011 16:35:07 +0000 (09:35 -0700)
It's no longer called anywhere. Hurray, we don't do our own
read-modify-write cycle any more (and can exploit the power of
btrees later)!

Signed-off-by: Greg Farnum <gregory.farnum@dreamhost.com>
src/cls_rgw.cc

index e2b612886f74a83719445585e482abc2c84c6693..f1252a31188aa9e28c583be43db26bff76179dc0 100644 (file)
@@ -67,16 +67,6 @@ static int read_bucket_dir(cls_method_context_t hctx, struct rgw_bucket_dir& dir
   return 0;
 }
 
-static int write_bucket_dir(cls_method_context_t hctx, struct rgw_bucket_dir& dir)
-{
-  bufferlist bl;
-
-  ::encode(dir, bl);
-
-  int rc = cls_cxx_write_full(hctx, &bl);
-  return rc;
-}
-
 int rgw_bucket_list(cls_method_context_t hctx, bufferlist *in, bufferlist *out)
 {
   bufferlist bl;