144 bool prioritizeArchive =
true);
158 std::vector<uint32_t>::const_reverse_iterator
lr_iter;
253 #endif // __RESTART_H virtual void do_work()
Definition: restart.cpp:388
char * buffer
Definition: restart.h:152
void notify_cleaned_lsn(lsn_t lsn)
Definition: restart.cpp:671
chkpt_t chkpt
Definition: restart.h:102
Definition: worker_thread.h:12
std::vector< uint32_t > lr_offsets
Definition: restart.h:156
void _redo_log_with_pid(logrec_t &r, PageID page_updated, bool &redone)
Definition: restart.cpp:198
std::vector< uint32_t >::const_reverse_iterator lr_iter
Definition: restart.h:158
void notify_archived_lsn(lsn_t lsn)
Definition: restart.cpp:656
void log_analysis()
Definition: restart.cpp:94
lsn_t get_dirty_page_emlsn(PageID pid) const
Definition: restart.cpp:640
void checkpoint_dirty_pages(chkpt_t &chkpt) const
Definition: restart.cpp:685
size_t buffer_capacity
Definition: restart.h:154
restart_thread_t(const sm_options &options)
Definition: restart.cpp:74
bool take_chkpt
Definition: restart.h:99
PageID get_dirty_page_count() const
Definition: restart.cpp:680
lsn_t clean_lsn
Definition: restart.h:111
Start-up parameters for the storage engine. See OPTIONS.
Definition: sm_options.h:24
bool isInstant()
Definition: restart.h:86
void add_dirty_page(PageID pid, lsn_t lsn)
Definition: restart.cpp:650
Definition: logarchive_scanner.h:42
bool log_based
Definition: restart.h:91
void undo_pass()
Definition: restart.cpp:244
static void dump_page_lsn_chain(std::ostream &o, const PageID &pid, const lsn_t &max_lsn)
Pretty-prints the content of log file to the given stream in a way we can easily debug single-page re...
Definition: restart.cpp:448
ArchiveScan archive_scan
Definition: restart.h:160
Represents a transactional log record.
Definition: logrec.h:143
bool instantRestart
Definition: restart.h:93
uint32_t PageID
Definition: basics.h:45
bool write_elision
Definition: restart.h:97
bool hasLogAnalysisFinished()
Definition: restart.h:69
Log Sequence Number. See Log Sequence Numbers (LSN).
Definition: lsn.h:243
Handle class for pages that may be fixed (i.e., paged in by the main buffer manager, zero::buffer_pool::BufferPool)
Definition: fixable_page_h.h:26
unsigned replayed_count
Definition: restart.h:164
srwlock_t chkpt_mutex
Definition: restart.h:108
void clear_chkpt()
Definition: restart.cpp:694
Definition: restart.h:136
chkpt_t * get_chkpt()
Definition: restart.h:65
bool no_db_mode
Definition: restart.h:95
lsn_t last_lsn
Definition: restart.h:162
bool logAnalysisFinished
Definition: restart.h:104
void redo_log_pass()
Definition: restart.cpp:156
Shore read-write lock:: many-reader/one-writer spin lock.
Definition: latches.h:350
void redo_page_pass()
Definition: restart.cpp:224