]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os/seastore_types: fix NULL_SEG_OFF declaration
authorSamuel Just <sjust@redhat.com>
Mon, 19 Apr 2021 07:39:34 +0000 (00:39 -0700)
committerSamuel Just <sjust@redhat.com>
Thu, 22 Apr 2021 06:16:41 +0000 (23:16 -0700)
Signed-off-by: Samuel Just <sjust@redhat.com>
src/crimson/os/seastore/seastore_types.h

index 1855049fd75605fc0b8f080874f4ea405c5e417c..655a9bea6840cc0a1679adcd4543f7b7e02d184e 100644 (file)
@@ -59,7 +59,7 @@ std::ostream &segment_to_stream(std::ostream &, const segment_id_t &t);
 // may be negative for relative offsets
 using segment_off_t = int32_t;
 constexpr segment_off_t NULL_SEG_OFF =
-  std::numeric_limits<segment_id_t>::max();
+  std::numeric_limits<segment_off_t>::max();
 
 std::ostream &offset_to_stream(std::ostream &, const segment_off_t &t);