reformat source code

according to code styles, 'AccessModifierOffset' should be -2.
This commit is contained in:
gm
2021-06-16 15:48:42 +08:00
committed by MizuhaHimuraki
parent 8c4a2f26a6
commit 4a92b6d7df
3314 changed files with 23131 additions and 23401 deletions

View File

@ -28,7 +28,7 @@ class ObMallocAllocator : public common::ObIAllocator {
friend class ObMemoryCutter;
static const uint64_t PRESERVED_TENANT_COUNT = 10000;
public:
public:
ObMallocAllocator();
virtual ~ObMallocAllocator();
@ -67,14 +67,14 @@ class ObMallocAllocator : public common::ObIAllocator {
const uint64_t tenant_id, const uint64_t ctx_id, const int64_t size, const bool reserve = false);
int get_chunks(AChunk** chunks, int cap, int& cnt);
private:
private:
using InvokeFunc = std::function<int(ObTenantMemoryMgr*)>;
static int with_resource_handle_invoke(uint64_t tenant_id, InvokeFunc func);
private:
private:
DISALLOW_COPY_AND_ASSIGN(ObMallocAllocator);
private:
private:
obsys::CRWLock locks_[PRESERVED_TENANT_COUNT];
ObTenantCtxAllocator* allocators_[PRESERVED_TENANT_COUNT][common::ObCtxIds::MAX_CTX_ID];
int64_t reserved_;