TD-1057
This commit is contained in:
parent
afa869817d
commit
4d42ec1b22
|
@ -7,7 +7,9 @@ AUX_SOURCE_DIRECTORY(src SRC)
|
|||
IF (TD_LINUX)
|
||||
ADD_LIBRARY(tsdb ${SRC})
|
||||
TARGET_LINK_LIBRARIES(tsdb common tutil)
|
||||
|
||||
# Someone has no gtest directory, so comment it
|
||||
# ADD_SUBDIRECTORY(tests)
|
||||
ELSEIF (TD_WINDOWS)
|
||||
ADD_LIBRARY(tsdb ${SRC})
|
||||
TARGET_LINK_LIBRARIES(tsdb common tutil)
|
||||
ENDIF ()
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#ifndef _TD_TSDB_MAIN_H_
|
||||
#define _TD_TSDB_MAIN_H_
|
||||
|
||||
#include "os.h"
|
||||
#include "hash.h"
|
||||
#include "tcoding.h"
|
||||
#include "tglobal.h"
|
||||
|
@ -67,7 +68,7 @@ typedef struct STable {
|
|||
char* sql;
|
||||
void* cqhandle;
|
||||
SRWLatch latch; // TODO: implementa latch functions
|
||||
T_REF_DECLARE();
|
||||
T_REF_DECLARE()
|
||||
} STable;
|
||||
|
||||
typedef struct {
|
||||
|
@ -115,7 +116,7 @@ typedef struct {
|
|||
} STableData;
|
||||
|
||||
typedef struct {
|
||||
T_REF_DECLARE();
|
||||
T_REF_DECLARE()
|
||||
SRWLatch latch;
|
||||
TSKEY keyFirst;
|
||||
TSKEY keyLast;
|
||||
|
@ -127,10 +128,19 @@ typedef struct {
|
|||
} SMemTable;
|
||||
|
||||
enum { TSDB_UPDATE_META, TSDB_DROP_META };
|
||||
|
||||
#ifdef WINDOWS
|
||||
#pragma pack(push ,1)
|
||||
typedef struct {
|
||||
#else
|
||||
typedef struct __attribute__((packed)){
|
||||
#endif
|
||||
char act;
|
||||
uint64_t uid;
|
||||
} SActObj;
|
||||
#ifdef WINDOWS
|
||||
#pragma pack(pop)
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
int len;
|
||||
|
|
Loading…
Reference in New Issue