[CP] Auto Refresh/Broadcast Tablet Location

This commit is contained in:
tino247
2024-02-07 03:10:35 +00:00
committed by ob-robot
parent bd399fbacd
commit ed95beb4e1
35 changed files with 2746 additions and 65 deletions

View File

@ -72,6 +72,7 @@
#include "share/scn.h"//SCN
#include "share/ob_server_table_operator.h"
#include "share/restore/ob_import_arg.h"
#include "share/location_cache/ob_location_update_task.h"
namespace oceanbase
{
@ -10235,6 +10236,36 @@ public:
int64_t lock_id_;
};
struct ObTabletLocationSendArg final
{
OB_UNIS_VERSION(1);
public:
ObTabletLocationSendArg();
~ObTabletLocationSendArg();
int assign(const ObTabletLocationSendArg &other);
int set(const ObIArray<share::ObTabletLocationBroadcastTask> &tasks);
const ObSArray<share::ObTabletLocationBroadcastTask> &get_tasks() const { return tasks_; }
bool is_valid() const;
void reset();
TO_STRING_KV(K_(tasks));
public:
ObSArray<share::ObTabletLocationBroadcastTask> tasks_;
};
struct ObTabletLocationSendResult final
{
OB_UNIS_VERSION(1);
public:
ObTabletLocationSendResult();
~ObTabletLocationSendResult();
int assign(const ObTabletLocationSendResult &other);
void reset();
void set_ret(int ret);
int get_ret() const;
TO_STRING_KV(K_(ret));
private:
int ret_;
};
}//end namespace obrpc
}//end namespace oceanbase
#endif