ls.push_back(new rgw_bi_log_entry);
ls.back()->id = "midf";
ls.back()->object = "obj";
- ls.back()->timestamp = ceph::real_clock::from_ceph_timespec({{2}, {3}});
+ ls.back()->timestamp = ceph::real_clock::from_ceph_timespec({init_le32(2), init_le32(3)});
ls.back()->index_ver = 4323;
ls.back()->tag = "tagasdfds";
ls.back()->op = CLS_RGW_OP_DEL;
{
ls.push_back(new cls_rgw_reshard_entry);
ls.push_back(new cls_rgw_reshard_entry);
- ls.back()->time = ceph::real_clock::from_ceph_timespec({{2}, {3}});
+ ls.back()->time = ceph::real_clock::from_ceph_timespec({init_le32(2), init_le32(3)});
ls.back()->tenant = "tenant";
ls.back()->bucket_name = "bucket1""";
ls.back()->bucket_id = "bucket_id";
ls.push_back(new cls_rgw_gc_obj_info);
ls.push_back(new cls_rgw_gc_obj_info);
ls.back()->tag = "footag";
- ceph_timespec ts{21, 32};
+ ceph_timespec ts{init_le32(21), init_le32(32)};
ls.back()->time = ceph::real_clock::from_ceph_timespec(ts);
}
};
RGWBucketEntryPoint *bp = new RGWBucketEntryPoint();
init_bucket(&bp->bucket, "tenant", "bucket", "pool", ".index.pool", "marker", "10");
bp->owner = "owner";
- bp->creation_time = ceph::real_clock::from_ceph_timespec({{2}, {3}});
+ bp->creation_time = ceph::real_clock::from_ceph_timespec({init_le32(2), init_le32(3)});
o.push_back(bp);
o.push_back(new RGWBucketEntryPoint);
static constexpr uint32_t bus = 123456;
static constexpr time_t btt = bs;
static constexpr struct timespec bts = { bs, bns };
-static constexpr struct ceph_timespec bcts = { bs, bns };
+static struct ceph_timespec bcts = { init_le32(bs), init_le32(bns) };
static constexpr struct timeval btv = { bs, bus };
static constexpr double bd = bs + ((double)bns / 1000000000.);