From 0ea7eba1a974df618a0b15a161839d664cb84423 Mon Sep 17 00:00:00 2001 From: Duncan Bellamy Date: Tue, 1 Dec 2020 17:13:14 +0000 Subject: [PATCH] test/lazy-omap-stats: Fix compilation on alpine linux alpine lacks uint typedef but has unsigned Signed-off-by: Duncan Bellamy --- .../lazy-omap-stats/lazy_omap_stats_test.h | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/test/lazy-omap-stats/lazy_omap_stats_test.h b/src/test/lazy-omap-stats/lazy_omap_stats_test.h index 5399012eae7d8..28e194441e1ce 100644 --- 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 @@ class LazyOmapStatsTest std::map 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 @@ class LazyOmapStatsTest 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; -- 2.39.5