[FEAT MERGE] Backup support AWS S3

Co-authored-by: xuhuleon <xuhuleon@qq.com>
This commit is contained in:
obdev
2024-02-07 19:13:39 +00:00
committed by ob-robot
parent 07bed38c8e
commit 542516e369
68 changed files with 12172 additions and 1123 deletions

View File

@ -12,6 +12,7 @@
#include <gtest/gtest.h>
#include "lib/alloc/ob_malloc_allocator.h"
#include "lib/allocator/ob_malloc.h"
using namespace oceanbase::lib;
using namespace oceanbase::common;
@ -60,6 +61,17 @@ TEST(TestMallocAllocator, idle)
OB_MALLOC_BIG_BLOCK_SIZE));
}
TEST(TestMallocAllocator, ob_malloc_align)
{
void *ptr = ob_malloc_align(1, 4, "test");
ASSERT_TRUE(ptr != NULL);
ASSERT_EQ(0, (int64_t)ptr % 16);
ptr = ob_malloc_align(4096, 4, "test");
ASSERT_TRUE(ptr != NULL);
ASSERT_EQ(0, (int64_t)ptr % 4096);
}
int main(int argc, char *argv[])
{
signal(49, SIG_IGN);