[LOG] add log for read during transfer

This commit is contained in:
Handora
2023-07-27 14:18:16 +00:00
committed by ob-robot
parent b61e40d869
commit ee32feae70
3 changed files with 22 additions and 7 deletions

View File

@ -56,6 +56,14 @@ int ObMvccValueIterator::init(ObMvccAccessCtx &ctx,
}
}
if (ctx_->get_tx_table_guards().during_transfer()) {
TRANS_LOG(INFO, "value_iter.init", K(ret),
KPC(value),
KPC_(version_iter),
K(query_flag),
KPC(key),
K(ctx));
} else {
TRANS_LOG(TRACE, "value_iter.init", K(ret),
KPC(value),
KPC_(version_iter),
@ -63,6 +71,7 @@ int ObMvccValueIterator::init(ObMvccAccessCtx &ctx,
KPC(key),
K(ctx),
K(lbt()));
}
return ret;
}

View File

@ -320,6 +320,11 @@ bool ObTxTableGuards::is_need_read_src(const share::SCN scn) const
return is_need;
}
bool ObTxTableGuards::during_transfer() const
{
return src_tx_table_guard_.is_valid()
&& transfer_start_scn_.is_valid();
}
} // end namespace oceanbase
}

View File

@ -140,6 +140,7 @@ public:
const bool need_row_latch);
bool check_ls_offline();
bool is_need_read_src(const share::SCN scn) const;
bool during_transfer() const;
TO_STRING_KV(K_(tx_table_guard), K_(src_tx_table_guard), K_(transfer_start_scn));
public:
storage::ObTxTableGuard tx_table_guard_;