HEAD object元信息来源选择由宏定义改为配置文件。
This commit is contained in:
10
cache/src/tango_cache_client_in.h
vendored
10
cache/src/tango_cache_client_in.h
vendored
@@ -6,9 +6,7 @@
|
||||
|
||||
#include <event2/event.h>
|
||||
#include <event.h>
|
||||
#ifdef HEAD_OBJECT_FROM_REDIS
|
||||
#include <hiredis/async.h>
|
||||
#endif
|
||||
|
||||
#include <MESA/wiredLB.h>
|
||||
#include "tango_cache_client.h"
|
||||
@@ -17,6 +15,9 @@
|
||||
#define RESPONSE_HDR_LAST_MOD 2
|
||||
#define RESPONSE_HDR_ALL 3
|
||||
|
||||
#define HEAD_META_FROM_MINIO 1
|
||||
#define HEAD_META_FROM_REDIS 2
|
||||
|
||||
enum CACHE_REQUEST_METHOD
|
||||
{
|
||||
CACHE_REQUEST_GET=0,
|
||||
@@ -71,13 +72,14 @@ struct tango_cache_instance
|
||||
long max_cnn_host;
|
||||
u_int32_t upload_block_size; //minio<69>ֶ<EFBFBD><D6B6>ϴ<EFBFBD><CFB4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD>
|
||||
enum CACHE_ERR_CODE error_code;
|
||||
#ifdef HEAD_OBJECT_FROM_REDIS
|
||||
|
||||
int head_meta_source; //<2F><><EFBFBD>Դ<EFBFBD>MINIO<49><4F>REDIS<49><53>ȡԪ<C8A1><D4AA>Ϣ
|
||||
//Ԫ<><D4AA>Ϣ<EFBFBD><CFA2>ȡ<EFBFBD><C8A1>ʽRedis
|
||||
redisAsyncContext *redis_ac;
|
||||
char redis_key[256];
|
||||
char redis_ip[128];
|
||||
int redis_port;
|
||||
int redis_connecting;
|
||||
#endif
|
||||
};
|
||||
|
||||
struct multipart_etag_list
|
||||
|
||||
Reference in New Issue
Block a user