fix autoinc seq replay

This commit is contained in:
YoungYang0820
2022-11-02 18:35:50 +00:00
committed by wangzelin.wzl
parent e3937271ab
commit 1432398f97
3 changed files with 45 additions and 16 deletions

View File

@ -131,11 +131,16 @@ public:
int batch_set_tablet_autoinc_seq(
const obrpc::ObBatchSetTabletAutoincSeqArg &arg,
obrpc::ObBatchSetTabletAutoincSeqRes &res);
int replay_update_tablet_autoinc_seq(
const ObLS *ls,
const ObTabletID &tablet_id,
const uint64_t autoinc_seq,
const int64_t replay_log_ts);
private:
ObTabletAutoincSeqRpcHandler();
~ObTabletAutoincSeqRpcHandler();
private:
static const int64_t BUCKET_LOCK_BUCKET_CNT = 100;
static const int64_t BUCKET_LOCK_BUCKET_CNT = 10243L;
bool is_inited_;
common::ObBucketLock bucket_lock_;
};