remove struct dot initialization for cpp

This commit is contained in:
Minglei Jin 2024-07-17 17:39:13 +08:00
parent e2371f9d91
commit 10dc3b35e0
1 changed files with 4 additions and 5 deletions

View File

@ -7,11 +7,10 @@
const char* ranStr = "tvapq02tcp";
const int ranStrLen = strlen(ranStr);
SWalSyncInfo syncMeta = {
.isWeek = -1,
.seqNum = UINT64_MAX,
.term = UINT64_MAX,
};
SWalSyncInfo syncMeta = {0};
syncMeta.isWeek = -1;
syncMeta.seqNum = UINT64_MAX;
syncMeta.term = UINT64_MAX;
class WalCleanEnv : public ::testing::Test {
protected: