Class log_postpone_cache¶
ClassList > log_postpone_cache
#include <log_postpone_cache.hpp>
Public Functions¶
| Type | Name |
|---|---|
| void | add_lsa (const log_lsa & lsa) |
| void | add_redo_data (const log_prior_node & node) |
| void | copy_to (log_postpone_cache & dest) const |
| bool | do_postpone (cubthread::entry & thread_ref, const log_lsa & start_postpone_lsa) |
| log_postpone_cache () |
|
| log_postpone_cache (log_postpone_cache && other) = delete |
|
| log_postpone_cache (const log_postpone_cache & other) = delete |
|
| log_postpone_cache & | operator= (log_postpone_cache && other) = delete |
| log_postpone_cache & | operator= (const log_postpone_cache & other) = delete |
| void | reset () |
| void | reset_from (std::size_t cursor) |
| ~log_postpone_cache () = default |
Detailed Description¶
Caches postpones to avoid reading them from log after commit top operation with postpone. Otherwise, log critical section may be required which will slow the access on merged index nodes
Public Functions Documentation¶
function add_lsa¶
Save LSA of postpone operations
Parameters:
lsa- log postpone LSA
Returns:
void
NOTE: This saves LSA after a new entry and its redo data have already been added. They couldn't both be added in the same step.
function add_redo_data¶
Cache redo data for log postpone
Parameters:
node- log prior node
Returns:
void
function copy_to¶
function do_postpone¶
bool log_postpone_cache::do_postpone (
cubthread::entry & thread_ref,
const log_lsa & start_postpone_lsa
)
Do postpone from cached postpone entries.
Parameters:
thread_ref- thread entrystart_postpone_lsa- start postpone LSA
Returns:
- true if postpone was run from cached entries, false otherwise
function log_postpone_cache [1/3]¶
function log_postpone_cache [2/3]¶
function log_postpone_cache [3/3]¶
function operator=¶
function operator=¶
function reset¶
function reset_from¶
function ~log_postpone_cache¶
The documentation for this class was generated from the following file cubrid/src/transaction/log_postpone_cache.hpp