List:Internals« Previous MessageNext Message »
From:jani Date:June 7 2005 10:45am
Subject:bk commit into 5.0 tree (jani:1.1929)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of jani. When jani 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
  1.1929 05/06/07 11:45:28 jani@stripped +1 -0
  Moved tc_log_page_waits outside HAVE_MMAP,
  because it's used also outside.
  

  sql/log.cc
    1.163 05/06/07 11:45:23 jani@stripped +7 -3
    Moved tc_log_page_waits outside HAVE_MMAP,
    because it's used also outside.
    

# 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:	jani
# Host:	a193-229-222-105.elisa-laajakaista.fi
# Root:	/home/my/bk/mysql-5.0

--- 1.162/sql/log.cc	2005-05-26 20:51:15 +03:00
+++ 1.163/sql/log.cc	2005-06-07 11:45:23 +03:00
@@ -2370,7 +2370,7 @@
   DBUG_VOID_RETURN;
 }
 
-#ifdef HAVE_MMAP
+
 /********* transaction coordinator log for 2pc - mmap() based solution *******/
 
 /*
@@ -2408,13 +2408,17 @@
   new xid is added into it. Removing a xid from a page does not make it
   dirty - we don't sync removals to disk.
 */
+
+ulong tc_log_page_waits= 0;
+
+#ifdef HAVE_MMAP
+
 #define TC_LOG_HEADER_SIZE (sizeof(tc_log_magic)+1)
 
 static const char tc_log_magic[]={(char) 254, 0x23, 0x05, 0x74};
 
 ulong opt_tc_log_size= TC_LOG_MIN_SIZE;
-ulong tc_log_max_pages_used=0, tc_log_page_size=0,
-      tc_log_page_waits=0, tc_log_cur_pages_used=0;
+ulong tc_log_max_pages_used=0, tc_log_page_size=0, tc_log_cur_pages_used=0;
 
 int TC_LOG_MMAP::open(const char *opt_name)
 {
Thread
bk commit into 5.0 tree (jani:1.1929)jani7 Jun