]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/lazy-omap-stats: Fix compilation on alpine linux 38401/head
authorDuncan Bellamy <dunk@denkimushi.com>
Tue, 1 Dec 2020 17:13:14 +0000 (17:13 +0000)
committerDuncan Bellamy <dunk@denkimushi.com>
Wed, 2 Dec 2020 16:26:28 +0000 (16:26 +0000)
alpine lacks uint typedef but has unsigned

Signed-off-by: Duncan Bellamy <dunk@denkimushi.com>
src/test/lazy-omap-stats/lazy_omap_stats_test.h

index 5399012eae7d89337ea362ab4a47b0afdd5791f8..28e194441e1ce647f057a6b3613ae797066a272d 100644 (file)
@@ -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<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 @@ 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;