mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 05:52:27 +01:00
Merge perch.ndb.mysql.com:/home/jonas/src/51-telco-gca
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb storage/ndb/src/kernel/blocks/lgman.cpp: Auto merged
This commit is contained in:
commit
f653ed82b0
1 changed files with 19 additions and 0 deletions
|
@ -2918,6 +2918,25 @@ Lgman::stop_run_undo_log(Signal* signal)
|
|||
ptr.p->m_file_pos[TAIL] = tail;
|
||||
|
||||
init_logbuffer_pointers(ptr);
|
||||
|
||||
{
|
||||
Buffer_idx head= ptr.p->m_file_pos[HEAD];
|
||||
Ptr<Undofile> file;
|
||||
m_file_pool.getPtr(file, head.m_ptr_i);
|
||||
if (head.m_idx == file.p->m_file_size - 1)
|
||||
{
|
||||
Local_undofile_list files(m_file_pool, ptr.p->m_files);
|
||||
if(!files.next(file))
|
||||
{
|
||||
jam();
|
||||
files.first(file);
|
||||
}
|
||||
head.m_idx = 0;
|
||||
head.m_ptr_i = file.i;
|
||||
ptr.p->m_file_pos[HEAD] = head;
|
||||
}
|
||||
}
|
||||
|
||||
ptr.p->m_free_file_words = (Uint64)File_formats::UNDO_PAGE_WORDS *
|
||||
(Uint64)compute_free_file_pages(ptr);
|
||||
ptr.p->m_next_reply_ptr_i = ptr.p->m_file_pos[HEAD].m_ptr_i;
|
||||
|
|
Loading…
Reference in a new issue