summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rgw/rgw_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rgw/rgw_common.h b/src/rgw/rgw_common.h
index 1e46c5fcaf5..22f69f45ac7 100644
--- a/src/rgw/rgw_common.h
+++ b/src/rgw/rgw_common.h
@@ -621,6 +621,8 @@ struct RGWObjEnt {
string etag;
string content_type;
+ RGWObjEnt() : size(0), mtime(0) {}
+
void clear() { // not clearing etag
name="";
size = 0;