replace get_ls_ctx_mgr with get_ls in acquire_local_snapshot

This commit is contained in:
KyrielightWei
2023-09-12 03:10:47 +00:00
committed by ob-robot
parent c5157474b8
commit 36322c7d68
5 changed files with 53 additions and 18 deletions

View File

@ -48,6 +48,17 @@ private:
ObTxNode *n_;
};
OB_NOINLINE int ObTransService::acquire_local_snapshot_(const share::ObLSID &ls_id,
SCN &snapshot,
const bool is_read_only,
bool &acquire_from_follower)
{
int ret = OB_SUCCESS;
snapshot = tx_version_mgr_.get_max_commit_ts(false);
acquire_from_follower = false;
return ret;
}
class ObTestRegisterMDS : public ::testing::Test
{
public: