提交 54ca6c4e 编写于 作者: H Hongze Cheng

make TDB can compile

上级 5f90bae8
......@@ -32,18 +32,3 @@ int tdbGnrtFileID(const char *fname, uint8_t *fileid, bool unique) {
return 0;
}
\ No newline at end of file
int tdbGetFileSize(const char *fname, int pgSize, SPgno *pSize) {
struct stat st;
int ret;
int64_t file_size = 0;
ret = taosStatFile(fname, &file_size, NULL);
if (ret != 0) {
return -1;
}
ASSERT(file_size % pgSize == 0);
*pSize = file_size / pgSize;
return 0;
}
\ No newline at end of file
......@@ -30,8 +30,6 @@ extern "C" {
int tdbGnrtFileID(const char *fname, uint8_t *fileid, bool unique);
int tdbGetFileSize(const char *fname, int pgSize, SPgno *pSize);
#define TDB_REALLOC(PTR, SIZE) \
({ \
void *nPtr; \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册