]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
interval_set: Review comments
authorAlex Ainscow <aainscow@uk.ibm.com>
Thu, 23 Jan 2025 08:42:48 +0000 (08:42 +0000)
committerAlex Ainscow <aainscow@uk.ibm.com>
Mon, 27 Jan 2025 11:20:01 +0000 (11:20 +0000)
Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/include/interval_set.h

index 06727fb9fd1828a3a0e58d2825b2ba409e893de3..f7a197303e4200f1b9e903f12af6080b6c865f36 100644 (file)
@@ -498,7 +498,7 @@ class interval_set {
     T new_len = len;
     auto p = find_adj_m(start);
     auto o = std::pair(start, len);
-    T end = start+len;
+    T end = start + len;
 
     if(len == 0) {
       if (p != m.end() && start >= p->first && start < p->first + p->second) {
@@ -828,7 +828,7 @@ class interval_set {
   }
 
   /*
-  * Round down interval starts and round up interval ends alignment the specified @alignment
+  * Round down interval starts and round up interval ends to specified alignment.
   */
   void align(T alignment) {
     interval_set tmp;