]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
seastore/nvmedevice: use the necessary capture value and fix typo
authormyoungwon oh <ohmyoungwon@gmail.com>
Tue, 25 May 2021 07:26:38 +0000 (16:26 +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/nvmedevice/nvmedevice.cc

index acbae6bc268f4aebfdcadbc0b2e54b3cd8b714a8..3d79b41c71102e346f1d64ef1cf9ac81864b2d19 100644 (file)
@@ -54,7 +54,7 @@ write_ertr::future<> PosixNVMeDevice::write(
     [length](auto e) -> write_ertr::future<size_t> {
       logger().error("write: dma_write got error{}", e);
       return crimson::ct_error::input_output_error::make();
-    }).then([=](auto result) -> write_ertr::future<> {
+    }).then([length](auto result) -> write_ertr::future<> {
       if (result != length) {
         logger().error("write: dma_write got error with not proper length");
         return crimson::ct_error::input_output_error::make();
@@ -78,7 +78,7 @@ read_ertr::future<> PosixNVMeDevice::read(
     [length](auto e) -> read_ertr::future<size_t> {
       logger().error("read: dma_read got error{}", e);
       return crimson::ct_error::input_output_error::make();
-    }).then([=](auto result) -> read_ertr::future<> {
+    }).then([length](auto result) -> read_ertr::future<> {
       if (result != length) {
         logger().error("read: dma_read got error with not proper length");
         return crimson::ct_error::input_output_error::make();
@@ -100,7 +100,7 @@ open_ertr::future<> TestMemory::open(
   }
 
   logger().debug(
-    "Initializing test memory divice {}",
+    "Initializing test memory device {}",
     size);
 
   void* addr = ::mmap(