replace parity checksum in the log header with xxhash16

This commit is contained in:
HaHaJeff
2024-07-19 07:37:25 +00:00
committed by ob-robot
parent e36aed9b9b
commit 18125dd373
12 changed files with 644 additions and 79 deletions

View File

@ -15,9 +15,13 @@
#include "logservice/palf/log_define.h"
#define private public
#include "logservice/palf/log_meta.h"
#include "logservice/palf/log_meta_entry_header.h"
#undef private
#include <gtest/gtest.h>
#include <vector>
#include <thread>
char **global_argv = nullptr;
namespace oceanbase
{
namespace unittest
@ -25,11 +29,7 @@ namespace unittest
using namespace common;
using namespace palf;
TEST(TestLogMeta, test_log_meta)
{
int64_t proposal_id = INVALID_PROPOSAL_ID;
proposal_id = 1;
ObAddr addr(ObAddr::IPV4, "127.0.0.1", 4096);
TEST(TestLogMeta, test_log_meta) { int64_t proposal_id = INVALID_PROPOSAL_ID; proposal_id = 1; ObAddr addr(ObAddr::IPV4, "127.0.0.1", 4096);
// Prepare meta
LogPrepareMeta log_prepare_meta1;