]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: initialize bucket_id in bucket structure
authorYehuda Sadeh <yehuda@hq.newdream.net>
Sat, 25 Feb 2012 01:00:35 +0000 (17:00 -0800)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Sat, 25 Feb 2012 01:01:32 +0000 (17:01 -0800)
might make valgrind a little bit less noisy.

Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
src/rgw/rgw_common.h

index 733d2da028d1f7b4b0ae0b288e60fb6cbd8db089..492b1570beeafa30a581d5cf69957819ff7ff605 100644 (file)
@@ -419,7 +419,7 @@ struct rgw_bucket {
   std::string marker;
   uint64_t bucket_id;
 
-  rgw_bucket() {}
+  rgw_bucket() { bucket_id = 0; }
   rgw_bucket(const char *n) : name(n) {
     assert(*n == '.'); // only rgw private buckets should be initialized without pool
     pool = n;