submit log interface to nonblcok

This commit is contained in:
felix-w15
2024-04-17 10:51:19 +00:00
committed by ob-robot
parent 3418e7ad4e
commit 784e448714
11 changed files with 113 additions and 42 deletions

View File

@ -497,7 +497,8 @@ public:
const int64_t size,
const share::SCN &base_ts,
ObTxBaseLogCb *cb,
const bool need_nonblock)
const bool need_nonblock,
const int64_t retry_timeout_us)
{
int ret = OB_SUCCESS;
logservice::ObLogBaseHeader base_header;

View File

@ -108,7 +108,8 @@ int MockTxLogAdapter::submit_log(const char *buf,
const int64_t size,
const share::SCN &base_ts,
ObTxBaseLogCb *cb,
const bool need_nonblock)
const bool need_nonblock,
const int64_t retry_timeout_us)
{
int ret = OB_SUCCESS;
int64_t ts = 0;

View File

@ -68,7 +68,8 @@ public:
const int64_t size,
const share::SCN &base_ts,
ObTxBaseLogCb *cb,
const bool need_block);
const bool need_block,
const int64_t retry_timeout_us = 1000);
int get_role(bool &is_leader, int64_t &epoch);
int get_max_decided_scn(share::SCN &scn)
{