18 #ifndef FOEDUS_STORAGE_MASSTREE_MASSTREE_ADOPT_IMPL_HPP_
19 #define FOEDUS_STORAGE_MASSTREE_MASSTREE_ADOPT_IMPL_HPP_
82 : xct::SysxctFunctor(),
90 uint16_t minipage_index,
91 uint16_t pointer_index);
94 uint16_t minipage_index,
95 uint16_t pointer_index);
101 #endif // FOEDUS_STORAGE_MASSTREE_MASSTREE_ADOPT_IMPL_HPP_
ErrorCode adopt_case_b(uint16_t minipage_index, uint16_t pointer_index)
Adopt(thread::Thread *context, MasstreeIntermediatePage *parent, MasstreePage *old)
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
Represents one thread running on one NUMA core.
MasstreePage *const old_
The old page that was split, whose foster-twins are being adopted.
Definitions of IDs in this package and a few related constant values.
Common base of MasstreeIntermediatePage and MasstreeBorderPage.
MasstreeIntermediatePage *const parent_
The parent page that currently points to the old page.
A functor representing the logic in a system transaction via virtual-function.
ErrorCode adopt_case_a(uint16_t minipage_index, uint16_t pointer_index)
thread::Thread *const context_
Thread context.
Represents one intermediate page in Masstree Storage.
Forward declarations of classes in masstree storage package.
Forward declarations of classes in thread package.
A system transaction to adopt foster twins into an intermediate page.
ErrorCode
Enum of error codes defined in error_code.xmacro.
Per-thread reused work memory for system transactions.
virtual ErrorCode run(xct::SysxctWorkspace *sysxct_workspace) override
Execute the system transaction.