103 void latch() noexcept;
137 bool insert_father)
noexcept;
147 size_t rec_size)
noexcept;
157 big_rec_t *big_rec,
size_t rec_size)
noexcept;
uint32_t page_no_t
Page number.
Definition: api0api.h:50
Definition: btr0load.h:51
dberr_t load_root_page(page_no_t last_page_no) noexcept
Set the root page on completion.
Definition: btr0load.cc:1229
dict_index_t * m_index
B-tree index.
Definition: btr0load.h:175
dberr_t insert(dtuple_t *dtuple, size_t level) noexcept
Insert a tuple to a page in a level.
Definition: btr0load.cc:1096
dberr_t page_split(Page_load *page_load, Page_load *next_page_load) noexcept
Split a page.
Definition: btr0load.cc:895
Page_loaders m_page_loaders
Page cursor vector for all level.
Definition: btr0load.h:187
unsigned m_index_online
State of the index.
Definition: btr0load.h:192
dberr_t build(Cursor &cursor) noexcept
Load the btree from the cursor.
Definition: btr0load.cc:1303
void log_free_check() noexcept
Log free check.
Definition: btr0load.cc:985
dberr_t prepare_space(Page_load *&page_load, size_t level, size_t rec_size) noexcept
Prepare space to insert a tuple.
Definition: btr0load.cc:1024
dberr_t finalize_page_loads(dberr_t err, page_no_t &last_page_no) noexcept
Btree page bulk load finish.
Definition: btr0load.cc:1200
void latch() noexcept
Re-latch latch on the rightmost leaf page in the index tree.
Definition: btr0load.cc:1015
uint64_t get_n_recs() noexcept
Public getter function to return number of records inserted.
Definition: btr0load.h:113
dberr_t page_commit(Page_load *page_load, Page_load *next_page_load, bool insert_father) noexcept
Commit(finish) a page.
Definition: btr0load.cc:939
void release() noexcept
Release latch on the rightmost leaf page in the index tree.
Definition: btr0load.cc:1009
std::vector< Page_load *, ut::allocator< Page_load * > > Page_loaders
Definition: btr0load.h:75
dberr_t finish(dberr_t err) noexcept
Btree bulk load finish.
Definition: btr0load.cc:1273
trx_id_t m_trx_id
Transaction id.
Definition: btr0load.h:178
Flush_observer * m_flush_observer
Flush observer.
Definition: btr0load.h:184
uint64_t m_n_recs
Number of records inserted.
Definition: btr0load.h:172
size_t m_root_level
Root page level.
Definition: btr0load.h:181
We use Flush_observer to track flushing of non-redo logged pages in bulk create index(btr0load....
Definition: buf0flu.h:269
The proper function call sequence of Page_load is as below: – Page_load::init – Page_load::insert – P...
Definition: btr0load.cc:54
A utility class which, if inherited from, prevents the descendant class from being copied,...
Definition: ut0class_life_cycle.h:41
dberr_t
Definition: db0err.h:39
static Value err()
Create a Value object that represents an error condition.
Definition: json_binary.cc:910
Definition: gcs_xcom_synode.h:64
This file contains a set of libraries providing overloads for regular dynamic allocation routines whi...
Definition: aligned_alloc.h:48
std::vector< T, ut::allocator< T > > vector
Specialization of vector which uses allocator.
Definition: ut0new.h:2875
Interface to consume from.
Definition: btr0load.h:54
virtual dberr_t fetch(dtuple_t *&dtuple) noexcept=0
Fetch the current row as a tuple.
virtual ~Cursor()=default
Destructor.
virtual dberr_t next() noexcept=0
Move to the next record.
Cursor()=default
Constructor.
virtual bool duplicates_detected() const noexcept=0
Storage format for overflow data in a big record, that is, a clustered index record which needs exter...
Definition: data0data.h:842
Data structure for an index.
Definition: dict0mem.h:1046
Structure for an SQL data tuple of fields (logical record)
Definition: data0data.h:694
ib_id_t trx_id_t
Transaction identifier (DB_TRX_ID, DATA_TRX_ID)
Definition: trx0types.h:138
#define IF_DEBUG(...)
Definition: univ.i:674
Utilities related to class lifecycle.
Dynamic memory allocation routines and custom allocators specifically crafted to support memory instr...