chore: code refactor for tsMaxKey definition
This commit is contained in:
parent
69c1465142
commit
65d9d2cd1e
|
@ -43,7 +43,6 @@ extern int32_t tsMaxNumOfDistinctResults;
|
||||||
extern int32_t tsCompatibleModel;
|
extern int32_t tsCompatibleModel;
|
||||||
extern bool tsPrintAuth;
|
extern bool tsPrintAuth;
|
||||||
extern int64_t tsTickPerMin[3];
|
extern int64_t tsTickPerMin[3];
|
||||||
extern int64_t tsMaxKeyByPrecision[3];
|
|
||||||
extern int32_t tsCountAlwaysReturnValue;
|
extern int32_t tsCountAlwaysReturnValue;
|
||||||
|
|
||||||
// queue & threads
|
// queue & threads
|
||||||
|
|
|
@ -141,14 +141,7 @@ bool tsDeployOnSnode = true;
|
||||||
*/
|
*/
|
||||||
int64_t tsTickPerMin[] = {60000L, 60000000L, 60000000000L};
|
int64_t tsTickPerMin[] = {60000L, 60000000L, 60000000000L};
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief max key by precision
|
|
||||||
* approximately calculation:
|
|
||||||
* ms: 3600*1000*8765*1000 // 1970 + 1000 years
|
|
||||||
* us: 3600*1000000*8765*1000 // 1970 + 1000 years
|
|
||||||
* ns: 3600*1000000000*8765*292 // 1970 + 292 years
|
|
||||||
*/
|
|
||||||
int64_t tsMaxKeyByPrecision[] = {31556995200000L, 31556995200000000L, 9214646400000000000L};
|
|
||||||
|
|
||||||
// lossy compress 6
|
// lossy compress 6
|
||||||
char tsLossyColumns[32] = ""; // "float|double" means all float and double columns can be lossy compressed. set empty
|
char tsLossyColumns[32] = ""; // "float|double" means all float and double columns can be lossy compressed. set empty
|
||||||
|
|
|
@ -15,6 +15,15 @@
|
||||||
|
|
||||||
#include "tsdb.h"
|
#include "tsdb.h"
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief max key by precision
|
||||||
|
* approximately calculation:
|
||||||
|
* ms: 3600*1000*8765*1000 // 1970 + 1000 years
|
||||||
|
* us: 3600*1000000*8765*1000 // 1970 + 1000 years
|
||||||
|
* ns: 3600*1000000000*8765*292 // 1970 + 292 years
|
||||||
|
*/
|
||||||
|
static int64_t tsMaxKeyByPrecision[] = {31556995200000L, 31556995200000000L, 9214646400000000000L};
|
||||||
|
|
||||||
// static int tsdbScanAndConvertSubmitMsg(STsdb *pTsdb, SSubmitReq *pMsg);
|
// static int tsdbScanAndConvertSubmitMsg(STsdb *pTsdb, SSubmitReq *pMsg);
|
||||||
|
|
||||||
int tsdbInsertData(STsdb *pTsdb, int64_t version, SSubmitReq *pMsg, SSubmitRsp *pRsp) {
|
int tsdbInsertData(STsdb *pTsdb, int64_t version, SSubmitReq *pMsg, SSubmitRsp *pRsp) {
|
||||||
|
|
Loading…
Reference in New Issue