MiniOB
1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
src
observer
common
global_context.h
1
/* Copyright (c) 2021 OceanBase and/or its affiliates. All rights reserved.
2
miniob is licensed under Mulan PSL v2.
3
You can use this software according to the terms and conditions of the Mulan PSL v2.
4
You may obtain a copy of Mulan PSL v2 at:
5
http://license.coscl.org.cn/MulanPSL2
6
THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
7
EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
8
MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
9
See the Mulan PSL v2 for more details. */
10
11
//
12
// Created by Wangyunlai on 2023/5/29.
13
//
14
15
#pragma once
16
17
class
BufferPoolManager
;
18
class
DefaultHandler
;
19
class
TrxKit
;
20
25
struct
GlobalContext
26
{
27
BufferPoolManager
*buffer_pool_manager_ =
nullptr
;
28
DefaultHandler
*handler_ =
nullptr
;
29
TrxKit
*trx_kit_ =
nullptr
;
30
31
static
GlobalContext
&instance();
32
};
33
34
#define GCTX GlobalContext::instance()
BufferPoolManager
BufferPool的管理类
Definition:
disk_buffer_pool.h:310
DefaultHandler
Definition:
default_handler.h:23
TrxKit
事务管理器
Definition:
trx.h:105
GlobalContext
放一些全局对象
Definition:
global_context.h:26
制作者
1.9.5