kill all running tx before the append_mode_initial_scn in switch_to_leader

This commit is contained in:
KyrielightWei
2023-08-23 10:44:11 +00:00
committed by ob-robot
parent 37f111a158
commit b9c2d2e775
15 changed files with 135 additions and 23 deletions

View File

@ -82,6 +82,12 @@ public:
return OB_SUCCESS;
}
virtual int get_append_mode_initial_scn(SCN &initial_scn) const
{
UNUSED(initial_scn);
return OB_SUCCESS;
}
virtual int change_access_mode(const int64_t mode_version,
const AccessMode &access_mode,
const share::SCN &ref_scn)

View File

@ -550,6 +550,12 @@ public:
return OB_SUCCESS;
}
int get_append_mode_initial_scn(share::SCN &ref_scn) {
int ret = OB_SUCCESS;
ref_scn = share::SCN::invalid_scn();
return ret;
}
int get_inflight_cnt() {
return ATOMIC_LOAD(&inflight_cnt_);
}

View File

@ -75,6 +75,11 @@ public:
UNUSED(scn);
return OB_SUCCESS;
}
int get_append_mode_initial_scn(share::SCN &ref_scn) {
int ret = OB_SUCCESS;
ref_scn = share::SCN::invalid_scn();
return ret;
}
void invoke_all_cbs();