限制缓存在内存的配置文件内容的版本数量,以适应全增量模式的配置下发
This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
|
||||
#include <cjson/cJSON.h>
|
||||
|
||||
#include <map>
|
||||
using namespace std;
|
||||
|
||||
enum DORIS_SERVER_FS_FILED
|
||||
{
|
||||
DRS_FSSTAT_RECV_ERR_VER=0,
|
||||
@@ -71,7 +74,8 @@ struct version_list_node
|
||||
int64_t version;
|
||||
char *metacont;
|
||||
int32_t metalen;
|
||||
int32_t cfg_type; //1-full, 2-inc
|
||||
int16_t cfg_type; //1-full, 2-inc
|
||||
int16_t cont_in_disk;
|
||||
cJSON *metajson, *arrayjson;
|
||||
cJSON *table_meta;
|
||||
|
||||
@@ -84,6 +88,9 @@ struct version_list_handle
|
||||
TAILQ_HEAD(__version_list_node, version_list_node) version_head;
|
||||
int64_t latest_version;
|
||||
int32_t references;
|
||||
u_int32_t version_num;
|
||||
map<int64_t, struct version_list_node*> *version2node;
|
||||
struct version_list_node *oldest_vernode; //δ<><CEB4><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD>̭<EFBFBD><CCAD><EFBFBD><EFBFBD><EFBFBD>ϰ汾
|
||||
};
|
||||
|
||||
struct version_list_handle *config_version_handle_new(void);
|
||||
|
||||
Reference in New Issue
Block a user