From 266902a993c8548cc3c32f41be6450ecd78c475b Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Fri, 24 Feb 2012 17:00:35 -0800 Subject: [PATCH] rgw: initialize bucket_id in bucket structure might make valgrind a little bit less noisy. Signed-off-by: Yehuda Sadeh --- src/rgw/rgw_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h index 733d2da028d1f..492b1570beeaf 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; -- 2.39.5