[FEAT MERGE] mds_mvs
Co-authored-by: xuhuleon <xuhuleon@qq.com> Co-authored-by: godyangfight <godyangfight@gmail.com> Co-authored-by: JiahuaChen <garfieldjia@qq.com>
This commit is contained in:
@ -25,6 +25,33 @@
|
||||
#include "storage/multi_data_source/mds_row.h"
|
||||
#include "storage/multi_data_source/mds_unit.h"
|
||||
#include "example_user_helper_define.cpp"
|
||||
#include "storage/tablet/ob_mds_schema_helper.h"
|
||||
namespace oceanbase {
|
||||
namespace storage {
|
||||
namespace mds {
|
||||
void *DefaultAllocator::alloc(const int64_t size) {
|
||||
void *ptr = std::malloc(size);// ob_malloc(size, "MDS");
|
||||
ATOMIC_INC(&alloc_times_);
|
||||
MDS_LOG(DEBUG, "alloc obj", KP(ptr), K(size), K(lbt()));
|
||||
return ptr;
|
||||
}
|
||||
void DefaultAllocator::free(void *ptr) {
|
||||
ATOMIC_INC(&free_times_);
|
||||
MDS_LOG(DEBUG, "free obj", KP(ptr), K(lbt()));
|
||||
std::free(ptr);// ob_free(ptr);
|
||||
}
|
||||
void *MdsAllocator::alloc(const int64_t size) {
|
||||
void *ptr = std::malloc(size);// ob_malloc(size, "MDS");
|
||||
ATOMIC_INC(&alloc_times_);
|
||||
MDS_LOG(DEBUG, "alloc obj", KP(ptr), K(size), K(lbt()));
|
||||
return ptr;
|
||||
}
|
||||
void MdsAllocator::free(void *ptr) {
|
||||
ATOMIC_INC(&free_times_);
|
||||
MDS_LOG(DEBUG, "free obj", KP(ptr), K(lbt()));
|
||||
std::free(ptr);// ob_free(ptr);
|
||||
}
|
||||
}}}
|
||||
namespace oceanbase {
|
||||
namespace unittest {
|
||||
|
||||
@ -36,7 +63,7 @@ using namespace mds;
|
||||
class TestMdsUnit: public ::testing::Test
|
||||
{
|
||||
public:
|
||||
TestMdsUnit() {};
|
||||
TestMdsUnit() { ObMdsSchemaHelper::get_instance().init(); };
|
||||
virtual ~TestMdsUnit() {};
|
||||
virtual void SetUp() {
|
||||
};
|
||||
|
Reference in New Issue
Block a user