]>
Commit | Line | Data |
---|---|---|
f67539c2 TL |
1 | // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -* |
2 | // vim: ts=8 sw=2 smarttab | |
3 | ||
4 | #include "include/rados/librados.hpp" | |
5 | ||
6 | constexpr int to_create = 10'000'000; | |
7 | ||
8 | int main() { | |
9 | for (int i = 0; i < to_create; ++i) { | |
10 | librados::ObjectReadOperation op; | |
11 | bufferlist bl; | |
12 | std::uint64_t sz; | |
13 | struct timespec tm; | |
14 | std::map<std::string, ceph::buffer::list> xattrs; | |
15 | std::map<std::string, ceph::buffer::list> omap; | |
16 | bool more; | |
17 | op.read(0, 0, &bl, nullptr); | |
18 | op.stat2(&sz, &tm, nullptr); | |
19 | op.getxattrs(&xattrs, nullptr); | |
20 | op.omap_get_vals2({}, 1000, &omap, &more, nullptr); | |
21 | } | |
22 | } |