TD-1027
This commit is contained in:
parent
b7584337ab
commit
7f56ba6056
|
@ -13,6 +13,7 @@ ENDIF ()
|
||||||
SET(TD_ACCOUNT FALSE)
|
SET(TD_ACCOUNT FALSE)
|
||||||
SET(TD_ADMIN FALSE)
|
SET(TD_ADMIN FALSE)
|
||||||
SET(TD_GRANT FALSE)
|
SET(TD_GRANT FALSE)
|
||||||
|
SET(TD_TSDB_PLUGINS FALSE)
|
||||||
|
|
||||||
SET(TD_COVER FALSE)
|
SET(TD_COVER FALSE)
|
||||||
SET(TD_MEM_CHECK FALSE)
|
SET(TD_MEM_CHECK FALSE)
|
||||||
|
|
|
@ -13,6 +13,10 @@ IF (TD_GRANT)
|
||||||
ADD_DEFINITIONS(-D_GRANT)
|
ADD_DEFINITIONS(-D_GRANT)
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
||||||
|
IF (TD_TSDB_PLUGINS)
|
||||||
|
ADD_DEFINITIONS(-D_TSDB_PLUGINS)
|
||||||
|
ENDIF ()
|
||||||
|
|
||||||
IF (TD_GODLL)
|
IF (TD_GODLL)
|
||||||
ADD_DEFINITIONS(-D_TD_GO_DLL_)
|
ADD_DEFINITIONS(-D_TD_GO_DLL_)
|
||||||
ENDIF ()
|
ENDIF ()
|
||||||
|
|
|
@ -320,6 +320,16 @@ typedef struct {
|
||||||
void* compBuffer; // Buffer for temperary compress/decompress purpose
|
void* compBuffer; // Buffer for temperary compress/decompress purpose
|
||||||
} SRWHelper;
|
} SRWHelper;
|
||||||
|
|
||||||
|
// ------------------ tsdbScan.c
|
||||||
|
typedef struct {
|
||||||
|
SFileGroup fGroup;
|
||||||
|
int numOfIdx;
|
||||||
|
SCompIdx* pCompIdx;
|
||||||
|
SCompInfo* pCompInfo;
|
||||||
|
void* pBuf;
|
||||||
|
FILE* tLogStream;
|
||||||
|
} STsdbScanHandle;
|
||||||
|
|
||||||
// Operations
|
// Operations
|
||||||
// ------------------ tsdbMeta.c
|
// ------------------ tsdbMeta.c
|
||||||
#define TSDB_INIT_NTABLES 1024
|
#define TSDB_INIT_NTABLES 1024
|
||||||
|
@ -552,6 +562,16 @@ STsdbMeta* tsdbGetMeta(TSDB_REPO_T* pRepo);
|
||||||
STsdbFileH* tsdbGetFile(TSDB_REPO_T* pRepo);
|
STsdbFileH* tsdbGetFile(TSDB_REPO_T* pRepo);
|
||||||
int tsdbCheckCommit(STsdbRepo* pRepo);
|
int tsdbCheckCommit(STsdbRepo* pRepo);
|
||||||
|
|
||||||
|
// ------------------ tsdbScan.c
|
||||||
|
int tsdbScanFGroup(STsdbScanHandle* pScanHandle, char* rootDir, int fid);
|
||||||
|
STsdbScanHandle* tsdbNewScanHandle();
|
||||||
|
void tsdbSetScanLogStream(STsdbScanHandle* pScanHandle, FILE* fLogStream);
|
||||||
|
int tsdbSetAndOpenScanFile(STsdbScanHandle* pScanHandle, char* rootDir, int fid);
|
||||||
|
int tsdbScanSCompIdx(STsdbScanHandle* pScanHandle);
|
||||||
|
int tsdbScanSCompBlock(STsdbScanHandle* pScanHandle, int idx);
|
||||||
|
int tsdbCloseScanFile(STsdbScanHandle* pScanHandle);
|
||||||
|
void tsdbFreeScanHandle(STsdbScanHandle* pScanHandle);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -11,4 +11,26 @@
|
||||||
*
|
*
|
||||||
* You should have received a copy of the GNU Affero General Public License
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "tsdbMain.h"
|
||||||
|
|
||||||
|
#ifndef _TSDB_PLUGINS
|
||||||
|
|
||||||
|
int tsdbScanFGroup(STsdbScanHandle* pScanHandle, char* rootDir, int fid) { return 0; }
|
||||||
|
|
||||||
|
STsdbScanHandle* tsdbNewScanHandle() { return NULL; }
|
||||||
|
|
||||||
|
void tsdbSetScanLogStream(STsdbScanHandle* pScanHandle, FILE* fLogStream) {}
|
||||||
|
|
||||||
|
int tsdbSetAndOpenScanFile(STsdbScanHandle* pScanHandle, char* rootDir, int fid) { return 0 }
|
||||||
|
|
||||||
|
int tsdbScanSCompIdx(STsdbScanHandle* pScanHandle) { return 0; }
|
||||||
|
|
||||||
|
int tsdbScanSCompBlock(STsdbScanHandle* pScanHandle, int idx) { return 0; }
|
||||||
|
|
||||||
|
int tsdbCloseScanFile(STsdbScanHandle* pScanHandle) { return 0; }
|
||||||
|
|
||||||
|
void tsdbFreeScanHandle(STsdbScanHandle* pScanHandle) {}
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue