]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
Moved ostream operator overloading to BucketIndexType() to rgw_bucket_layout header...
authorShilpa Jagannath <smanjara@redhat.com>
Tue, 31 Mar 2020 11:13:12 +0000 (16:43 +0530)
committerShilpa Jagannath <smanjara@redhat.com>
Tue, 31 Mar 2020 11:13:12 +0000 (16:43 +0530)
Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
src/rgw/rgw_bucket_layout.h
src/rgw/rgw_common.h

index 5f9d156c98cf8c20114419c68c74a366ba4875da..69030d03016099080dd88b5557a35514b1e041fe 100644 (file)
@@ -30,6 +30,18 @@ enum class BucketHashType : uint8_t {
   Mod, // rjenkins hash of object name, modulo num_shards
 };
 
+inline std::ostream& operator<<(std::ostream& out, const rgw::BucketIndexType &index_type)
+{
+  switch (index_type) {
+    case rgw::BucketIndexType::Normal:
+      return out << "Normal";
+    case rgw::BucketIndexType::Indexless:
+      return out << "Indexless";
+    default:
+      return out << "Unknown";
+  }
+}
+
 struct bucket_index_normal_layout {
   uint32_t num_shards = 1;
 
index 4d6d866d98b995d1a0ea6057d326d67ef470e1c3..3dd53ddf234707bb468286179018ffef9ec286b7 100644 (file)
@@ -1091,18 +1091,6 @@ enum RGWBucketFlags {
   BUCKET_OBJ_LOCK_ENABLED = 0X20,
 };
 
-inline ostream& operator<<(ostream& out, const rgw::BucketIndexType &index_type)
-{
-  switch (index_type) {
-    case rgw::BucketIndexType::Normal:
-      return out << "Normal";
-    case rgw::BucketIndexType::Indexless:
-      return out << "Indexless";
-    default:
-      return out << "Unknown";
-  }
-}
-
 class RGWSI_Zone;
 
 struct RGWBucketInfo {