enh: batch create table

This commit is contained in:
kailixu 2024-04-28 04:47:00 +08:00
parent 504263315d
commit 3b504e6e96
2 changed files with 8 additions and 8 deletions

View File

@ -58,12 +58,12 @@ typedef enum {
TSDB_GRANT_BACKUP_RESTORE,
} EGrantType;
int32_t checkAndGetCryptKey(const char *encryptCode, const char *machineId, char **key);
int32_t generateEncryptCode(const char *key, const char *machineId, char **encryptCode);
uint64_t grantRemain(EGrantType grant);
int32_t grantCheck(EGrantType grant);
int32_t grantCheckExpire(EGrantType grant);
char *tGetMachineId();
int32_t checkAndGetCryptKey(const char *encryptCode, const char *machineId, char **key);
int32_t generateEncryptCode(const char *key, const char *machineId, char **encryptCode);
int64_t grantRemain(EGrantType grant);
int32_t grantCheck(EGrantType grant);
int32_t grantCheckExpire(EGrantType grant);
char *tGetMachineId();
// #ifndef GRANTS_CFG
#ifdef TD_ENTERPRISE

View File

@ -74,7 +74,7 @@ static void *dmNotifyThreadFp(void *param) {
if (wait) tsem_wait(&dmNotifyHdl.sem);
atomic_store_8(&dmNotifyHdl.state, 1);
uint64_t remainTimeSeries = grantRemain(TSDB_GRANT_TIMESERIES);
int64_t remainTimeSeries = grantRemain(TSDB_GRANT_TIMESERIES);
if (remainTimeSeries == INT64_MAX || remainTimeSeries <= 0) {
goto _skip;
}
@ -110,7 +110,7 @@ static void *dmNotifyThreadFp(void *param) {
notifyTimeStamp[tail] = taosGetTimestampNs();
++nTotalNotify;
uint64_t approximateTimeSeries = 0;
int64_t approximateTimeSeries = 0;
if (nTotalNotify >= TIMESERIES_STASH_NUM) {
int64_t timeDiff = notifyTimeStamp[tail] - notifyTimeStamp[head];
int64_t tsDiff = notifyTimeSeries[tail] - notifyTimeSeries[head];