You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
feat(): propagate long strings SP type change
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
#include <atomic>
|
||||
#include <cstddef>
|
||||
#include "countingallocator.h"
|
||||
#include "rowgroup.h"
|
||||
|
||||
using namespace allocators;
|
||||
|
||||
@ -108,6 +109,13 @@ TEST_F(CountingAllocatorTest, AllocateSharedUsesAllocator)
|
||||
|
||||
ptr.reset();
|
||||
EXPECT_EQ(allocatedMemory.load(), MemoryAllowance);
|
||||
|
||||
size_t allocSize = 16ULL * rowgroup::rgCommonSize;
|
||||
auto buf = boost::allocate_shared<rowgroup::RGDataBufType>(allocator, allocSize);
|
||||
EXPECT_LE(allocatedMemory.load(), MemoryAllowance - allocSize);
|
||||
|
||||
buf.reset();
|
||||
EXPECT_EQ(allocatedMemory.load(), MemoryAllowance);
|
||||
}
|
||||
|
||||
// Test 5: Thread Safety - Concurrent Allocations and Deallocations
|
||||
|
Reference in New Issue
Block a user