summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYehuda Sadeh <yehuda@hq.newdream.net>2012-02-24 17:00:35 -0800
committerYehuda Sadeh <yehuda@hq.newdream.net>2012-02-24 17:01:32 -0800
commit266902a993c8548cc3c32f41be6450ecd78c475b (patch)
tree69c3cdfcd56131ec16f69a6856727afb426c87cf
parentf8f6e4d850ccb1fb4d20641c0e1e7b59c0d93fae (diff)
downloadceph-266902a993c8548cc3c32f41be6450ecd78c475b.tar.gz
rgw: initialize bucket_id in bucket structure
might make valgrind a little bit less noisy. Signed-off-by: Yehuda Sadeh <yehuda@hq.newdream.net>
-rw-r--r--src/rgw/rgw_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h
index 733d2da028d..492b1570bee 100644
--- a/src/rgw/rgw_common.h
+++ b/src/rgw/rgw_common.h
@@ -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;