]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
seastore/rbm: return std::list in get_data_health()
authormyoungwon oh <ohmyoungwon@gmail.com>
Fri, 11 Jun 2021 13:57:17 +0000 (22:57 +0900)
committermyoungwon oh <ohmyoungwon@gmail.com>
Tue, 15 Jun 2021 02:09:06 +0000 (11:09 +0900)
Signed-off-by: Myoungwon Oh <myoungwon.oh@samsung.com>
src/crimson/os/seastore/random_block_manager/nvmedevice.h

index 1a1add921f362ef2c4ef65454cc43677bc6b0985..ad5731f99993641c67b57f52531dcee304775460 100644 (file)
@@ -188,8 +188,13 @@ public:
    * will be corrupted very soon. Caller can overwrite, unmap or refresh data to
    * protect data
    */
-   virtual nvme_command_ertr::future<> get_data_health(
-     std::list<uint64_t>& fragile_lbas) { return nvme_command_ertr::now(); }
+   virtual nvme_command_ertr::future<std::list<uint64_t>> get_data_health() {
+     std::list<uint64_t> fragile_lbas;
+     return nvme_command_ertr::future<std::list<uint64_t>>(
+       nvme_command_ertr::ready_future_marker{},
+       fragile_lbas
+     );
+   }
 
   /*
    * Recovery Level