From: Duncan Bellamy Date: Tue, 1 Dec 2020 17:13:14 +0000 (+0000) Subject: test/lazy-omap-stats: Fix compilation on alpine linux X-Git-Tag: v16.1.0~366^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F38401%2Fhead;p=ceph.git test/lazy-omap-stats: Fix compilation on alpine linux alpine lacks uint typedef but has unsigned Signed-off-by: Duncan Bellamy --- 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 5399012eae7..28e194441e1 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;