]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
os/bluestore: Move OBJECT_MAX_SIZE
authorAdam Kupczyk <akupczyk@ibm.com>
Thu, 13 Jun 2024 18:40:50 +0000 (18:40 +0000)
committerAdam Kupczyk <akupczyk@ibm.com>
Wed, 7 Aug 2024 10:48:58 +0000 (10:48 +0000)
From define in .cc to constexpr in .h

Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
src/os/bluestore/BlueStore.cc
src/os/bluestore/BlueStore.h

index 6b8ef773f4e6a2ff94095eab95cba0ae42e7c7c2..3bcdfa72b4c909a126ee2d70fc95120976014e6e 100644 (file)
@@ -143,9 +143,6 @@ const vector<uint64_t> bdev_label_positions = {
   100*_1G,
   1000*_1G};
 
-#define OBJECT_MAX_SIZE 0xffffffff // 32 bits
-
-
 /*
  * extent map blob encoding
  *
index c92458c07fa5fd126feb814c6f11a1c650c1167f..cad3c86b0a94f00c6ee5acfca583f759e45a1f86 100644 (file)
@@ -274,6 +274,7 @@ public:
     virtual ~AioContext() {}
   };
 
+  static constexpr uint32_t OBJECT_MAX_SIZE = 0xffffffff; // 32 bits
   struct printer {
     static constexpr uint16_t PTR = 1;   // pointer to Blob
     static constexpr uint16_t NICK = 2;  // a nickname of this Blob