31 bool intended_for_write) {
uint16_t SlotIndex
Index of a record in a (border) page.
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
ErrorCode on_record_read(bool intended_for_write, RwLockableXctId *tid_address, XctId *observed_xid, ReadXctAccess **read_set_address, bool no_readset_if_moved=false, bool no_readset_if_next_layer=false)
The general logic invoked for every record read.
Represents a user transaction.
Represents one border page in Masstree Storage.
bool is_valid() const __attribute__((always_inline))
xct::ReadXctAccess * readset_
If this method took a read-set on the returned record, points to the corresponding read-set...
bool is_next_layer() const __attribute__((always_inline))
#define CHECK_ERROR_CODE(x)
This macro calls x and checks its returned error code.
SlotIndex index_
Index of the record in the page.
bool is_being_written() const __attribute__((always_inline))
xct::RwLockableXctId * get_owner_id(SlotIndex index) __attribute__((always_inline))
MasstreeBorderPage * page_
The border page containing the record.
bool is_moved() const __attribute__((always_inline))
#define ASSERT_ND(x)
A warning-free wrapper macro of assert() that has no performance effect in release mode even when 'x'...
xct::XctId observed_
TID as of locate_record() identifying the record.
ErrorCode
Enum of error codes defined in error_code.xmacro.
ErrorCode populate_logical(xct::Xct *cur_xct, MasstreeBorderPage *page, SlotIndex index, bool intended_for_write)
Populates the result with XID and possibly readset.