[FEAT MERGE] log4200
Co-authored-by: zhjc1124 <zhjc1124@gmail.com> Co-authored-by: BinChenn <binchenn.bc@gmail.com> Co-authored-by: oceanoverflow <oceanoverflow@gmail.com>
This commit is contained in:
@ -177,7 +177,7 @@ private:
|
||||
// lsn of last log_entry, may be invalid if haven't generate any log_entry.
|
||||
palf::LSN last_lsn_();
|
||||
private:
|
||||
TenantLSID tls_id_;
|
||||
logservice::TenantLSID tls_id_;
|
||||
ObTxLogBlockBuilder block_builder_;
|
||||
ObLogLSNArray lsn_arr_;
|
||||
LSN last_record_lsn_;
|
||||
|
||||
@ -48,7 +48,7 @@ public:
|
||||
UNUSED(page);
|
||||
}
|
||||
|
||||
void set_task_info(const TenantLSID &tls_id,
|
||||
void set_task_info(const logservice::TenantLSID &tls_id,
|
||||
const char *tls_id_str)
|
||||
{
|
||||
UNUSED(tls_id);
|
||||
@ -90,7 +90,7 @@ TEST(ObLogTransTaskPool, Function1)
|
||||
|
||||
MockTransTask **tasks = new MockTransTask*[task_cnt];
|
||||
const char *tls_info = "tenant_ls_id";
|
||||
TenantLSID tls_id;
|
||||
logservice::TenantLSID tls_id;
|
||||
|
||||
for (int64_t idx = 0; idx < task_cnt; ++idx) {
|
||||
tasks[idx] = pool.get(tls_info, tls_id);
|
||||
@ -123,7 +123,7 @@ TEST(ObLogTransTaskPool, Function2)
|
||||
|
||||
MockTransTask **tasks = new MockTransTask*[task_cnt];
|
||||
const char *tls_info = "partition";
|
||||
TenantLSID tls_id;
|
||||
logservice::TenantLSID tls_id;
|
||||
|
||||
for (int64_t idx = 0; idx < task_cnt; ++idx) {
|
||||
tasks[idx] = pool.get(tls_info, tls_id);
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
#include "share/ob_define.h"
|
||||
#include "storage/ob_storage_log_type.h"
|
||||
#include "storage/tx/ob_trans_log.h"
|
||||
#include "ob_log_fetch_stat_info.h"
|
||||
#include "logservice/logfetcher/ob_log_fetch_stat_info.h"
|
||||
#include "logservice/libobcdc/src/ob_log_utils.h"
|
||||
#include "logservice/libobcdc/src/ob_log_ls_fetch_ctx.h"
|
||||
#include "logservice/libobcdc/src/ob_log_ls_fetch_mgr.h"
|
||||
@ -42,13 +42,14 @@ using namespace common;
|
||||
using namespace libobcdc;
|
||||
using namespace transaction;
|
||||
using namespace storage;
|
||||
using namespace logfetcher;
|
||||
|
||||
#define PREPARE_ENV(tenant_id, ls_id, tx_id, cluster_id) \
|
||||
bool stop_flag = false; \
|
||||
TenantLSID tls_id(tenant_id, share::ObLSID(ls_id)); \
|
||||
logservice::TenantLSID tls_id(tenant_id, share::ObLSID(ls_id)); \
|
||||
EXPECT_TRUE(tls_id.is_valid()); \
|
||||
IObCDCPartTransResolver::MissingLogInfo missing_info; \
|
||||
TransStatInfo tsi; \
|
||||
logfetcher::TransStatInfo tsi; \
|
||||
int64_t start_ts_ns = 1; \
|
||||
palf::LSN start_lsn(0); \
|
||||
EXPECT_TRUE(start_lsn.is_valid());
|
||||
|
||||
Reference in New Issue
Block a user