Merge remote-tracking branch 'origin/3.0' into enh/opt-transport
This commit is contained in:
parent
2947aaf89a
commit
fb059dbdd0
|
@ -971,6 +971,12 @@ typedef struct SEpSet {
|
|||
SEp eps[TSDB_MAX_REPLICA];
|
||||
} SEpSet;
|
||||
|
||||
typedef struct {
|
||||
int8_t inUse;
|
||||
int8_t numOfEps;
|
||||
SEp eps[];
|
||||
} SReqEpSet;
|
||||
|
||||
int32_t tEncodeSEpSet(SEncoder* pEncoder, const SEpSet* pEp);
|
||||
int32_t tDecodeSEpSet(SDecoder* pDecoder, SEpSet* pEp);
|
||||
int32_t taosEncodeSEpSet(void** buf, const SEpSet* pEp);
|
||||
|
@ -2822,8 +2828,8 @@ enum {
|
|||
TOPIC_SUB_TYPE__COLUMN,
|
||||
};
|
||||
|
||||
#define DEFAULT_MAX_POLL_INTERVAL 300000
|
||||
#define DEFAULT_SESSION_TIMEOUT 12000
|
||||
#define DEFAULT_MAX_POLL_INTERVAL 300000
|
||||
#define DEFAULT_SESSION_TIMEOUT 12000
|
||||
|
||||
typedef struct {
|
||||
char name[TSDB_TOPIC_FNAME_LEN]; // accout.topic
|
||||
|
|
|
@ -136,12 +136,6 @@ typedef struct SCvtAddr {
|
|||
bool cvt;
|
||||
} SCvtAddr;
|
||||
|
||||
typedef struct {
|
||||
int32_t inUse;
|
||||
int32_t numOfEps;
|
||||
SEp eps[];
|
||||
} SReqEpSet;
|
||||
|
||||
int32_t transCreateReqEpsetFromUserEpset(const SEpSet* pEpset, SReqEpSet** pReqEpSet);
|
||||
int32_t transCreateUserEpsetFromReqEpset(const SReqEpSet* pReqEpSet, SEpSet* pEpSet);
|
||||
|
||||
|
|
|
@ -951,7 +951,7 @@ int32_t transCreateReqEpsetFromUserEpset(const SEpSet* pEpset, SReqEpSet** pReqE
|
|||
if (pReq == NULL) {
|
||||
return TSDB_CODE_OUT_OF_MEMORY;
|
||||
}
|
||||
memcpy((char*)pReqEpSet, (char*)pEpset, size);
|
||||
memcpy((char*)pReq, (char*)pEpset, size);
|
||||
*pReqEpSet = pReq;
|
||||
return TSDB_CODE_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue