[LOG] add log for read during transfer
This commit is contained in:
@ -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),
|
TRANS_LOG(TRACE, "value_iter.init", K(ret),
|
||||||
KPC(value),
|
KPC(value),
|
||||||
KPC_(version_iter),
|
KPC_(version_iter),
|
||||||
@ -63,6 +71,7 @@ int ObMvccValueIterator::init(ObMvccAccessCtx &ctx,
|
|||||||
KPC(key),
|
KPC(key),
|
||||||
K(ctx),
|
K(ctx),
|
||||||
K(lbt()));
|
K(lbt()));
|
||||||
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -320,6 +320,11 @@ bool ObTxTableGuards::is_need_read_src(const share::SCN scn) const
|
|||||||
return is_need;
|
return is_need;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool ObTxTableGuards::during_transfer() const
|
||||||
|
{
|
||||||
|
return src_tx_table_guard_.is_valid()
|
||||||
|
&& transfer_start_scn_.is_valid();
|
||||||
|
}
|
||||||
|
|
||||||
} // end namespace oceanbase
|
} // end namespace oceanbase
|
||||||
}
|
}
|
||||||
|
@ -140,6 +140,7 @@ public:
|
|||||||
const bool need_row_latch);
|
const bool need_row_latch);
|
||||||
bool check_ls_offline();
|
bool check_ls_offline();
|
||||||
bool is_need_read_src(const share::SCN scn) const;
|
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));
|
TO_STRING_KV(K_(tx_table_guard), K_(src_tx_table_guard), K_(transfer_start_scn));
|
||||||
public:
|
public:
|
||||||
storage::ObTxTableGuard tx_table_guard_;
|
storage::ObTxTableGuard tx_table_guard_;
|
||||||
|
Reference in New Issue
Block a user