]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: use unsigned type for event count
authorPatrick Donnelly <pdonnell@redhat.com>
Wed, 1 Feb 2023 19:14:52 +0000 (14:14 -0500)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 1 Aug 2023 15:16:00 +0000 (11:16 -0400)
To resolve comparison warnings in subsequent commit.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/LogSegment.h

index 0fbb824b348e6c009b0fc6c81679bce7d6f8975f..e6d8a2ca8830c61b78f9c83d0968846e8a753e30 100644 (file)
@@ -70,7 +70,7 @@ class LogSegment {
 
   const seq_t seq;
   uint64_t offset, end;
-  int num_events = 0;
+  uint64_t num_events = 0;
 
   // dirty items
   elist<CDir*>    dirty_dirfrags, new_dirfrags;