mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-21 00:21:37 +01:00
50 lines
1.6 KiB
Diff
50 lines
1.6 KiB
Diff
--- a/src/test/lazy-omap-stats/lazy_omap_stats_test.h
|
|
+++ b/src/test/lazy-omap-stats/lazy_omap_stats_test.h
|
|
@@ -22,8 +22,8 @@
|
|
#include "include/rados/librados.hpp"
|
|
|
|
struct index_t {
|
|
- uint byte_index = 0;
|
|
- uint key_index = 0;
|
|
+ unsigned byte_index = 0;
|
|
+ unsigned key_index = 0;
|
|
};
|
|
|
|
class LazyOmapStatsTest
|
|
@@ -33,13 +33,13 @@
|
|
std::map<std::string, librados::bufferlist> payload;
|
|
|
|
struct lazy_omap_test_t {
|
|
- uint payload_size = 0;
|
|
- uint replica_count = 3;
|
|
- uint keys = 2000;
|
|
- uint how_many = 50;
|
|
+ unsigned payload_size = 0;
|
|
+ unsigned replica_count = 3;
|
|
+ unsigned keys = 2000;
|
|
+ unsigned how_many = 50;
|
|
std::string pool_name = "lazy_omap_test_pool";
|
|
- uint total_bytes = 0;
|
|
- uint total_keys = 0;
|
|
+ unsigned total_bytes = 0;
|
|
+ unsigned total_keys = 0;
|
|
} conf;
|
|
|
|
LazyOmapStatsTest(LazyOmapStatsTest&) = delete;
|
|
@@ -49,13 +49,13 @@
|
|
void write_omap(const std::string& object_name);
|
|
const std::string get_name() const;
|
|
void create_payload();
|
|
- void write_many(const uint how_many);
|
|
+ void write_many(const unsigned how_many);
|
|
void scrub() const;
|
|
const int find_matches(std::string& output, std::regex& reg) const;
|
|
void check_one();
|
|
const int find_index(std::string& haystack, std::regex& needle,
|
|
std::string label) const;
|
|
- const uint tally_column(const uint omap_bytes_index,
|
|
+ const unsigned tally_column(const unsigned omap_bytes_index,
|
|
const std::string& table, bool header) const;
|
|
void check_column(const int index, const std::string& table,
|
|
const std::string& type, bool header = true) const;
|