List:Commits« Previous MessageNext Message »
From:jonas Date:March 13 2007 9:03pm
Subject:bk commit into 5.1 tree (jonas:1.2432) BUG#27102
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of jonas. When jonas does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2007-03-13 21:03:34+01:00, jonas@stripped +1 -0
  ndb - bug#27102
    Make sure head after undo execute does not point to last page of file
    As this will confuse next write to group

  storage/ndb/src/kernel/blocks/lgman.cpp@stripped, 2007-03-13 21:03:32+01:00,
jonas@stripped +19 -0
    Make sure head after undo execute does not point to last page of file
    As this will confuse next write to group

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	jonas
# Host:	perch.ndb.mysql.com
# Root:	/home/jonas/src/51-telco-gca

--- 1.23/storage/ndb/src/kernel/blocks/lgman.cpp	2007-03-13 21:03:39 +01:00
+++ 1.24/storage/ndb/src/kernel/blocks/lgman.cpp	2007-03-13 21:03:39 +01:00
@@ -2924,6 +2924,25 @@
       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;
Thread
bk commit into 5.1 tree (jonas:1.2432) BUG#27102jonas13 Mar