]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cls::rbd: read_peers: update last_read on next cls_cxx_map_get_vals 8374/head
authorMykola Golub <mgolub@mirantis.com>
Wed, 30 Mar 2016 11:39:37 +0000 (14:39 +0300)
committerMykola Golub <mgolub@mirantis.com>
Wed, 30 Mar 2016 12:01:05 +0000 (15:01 +0300)
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/cls/rbd/cls_rbd.cc

index b3c7fc696b380e55a326bbb66d86fb477c0e9c52..24b2e3acd38c7430781516c75df7be43130b603e 100644 (file)
@@ -3014,6 +3014,10 @@ int read_peers(cls_method_context_t hctx,
        return -EIO;
       }
     }
+
+    if (!vals.empty()) {
+      last_read = vals.rbegin()->first;
+    }
   }
   return 0;
 }