fix/TD-30849-fix-unit-test-compile
This commit is contained in:
parent
b85dba328c
commit
04764316b1
|
@ -118,11 +118,11 @@ typedef struct SWal {
|
||||||
SHashObj *pRefHash; // refId -> SWalRef
|
SHashObj *pRefHash; // refId -> SWalRef
|
||||||
// path
|
// path
|
||||||
char path[WAL_PATH_LEN];
|
char path[WAL_PATH_LEN];
|
||||||
// reusable write head
|
|
||||||
SWalCkHead writeHead;
|
|
||||||
|
|
||||||
stopDnodeFn stopDnode;
|
stopDnodeFn stopDnode;
|
||||||
|
|
||||||
|
// reusable write head
|
||||||
|
SWalCkHead writeHead;
|
||||||
} SWal;
|
} SWal;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
|
@ -12,7 +12,7 @@ SWalSyncInfo syncMeta = {0};
|
||||||
class WalCleanEnv : public ::testing::Test {
|
class WalCleanEnv : public ::testing::Test {
|
||||||
protected:
|
protected:
|
||||||
static void SetUpTestCase() {
|
static void SetUpTestCase() {
|
||||||
int code = walInit();
|
int code = walInit(NULL);
|
||||||
ASSERT(code == 0);
|
ASSERT(code == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ class WalCleanEnv : public ::testing::Test {
|
||||||
class WalCleanDeleteEnv : public ::testing::Test {
|
class WalCleanDeleteEnv : public ::testing::Test {
|
||||||
protected:
|
protected:
|
||||||
static void SetUpTestCase() {
|
static void SetUpTestCase() {
|
||||||
int code = walInit();
|
int code = walInit(NULL);
|
||||||
ASSERT(code == 0);
|
ASSERT(code == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ class WalCleanDeleteEnv : public ::testing::Test {
|
||||||
class WalKeepEnv : public ::testing::Test {
|
class WalKeepEnv : public ::testing::Test {
|
||||||
protected:
|
protected:
|
||||||
static void SetUpTestCase() {
|
static void SetUpTestCase() {
|
||||||
int code = walInit();
|
int code = walInit(NULL);
|
||||||
ASSERT(code == 0);
|
ASSERT(code == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ class WalKeepEnv : public ::testing::Test {
|
||||||
class WalRetentionEnv : public ::testing::Test {
|
class WalRetentionEnv : public ::testing::Test {
|
||||||
protected:
|
protected:
|
||||||
static void SetUpTestCase() {
|
static void SetUpTestCase() {
|
||||||
int code = walInit();
|
int code = walInit(NULL);
|
||||||
ASSERT(code == 0);
|
ASSERT(code == 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue