Skip to content

Commit a783081

Browse files
committed
crimson/os/seastore/transaction_manager: add log in get_extents_if_live()
Signed-off-by: Yingxin Cheng <[email protected]>
1 parent 0732a3d commit a783081

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/crimson/os/seastore/transaction_manager.cc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ TransactionManager::get_extents_if_live(
726726
ceph_assert(paddr.get_addr_type() == paddr_types_t::SEGMENT);
727727

728728
return cache->get_extent_if_cached(t, paddr, type
729-
).si_then([=, this, &t](auto extent)
729+
).si_then([this, FNAME, type, paddr, laddr, len, &t](auto extent)
730730
-> get_extents_if_live_ret {
731731
if (extent && extent->get_length() == len) {
732732
DEBUGT("{} {}~0x{:x} {} is cached and alive -- {}",
@@ -743,19 +743,20 @@ TransactionManager::get_extents_if_live(
743743
t,
744744
laddr,
745745
len
746-
).si_then([=, this, &t](lba_pin_list_t pin_list) {
746+
).si_then([this, FNAME, type, paddr, laddr, len, &t](lba_pin_list_t pin_list) {
747747
return seastar::do_with(
748748
std::list<CachedExtentRef>(),
749749
std::move(pin_list),
750-
[=, this, &t]
750+
[this, FNAME, type, paddr, laddr, len, &t]
751751
(std::list<CachedExtentRef> &extent_list, auto& pin_list)
752752
{
753753
auto paddr_seg_id = paddr.as_seg_paddr().get_segment_id();
754754
return trans_intr::parallel_for_each(
755755
pin_list,
756-
[=, this, &extent_list, &t](
756+
[this, FNAME, type, paddr_seg_id, &extent_list, &t](
757757
LBAMappingRef& pin) -> Cache::get_extent_iertr::future<>
758758
{
759+
DEBUGT("got pin, try read in parallel ... -- {}", t, *pin);
759760
auto pin_paddr = pin->get_val();
760761
if (pin_paddr.get_addr_type() != paddr_types_t::SEGMENT) {
761762
return seastar::now();

0 commit comments

Comments
 (0)