]> git.pld-linux.org Git - packages/mysql.git/blobdiff - mysql-userstatv2.patch
- up to 5.0.88
[packages/mysql.git] / mysql-userstatv2.patch
index c7256d5bd43027aa4c761969607994def5340527..fc421b0f2920115dd84234b471494b0995eb6f06 100644 (file)
@@ -1,7 +1,7 @@
-diff -r 0bb04c127c7e BUILD/Makefile.in
---- a/BUILD/Makefile.in        Fri Sep 12 01:25:08 2008 -0700
-+++ b/BUILD/Makefile.in        Fri Sep 12 01:26:21 2008 -0700
-@@ -167,6 +167,7 @@
+diff -r 592f6c3641ba BUILD/Makefile.in
+--- a/BUILD/Makefile.in        Wed Jul 29 13:33:34 2009 -0700
++++ b/BUILD/Makefile.in        Wed Jul 29 13:34:11 2009 -0700
+@@ -146,6 +146,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -9,10 +9,10 @@ diff -r 0bb04c127c7e BUILD/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e Docs/Makefile.in
---- a/Docs/Makefile.in Fri Sep 12 01:25:08 2008 -0700
-+++ b/Docs/Makefile.in Fri Sep 12 01:26:21 2008 -0700
-@@ -165,6 +165,7 @@
+diff -r 592f6c3641ba Docs/Makefile.in
+--- a/Docs/Makefile.in Wed Jul 29 13:33:34 2009 -0700
++++ b/Docs/Makefile.in Wed Jul 29 13:34:11 2009 -0700
+@@ -144,6 +144,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -20,10 +20,10 @@ diff -r 0bb04c127c7e Docs/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e Makefile.in
---- a/Makefile.in      Fri Sep 12 01:25:08 2008 -0700
-+++ b/Makefile.in      Fri Sep 12 01:26:21 2008 -0700
-@@ -189,6 +189,7 @@
+diff -r 592f6c3641ba Makefile.in
+--- a/Makefile.in      Wed Jul 29 13:33:34 2009 -0700
++++ b/Makefile.in      Wed Jul 29 13:34:11 2009 -0700
+@@ -171,6 +171,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -31,10 +31,10 @@ diff -r 0bb04c127c7e Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e SSL/Makefile.in
---- a/SSL/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/SSL/Makefile.in  Fri Sep 12 01:26:21 2008 -0700
-@@ -165,6 +165,7 @@
+diff -r 592f6c3641ba SSL/Makefile.in
+--- a/SSL/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/SSL/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -144,6 +144,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -42,80 +42,10 @@ diff -r 0bb04c127c7e SSL/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e aclocal.m4
---- a/aclocal.m4       Fri Sep 12 01:25:08 2008 -0700
-+++ b/aclocal.m4       Fri Sep 12 01:26:21 2008 -0700
-@@ -1597,7 +1597,7 @@
-   # Append ld.so.conf contents to the search path
-   if test -f /etc/ld.so.conf; then
--    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,  ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
-+    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
-     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
-   fi
-@@ -4305,6 +4305,9 @@
- # Is the compiler the GNU C compiler?
- with_gcc=$_LT_AC_TAGVAR(GCC, $1)
-+gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
-+gcc_ver=\`gcc -dumpversion\`
-+
- # An ERE matcher.
- EGREP=$lt_EGREP
-@@ -4438,11 +4441,11 @@
- # Dependencies to place before the objects being linked to create a
- # shared library.
--predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
-+predep_objects=\`echo $lt_[]_LT_AC_TAGVAR(predep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
- # Dependencies to place after the objects being linked to create a
- # shared library.
--postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
-+postdep_objects=\`echo $lt_[]_LT_AC_TAGVAR(postdep_objects, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
- # Dependencies to place before the objects being linked to create a
- # shared library.
-@@ -4454,7 +4457,7 @@
- # The library search path used internally by the compiler when linking
- # a shared library.
--compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
-+compiler_lib_search_path=\`echo $lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
- # Method to check whether dependent libraries are shared objects.
- deplibs_check_method=$lt_deplibs_check_method
-@@ -4534,7 +4537,7 @@
- link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
- # Compile-time system search path for libraries
--sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
-+sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
- # Run-time system search path for libraries
- sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
-@@ -6370,6 +6373,7 @@
-     done
-   done
- done
-+IFS=$as_save_IFS
- lt_ac_max=0
- lt_ac_count=0
- # Add /usr/xpg4/bin/sed as it is typically found on Solaris
-@@ -6402,6 +6406,7 @@
- done
- ])
- SED=$lt_cv_path_SED
-+AC_SUBST([SED])
- AC_MSG_RESULT([$SED])
- ])
-diff -r 0bb04c127c7e client/Makefile.in
---- a/client/Makefile.in       Fri Sep 12 01:25:08 2008 -0700
-+++ b/client/Makefile.in       Fri Sep 12 01:26:21 2008 -0700
-@@ -266,6 +266,7 @@
+diff -r 592f6c3641ba client/Makefile.in
+--- a/client/Makefile.in       Wed Jul 29 13:33:34 2009 -0700
++++ b/client/Makefile.in       Wed Jul 29 13:34:11 2009 -0700
+@@ -247,6 +247,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -123,10 +53,10 @@ diff -r 0bb04c127c7e client/Makefile.in
  LIBS = @CLIENT_LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e cmd-line-utils/Makefile.in
---- a/cmd-line-utils/Makefile.in       Fri Sep 12 01:25:08 2008 -0700
-+++ b/cmd-line-utils/Makefile.in       Fri Sep 12 01:26:21 2008 -0700
-@@ -175,6 +175,7 @@
+diff -r 592f6c3641ba cmd-line-utils/Makefile.in
+--- a/cmd-line-utils/Makefile.in       Wed Jul 29 13:33:34 2009 -0700
++++ b/cmd-line-utils/Makefile.in       Wed Jul 29 13:34:11 2009 -0700
+@@ -157,6 +157,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -134,10 +64,10 @@ diff -r 0bb04c127c7e cmd-line-utils/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e cmd-line-utils/libedit/Makefile.in
---- a/cmd-line-utils/libedit/Makefile.in       Fri Sep 12 01:25:08 2008 -0700
-+++ b/cmd-line-utils/libedit/Makefile.in       Fri Sep 12 01:26:21 2008 -0700
-@@ -195,6 +195,7 @@
+diff -r 592f6c3641ba cmd-line-utils/libedit/Makefile.in
+--- a/cmd-line-utils/libedit/Makefile.in       Wed Jul 29 13:33:34 2009 -0700
++++ b/cmd-line-utils/libedit/Makefile.in       Wed Jul 29 13:34:11 2009 -0700
+@@ -166,6 +166,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -145,10 +75,10 @@ diff -r 0bb04c127c7e cmd-line-utils/libedit/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e cmd-line-utils/readline/Makefile.in
---- a/cmd-line-utils/readline/Makefile.in      Fri Sep 12 01:25:08 2008 -0700
-+++ b/cmd-line-utils/readline/Makefile.in      Fri Sep 12 01:26:21 2008 -0700
-@@ -193,6 +193,7 @@
+diff -r 592f6c3641ba cmd-line-utils/readline/Makefile.in
+--- a/cmd-line-utils/readline/Makefile.in      Wed Jul 29 13:33:34 2009 -0700
++++ b/cmd-line-utils/readline/Makefile.in      Wed Jul 29 13:34:11 2009 -0700
+@@ -173,6 +173,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -156,132 +86,11 @@ diff -r 0bb04c127c7e cmd-line-utils/readline/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e configure
---- a/configure        Fri Sep 12 01:25:08 2008 -0700
-+++ b/configure        Fri Sep 12 01:26:21 2008 -0700
-@@ -477,7 +477,7 @@
- #endif"
- ac_subdirs_all="$ac_subdirs_all innobase"
--ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MYSQL_NO_DASH_VERSION MYSQL_BASE_VERSION MYSQL_VERSION_ID MYSQL_PREVIOUS_BASE_VERSION PROTOCOL_VERSION DOT_FRM_VERSION SHARED_LIB_MAJOR_VERSION SHARED_LIB_VERSION NDB_SHARED_LIB_MAJOR_VERSION NDB_SHARED_LIB_VERSION AVAILABLE_LANGUAGES NDB_VERSION_MAJOR NDB_VERSION_MINOR NDB_VERSION_BUILD NDB_VERSION_STATUS SYSTEM_TYPE MACHINE_TYPE CONF_COMMAND SAVE_CC SAVE_CXX SAVE_ASFLAGS SAVE_CFLAGS SAVE_CXXFLAGS SAVE_LDFLAGS SAVE_CXXLDFLAGS CXXLDFLAGS AR RANLIB DARWIN_MWCC_TRUE DARWIN_MWCC_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP CC_VERSION CXX_VERSION AS ac_ct_RANLIB EGREP LN_S ECHO ac_ct_AR CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL NM YACC PDFMANUAL DVIS uname_prog ASFLAGS LD ARFLAGS LD_VERSION_SCRIPT MYSQLD_DEFAULT_SWITCHES TARGET_LINUX LN LN_CP_F MV RM CP SED CMP CHMOD HOSTNAME TAR PERL PERL5 DOXYGEN PDFLATEX MAKEINDEX ICHECK PS FIND_PROC KILL CHECK_PID CCAS CCASFLAGS NOINST_LDFLAGS MYSQL_SERVER_SUFFIX ASSEMBLER_x86_TRUE ASSEMBLER_x86_FALSE ASSEMBLER_sparc32_TRUE ASSEMBLER_sparc32_FALSE ASSEMBLER_sparc64_TRUE ASSEMBLER_sparc64_FALSE ASSEMBLER_TRUE ASSEMBLER_FALSE MYSQL_UNIX_ADDR MYSQL_TCP_PORT MYSQL_TCP_PORT_DEFAULT MYSQLD_USER GETCONF ac_ct_GETCONF zlib_dir ZLIB_LIBS ZLIB_DEPS ZLIB_INCLUDES WRAPLIBS pstack_dirs pstack_libs COMPILE_PSTACK_TRUE COMPILE_PSTACK_FALSE LIBDL MYSQLD_EXTRA_LDFLAGS CLIENT_EXTRA_LDFLAGS MYSQLD_EXTRA_LIBS LIB_EXTRA_CCFLAGS LM_CFLAGS COMPILATION_COMMENT ALLOCA MAKE_SHELL TERMCAP_LIB LIBEDIT_LOBJECTS tools_dirs openssl_libs openssl_includes yassl_taocrypt_extra_cxxflags yassl_h_ln_cmd yassl_libs yassl_dir HAVE_YASSL_TRUE HAVE_YASSL_FALSE libmysqld_dirs linked_libmysqld_targets docs_dirs extra_docs bench_dirs readline_dir readline_topdir readline_basedir readline_link readline_h_ln_cmd bdb_includes bdb_libs bdb_libs_with_path innodb_includes innodb_libs innodb_system_libs NDB_SCI_INCLUDES NDB_SCI_LIBS NDB_LD_VERSION_SCRIPT HAVE_NDBCLUSTER_DB_TRUE HAVE_NDBCLUSTER_DB_FALSE ndbcluster_includes ndbcluster_libs ndbcluster_system_libs ndb_mgmclient_libs man_dirs man1_files man8_files CLIENT_LIBS NON_THREADED_LIBS STATIC_NSS_FLAGS sql_client_dirs linked_client_targets netware_dir linked_netware_sources HAVE_NETWARE_TRUE HAVE_NETWARE_FALSE THREAD_LOBJECTS subdirs sql_server_dirs thread_dirs server_scripts sql_union_dirs GXX NDB_DEFS ndb_cxxflags_fix ndb_port ndb_transporter_opt_objs ndb_bin_am_ldflags ndb_opt_subdirs NDB_SIZEOF_CHARP NDB_SIZEOF_CHAR NDB_SIZEOF_SHORT NDB_SIZEOF_INT NDB_SIZEOF_LONG NDB_SIZEOF_LONG_LONG MAKE_BINARY_DISTRIBUTION_OPTIONS LIBOBJS LTLIBOBJS'
-+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MYSQL_NO_DASH_VERSION MYSQL_BASE_VERSION MYSQL_VERSION_ID MYSQL_PREVIOUS_BASE_VERSION PROTOCOL_VERSION DOT_FRM_VERSION SHARED_LIB_MAJOR_VERSION SHARED_LIB_VERSION NDB_SHARED_LIB_MAJOR_VERSION NDB_SHARED_LIB_VERSION AVAILABLE_LANGUAGES NDB_VERSION_MAJOR NDB_VERSION_MINOR NDB_VERSION_BUILD NDB_VERSION_STATUS SYSTEM_TYPE MACHINE_TYPE CONF_COMMAND SAVE_CC SAVE_CXX SAVE_ASFLAGS SAVE_CFLAGS SAVE_CXXFLAGS SAVE_LDFLAGS SAVE_CXXLDFLAGS CXXLDFLAGS AR RANLIB DARWIN_MWCC_TRUE DARWIN_MWCC_FALSE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP CC_VERSION CXX_VERSION AS ac_ct_RANLIB SED EGREP LN_S ECHO ac_ct_AR CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL NM YACC PDFMANUAL DVIS uname_prog ASFLAGS LD ARFLAGS LD_VERSION_SCRIPT MYSQLD_DEFAULT_SWITCHES TARGET_LINUX LN LN_CP_F MV RM CP CMP CHMOD HOSTNAME TAR PERL PERL5 DOXYGEN PDFLATEX MAKEINDEX ICHECK PS FIND_PROC KILL CHECK_PID CCAS CCASFLAGS NOINST_LDFLAGS MYSQL_SERVER_SUFFIX ASSEMBLER_x86_TRUE ASSEMBLER_x86_FALSE ASSEMBLER_sparc32_TRUE ASSEMBLER_sparc32_FALSE ASSEMBLER_sparc64_TRUE ASSEMBLER_sparc64_FALSE ASSEMBLER_TRUE ASSEMBLER_FALSE MYSQL_UNIX_ADDR MYSQL_TCP_PORT MYSQL_TCP_PORT_DEFAULT MYSQLD_USER GETCONF ac_ct_GETCONF zlib_dir ZLIB_LIBS ZLIB_DEPS ZLIB_INCLUDES WRAPLIBS pstack_dirs pstack_libs COMPILE_PSTACK_TRUE COMPILE_PSTACK_FALSE LIBDL MYSQLD_EXTRA_LDFLAGS CLIENT_EXTRA_LDFLAGS MYSQLD_EXTRA_LIBS LIB_EXTRA_CCFLAGS LM_CFLAGS COMPILATION_COMMENT ALLOCA MAKE_SHELL TERMCAP_LIB LIBEDIT_LOBJECTS LIBRT tools_dirs openssl_libs openssl_includes yassl_taocrypt_extra_cxxflags yassl_h_ln_cmd yassl_libs yassl_dir HAVE_YASSL_TRUE HAVE_YASSL_FALSE libmysqld_dirs linked_libmysqld_targets docs_dirs extra_docs bench_dirs readline_dir readline_topdir readline_basedir readline_link readline_h_ln_cmd bdb_includes bdb_libs bdb_libs_with_path innodb_includes innodb_libs innodb_system_libs NDB_SCI_INCLUDES NDB_SCI_LIBS NDB_LD_VERSION_SCRIPT HAVE_NDBCLUSTER_DB_TRUE HAVE_NDBCLUSTER_DB_FALSE ndbcluster_includes ndbcluster_libs ndbcluster_system_libs ndb_mgmclient_libs man_dirs man1_files man8_files CLIENT_LIBS NON_THREADED_LIBS STATIC_NSS_FLAGS sql_client_dirs linked_client_targets netware_dir linked_netware_sources HAVE_NETWARE_TRUE HAVE_NETWARE_FALSE THREAD_LOBJECTS subdirs sql_server_dirs thread_dirs server_scripts sql_union_dirs GXX NDB_DEFS ndb_cxxflags_fix ndb_port ndb_transporter_opt_objs ndb_bin_am_ldflags ndb_opt_subdirs NDB_SIZEOF_CHARP NDB_SIZEOF_CHAR NDB_SIZEOF_SHORT NDB_SIZEOF_INT NDB_SIZEOF_LONG NDB_SIZEOF_LONG_LONG MAKE_BINARY_DISTRIBUTION_OPTIONS LIBOBJS LTLIBOBJS'
- ac_subst_files=''
- # Initialize some variables set by options.
-@@ -38228,7 +38228,91 @@
-       # We also disable for SCO for the time being, the headers for the
-       # thread library we use conflicts with other headers.
-     ;;
-- *)
-+*)
-+   # most systems require the program be linked with librt library to use
-+   # the function clock_gettime
-+   my_save_LIBS="$LIBS"
-+   LIBS=""
-+
-+echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5
-+echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6
-+if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then
-+  echo $ECHO_N "(cached) $ECHO_C" >&6
-+else
-+  ac_check_lib_save_LIBS=$LIBS
-+LIBS="-lrt  $LIBS"
-+cat >conftest.$ac_ext <<_ACEOF
-+/* confdefs.h.  */
-+_ACEOF
-+cat confdefs.h >>conftest.$ac_ext
-+cat >>conftest.$ac_ext <<_ACEOF
-+/* end confdefs.h.  */
-+
-+/* Override any gcc2 internal prototype to avoid an error.  */
-+#ifdef __cplusplus
-+extern "C"
-+#endif
-+/* We use char because int might match the return type of a gcc2
-+   builtin and then its argument prototype would still apply.  */
-+char clock_gettime ();
-+int
-+main ()
-+{
-+clock_gettime ();
-+  ;
-+  return 0;
-+}
-+_ACEOF
-+rm -f conftest.$ac_objext conftest$ac_exeext
-+if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
-+  (eval $ac_link) 2>conftest.er1
-+  ac_status=$?
-+  grep -v '^ *+' conftest.er1 >conftest.err
-+  rm -f conftest.er1
-+  cat conftest.err >&5
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); } &&
-+       { ac_try='test -z "$ac_c_werror_flag"
-+                       || test ! -s conftest.err'
-+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-+  (eval $ac_try) 2>&5
-+  ac_status=$?
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); }; } &&
-+       { ac_try='test -s conftest$ac_exeext'
-+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
-+  (eval $ac_try) 2>&5
-+  ac_status=$?
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); }; }; then
-+  ac_cv_lib_rt_clock_gettime=yes
-+else
-+  echo "$as_me: failed program was:" >&5
-+sed 's/^/| /' conftest.$ac_ext >&5
-+
-+ac_cv_lib_rt_clock_gettime=no
-+fi
-+rm -f conftest.err conftest.$ac_objext \
-+      conftest$ac_exeext conftest.$ac_ext
-+LIBS=$ac_check_lib_save_LIBS
-+fi
-+echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5
-+echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6
-+if test $ac_cv_lib_rt_clock_gettime = yes; then
-+  cat >>confdefs.h <<_ACEOF
-+#define HAVE_LIBRT 1
-+_ACEOF
-+
-+  LIBS="-lrt $LIBS"
-+
-+fi
-+
-+   LIBRT=$LIBS
-+   LIBS="$my_save_LIBS"
-+
-+
-+   LIBS="$LIBS $LIBRT"
-+
- for ac_func in clock_gettime
- do
- as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
-@@ -41636,7 +41720,7 @@
- fi
--CLIENT_LIBS="$NON_THREADED_LIBS $openssl_libs $ZLIB_LIBS $STATIC_NSS_FLAGS"
-+CLIENT_LIBS="$NON_THREADED_LIBS $openssl_libs $ZLIB_LIBS $STATIC_NSS_FLAGS $LIBRT"
-@@ -42933,6 +43017,7 @@
- s,@MAKE_SHELL@,$MAKE_SHELL,;t t
- s,@TERMCAP_LIB@,$TERMCAP_LIB,;t t
- s,@LIBEDIT_LOBJECTS@,$LIBEDIT_LOBJECTS,;t t
-+s,@LIBRT@,$LIBRT,;t t
- s,@tools_dirs@,$tools_dirs,;t t
- s,@openssl_libs@,$openssl_libs,;t t
- s,@openssl_includes@,$openssl_includes,;t t
-diff -r 0bb04c127c7e configure.in
---- a/configure.in     Fri Sep 12 01:25:08 2008 -0700
-+++ b/configure.in     Fri Sep 12 01:26:21 2008 -0700
-@@ -2090,7 +2090,18 @@
+diff -r 592f6c3641ba configure
+diff -r 592f6c3641ba configure.in
+--- a/configure.in     Wed Jul 29 13:33:34 2009 -0700
++++ b/configure.in     Wed Jul 29 13:34:11 2009 -0700
+@@ -2136,7 +2136,18 @@
        # We also disable for SCO for the time being, the headers for the
        # thread library we use conflicts with other headers.
      ;;
@@ -301,7 +110,7 @@ diff -r 0bb04c127c7e configure.in
      ;;
  esac
  
-@@ -2705,7 +2716,7 @@
+@@ -2772,7 +2783,7 @@
    AC_DEFINE([THREAD_SAFE_CLIENT], [1], [Should be client be thread safe])
  fi
  
@@ -310,10 +119,10 @@ diff -r 0bb04c127c7e configure.in
  
  AC_SUBST(CLIENT_LIBS)
  AC_SUBST(NON_THREADED_LIBS)
-diff -r 0bb04c127c7e dbug/Makefile.in
---- a/dbug/Makefile.in Fri Sep 12 01:25:08 2008 -0700
-+++ b/dbug/Makefile.in Fri Sep 12 01:26:21 2008 -0700
-@@ -212,6 +212,7 @@
+diff -r 592f6c3641ba dbug/Makefile.in
+--- a/dbug/Makefile.in Wed Jul 29 13:33:34 2009 -0700
++++ b/dbug/Makefile.in Wed Jul 29 13:34:11 2009 -0700
+@@ -192,6 +192,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -321,10 +130,10 @@ diff -r 0bb04c127c7e dbug/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e extra/Makefile.in
---- a/extra/Makefile.in        Fri Sep 12 01:25:08 2008 -0700
-+++ b/extra/Makefile.in        Fri Sep 12 01:26:21 2008 -0700
-@@ -254,6 +254,7 @@
+diff -r 592f6c3641ba extra/Makefile.in
+--- a/extra/Makefile.in        Wed Jul 29 13:33:34 2009 -0700
++++ b/extra/Makefile.in        Wed Jul 29 13:34:11 2009 -0700
+@@ -240,6 +240,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -332,10 +141,10 @@ diff -r 0bb04c127c7e extra/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e extra/yassl/Makefile.in
---- a/extra/yassl/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/extra/yassl/Makefile.in  Fri Sep 12 01:26:21 2008 -0700
-@@ -160,6 +160,7 @@
+diff -r 592f6c3641ba extra/yassl/Makefile.in
+--- a/extra/yassl/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/extra/yassl/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -142,6 +142,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -343,10 +152,10 @@ diff -r 0bb04c127c7e extra/yassl/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e extra/yassl/src/Makefile.in
---- a/extra/yassl/src/Makefile.in      Fri Sep 12 01:25:08 2008 -0700
-+++ b/extra/yassl/src/Makefile.in      Fri Sep 12 01:26:21 2008 -0700
-@@ -171,6 +171,7 @@
+diff -r 592f6c3641ba extra/yassl/src/Makefile.in
+--- a/extra/yassl/src/Makefile.in      Wed Jul 29 13:33:34 2009 -0700
++++ b/extra/yassl/src/Makefile.in      Wed Jul 29 13:34:11 2009 -0700
+@@ -151,6 +151,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -354,10 +163,10 @@ diff -r 0bb04c127c7e extra/yassl/src/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e extra/yassl/taocrypt/Makefile.in
---- a/extra/yassl/taocrypt/Makefile.in Fri Sep 12 01:25:08 2008 -0700
-+++ b/extra/yassl/taocrypt/Makefile.in Fri Sep 12 01:26:21 2008 -0700
-@@ -160,6 +160,7 @@
+diff -r 592f6c3641ba extra/yassl/taocrypt/Makefile.in
+--- a/extra/yassl/taocrypt/Makefile.in Wed Jul 29 13:33:34 2009 -0700
++++ b/extra/yassl/taocrypt/Makefile.in Wed Jul 29 13:34:11 2009 -0700
+@@ -142,6 +142,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -365,10 +174,10 @@ diff -r 0bb04c127c7e extra/yassl/taocrypt/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e extra/yassl/taocrypt/benchmark/Makefile.in
---- a/extra/yassl/taocrypt/benchmark/Makefile.in       Fri Sep 12 01:25:08 2008 -0700
-+++ b/extra/yassl/taocrypt/benchmark/Makefile.in       Fri Sep 12 01:26:21 2008 -0700
-@@ -170,6 +170,7 @@
+diff -r 592f6c3641ba extra/yassl/taocrypt/benchmark/Makefile.in
+--- a/extra/yassl/taocrypt/benchmark/Makefile.in       Wed Jul 29 13:33:34 2009 -0700
++++ b/extra/yassl/taocrypt/benchmark/Makefile.in       Wed Jul 29 13:34:11 2009 -0700
+@@ -153,6 +153,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -376,10 +185,10 @@ diff -r 0bb04c127c7e extra/yassl/taocrypt/benchmark/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e extra/yassl/taocrypt/src/Makefile.in
---- a/extra/yassl/taocrypt/src/Makefile.in     Fri Sep 12 01:25:08 2008 -0700
-+++ b/extra/yassl/taocrypt/src/Makefile.in     Fri Sep 12 01:26:21 2008 -0700
-@@ -180,6 +180,7 @@
+diff -r 592f6c3641ba extra/yassl/taocrypt/src/Makefile.in
+--- a/extra/yassl/taocrypt/src/Makefile.in     Wed Jul 29 13:33:34 2009 -0700
++++ b/extra/yassl/taocrypt/src/Makefile.in     Wed Jul 29 13:34:11 2009 -0700
+@@ -164,6 +164,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -387,10 +196,10 @@ diff -r 0bb04c127c7e extra/yassl/taocrypt/src/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e extra/yassl/taocrypt/test/Makefile.in
---- a/extra/yassl/taocrypt/test/Makefile.in    Fri Sep 12 01:25:08 2008 -0700
-+++ b/extra/yassl/taocrypt/test/Makefile.in    Fri Sep 12 01:26:21 2008 -0700
-@@ -170,6 +170,7 @@
+diff -r 592f6c3641ba extra/yassl/taocrypt/test/Makefile.in
+--- a/extra/yassl/taocrypt/test/Makefile.in    Wed Jul 29 13:33:34 2009 -0700
++++ b/extra/yassl/taocrypt/test/Makefile.in    Wed Jul 29 13:34:11 2009 -0700
+@@ -153,6 +153,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -398,10 +207,10 @@ diff -r 0bb04c127c7e extra/yassl/taocrypt/test/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e extra/yassl/testsuite/Makefile.in
---- a/extra/yassl/testsuite/Makefile.in        Fri Sep 12 01:25:08 2008 -0700
-+++ b/extra/yassl/testsuite/Makefile.in        Fri Sep 12 01:26:21 2008 -0700
-@@ -173,6 +173,7 @@
+diff -r 592f6c3641ba extra/yassl/testsuite/Makefile.in
+--- a/extra/yassl/testsuite/Makefile.in        Wed Jul 29 13:33:34 2009 -0700
++++ b/extra/yassl/testsuite/Makefile.in        Wed Jul 29 13:34:11 2009 -0700
+@@ -156,6 +156,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -409,10 +218,10 @@ diff -r 0bb04c127c7e extra/yassl/testsuite/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e heap/Makefile.in
---- a/heap/Makefile.in Fri Sep 12 01:25:08 2008 -0700
-+++ b/heap/Makefile.in Fri Sep 12 01:26:21 2008 -0700
-@@ -216,6 +216,7 @@
+diff -r 592f6c3641ba heap/Makefile.in
+--- a/heap/Makefile.in Wed Jul 29 13:33:34 2009 -0700
++++ b/heap/Makefile.in Wed Jul 29 13:34:11 2009 -0700
+@@ -202,6 +202,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -420,10 +229,10 @@ diff -r 0bb04c127c7e heap/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e include/Makefile.in
---- a/include/Makefile.in      Fri Sep 12 01:25:08 2008 -0700
-+++ b/include/Makefile.in      Fri Sep 12 01:26:21 2008 -0700
-@@ -181,6 +181,7 @@
+diff -r 592f6c3641ba include/Makefile.in
+--- a/include/Makefile.in      Wed Jul 29 13:33:34 2009 -0700
++++ b/include/Makefile.in      Wed Jul 29 13:34:11 2009 -0700
+@@ -160,6 +160,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -431,10 +240,18 @@ diff -r 0bb04c127c7e include/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e include/mysql_com.h
---- a/include/mysql_com.h      Fri Sep 12 01:25:08 2008 -0700
-+++ b/include/mysql_com.h      Fri Sep 12 01:26:21 2008 -0700
-@@ -106,6 +106,11 @@
+diff -r 592f6c3641ba include/mysql_com.h
+--- a/include/mysql_com.h      Wed Jul 29 13:33:34 2009 -0700
++++ b/include/mysql_com.h      Wed Jul 29 13:34:11 2009 -0700
+@@ -25,6 +25,7 @@
+ #define USERNAME_LENGTH 16
+ #define SERVER_VERSION_LENGTH 60
+ #define SQLSTATE_LENGTH 5
++#define LIST_PROCESS_HOST_LEN 64
+ /*
+   USER_HOST_BUFF_SIZE -- length of string buffer, that is enough to contain
+@@ -106,6 +107,11 @@
                                           thread */
  #define REFRESH_MASTER          128     /* Remove all bin logs in the index
                                           and truncate the index */
@@ -446,10 +263,10 @@ diff -r 0bb04c127c7e include/mysql_com.h
  
  /* The following can't be set with mysql_refresh() */
  #define REFRESH_READ_LOCK     16384   /* Lock tables for read */
-diff -r 0bb04c127c7e libmysql/Makefile.in
---- a/libmysql/Makefile.in     Fri Sep 12 01:25:08 2008 -0700
-+++ b/libmysql/Makefile.in     Fri Sep 12 01:26:21 2008 -0700
-@@ -276,6 +276,7 @@
+diff -r 592f6c3641ba libmysql/Makefile.in
+--- a/libmysql/Makefile.in     Wed Jul 29 13:33:34 2009 -0700
++++ b/libmysql/Makefile.in     Wed Jul 29 13:34:11 2009 -0700
+@@ -224,6 +224,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -457,10 +274,10 @@ diff -r 0bb04c127c7e libmysql/Makefile.in
  LIBS = @CLIENT_LIBS@ 
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e libmysql_r/Makefile.in
---- a/libmysql_r/Makefile.in   Fri Sep 12 01:25:08 2008 -0700
-+++ b/libmysql_r/Makefile.in   Fri Sep 12 01:26:21 2008 -0700
-@@ -273,6 +273,7 @@
+diff -r 592f6c3641ba libmysql_r/Makefile.in
+--- a/libmysql_r/Makefile.in   Wed Jul 29 13:33:34 2009 -0700
++++ b/libmysql_r/Makefile.in   Wed Jul 29 13:34:11 2009 -0700
+@@ -221,6 +221,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -468,10 +285,10 @@ diff -r 0bb04c127c7e libmysql_r/Makefile.in
  LIBS = @LIBS@ @ZLIB_LIBS@ @openssl_libs@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e libmysqld/Makefile.in
---- a/libmysqld/Makefile.in    Fri Sep 12 01:25:08 2008 -0700
-+++ b/libmysqld/Makefile.in    Fri Sep 12 01:26:21 2008 -0700
-@@ -262,6 +262,7 @@
+diff -r 592f6c3641ba libmysqld/Makefile.in
+--- a/libmysqld/Makefile.in    Wed Jul 29 13:33:34 2009 -0700
++++ b/libmysqld/Makefile.in    Wed Jul 29 13:34:11 2009 -0700
+@@ -246,6 +246,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -479,10 +296,10 @@ diff -r 0bb04c127c7e libmysqld/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e libmysqld/examples/Makefile.in
---- a/libmysqld/examples/Makefile.in   Fri Sep 12 01:25:08 2008 -0700
-+++ b/libmysqld/examples/Makefile.in   Fri Sep 12 01:26:21 2008 -0700
-@@ -211,6 +211,7 @@
+diff -r 592f6c3641ba libmysqld/examples/Makefile.in
+--- a/libmysqld/examples/Makefile.in   Wed Jul 29 13:33:34 2009 -0700
++++ b/libmysqld/examples/Makefile.in   Wed Jul 29 13:34:11 2009 -0700
+@@ -192,6 +192,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -490,10 +307,10 @@ diff -r 0bb04c127c7e libmysqld/examples/Makefile.in
  LIBS = @LIBS@ @WRAPLIBS@ @CLIENT_LIBS@ $(yassl_libs)
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e man/Makefile.in
---- a/man/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/man/Makefile.in  Fri Sep 12 01:26:21 2008 -0700
-@@ -172,6 +172,7 @@
+diff -r 592f6c3641ba man/Makefile.in
+--- a/man/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/man/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -151,6 +151,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -501,10 +318,10 @@ diff -r 0bb04c127c7e man/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e myisam/Makefile.in
---- a/myisam/Makefile.in       Fri Sep 12 01:25:08 2008 -0700
-+++ b/myisam/Makefile.in       Fri Sep 12 01:26:21 2008 -0700
-@@ -255,6 +255,7 @@
+diff -r 592f6c3641ba myisam/Makefile.in
+--- a/myisam/Makefile.in       Wed Jul 29 13:33:34 2009 -0700
++++ b/myisam/Makefile.in       Wed Jul 29 13:34:11 2009 -0700
+@@ -235,6 +235,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -512,10 +329,10 @@ diff -r 0bb04c127c7e myisam/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e myisammrg/Makefile.in
---- a/myisammrg/Makefile.in    Fri Sep 12 01:25:08 2008 -0700
-+++ b/myisammrg/Makefile.in    Fri Sep 12 01:26:21 2008 -0700
-@@ -203,6 +203,7 @@
+diff -r 592f6c3641ba myisammrg/Makefile.in
+--- a/myisammrg/Makefile.in    Wed Jul 29 13:33:34 2009 -0700
++++ b/myisammrg/Makefile.in    Wed Jul 29 13:34:11 2009 -0700
+@@ -183,6 +183,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -523,10 +340,10 @@ diff -r 0bb04c127c7e myisammrg/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e mysql-test/Makefile.in
---- a/mysql-test/Makefile.in   Fri Sep 12 01:25:08 2008 -0700
-+++ b/mysql-test/Makefile.in   Fri Sep 12 01:26:21 2008 -0700
-@@ -179,6 +179,7 @@
+diff -r 592f6c3641ba mysql-test/Makefile.in
+--- a/mysql-test/Makefile.in   Wed Jul 29 13:33:34 2009 -0700
++++ b/mysql-test/Makefile.in   Wed Jul 29 13:34:11 2009 -0700
+@@ -161,6 +161,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -534,10 +351,10 @@ diff -r 0bb04c127c7e mysql-test/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e mysql-test/ndb/Makefile.in
---- a/mysql-test/ndb/Makefile.in       Fri Sep 12 01:25:08 2008 -0700
-+++ b/mysql-test/ndb/Makefile.in       Fri Sep 12 01:26:21 2008 -0700
-@@ -168,6 +168,7 @@
+diff -r 592f6c3641ba mysql-test/ndb/Makefile.in
+--- a/mysql-test/ndb/Makefile.in       Wed Jul 29 13:33:34 2009 -0700
++++ b/mysql-test/ndb/Makefile.in       Wed Jul 29 13:34:11 2009 -0700
+@@ -147,6 +147,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -545,9 +362,9 @@ diff -r 0bb04c127c7e mysql-test/ndb/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e mysql-test/r/information_schema.result
---- a/mysql-test/r/information_schema.result   Fri Sep 12 01:25:08 2008 -0700
-+++ b/mysql-test/r/information_schema.result   Fri Sep 12 01:26:21 2008 -0700
+diff -r 592f6c3641ba mysql-test/r/information_schema.result
+--- a/mysql-test/r/information_schema.result   Wed Jul 29 13:33:34 2009 -0700
++++ b/mysql-test/r/information_schema.result   Wed Jul 29 13:34:11 2009 -0700
 @@ -37,10 +37,12 @@
  select * from v1;
  c
@@ -631,7 +448,7 @@ diff -r 0bb04c127c7e mysql-test/r/information_schema.result
  CREATE VIEW a1 (t_CRASHME) AS SELECT f1 FROM t_crashme GROUP BY f1;
  CREATE VIEW a2 AS SELECT t_CRASHME FROM a1;
  count(*)
--101
+-102
 +106
  drop view a2, a1;
  drop table t_crashme;
@@ -653,7 +470,7 @@ diff -r 0bb04c127c7e mysql-test/r/information_schema.result
  flush privileges;
  SELECT table_schema, count(*) FROM information_schema.TABLES GROUP BY TABLE_SCHEMA;
  table_schema  count(*)
--information_schema    16
+-information_schema    17
 +information_schema    21
  mysql 17
  create table t1 (i int, j int);
@@ -728,11 +545,11 @@ diff -r 0bb04c127c7e mysql-test/r/information_schema.result
  USER_PRIVILEGES       information_schema.USER_PRIVILEGES      1
 +USER_STATISTICS       information_schema.USER_STATISTICS      1
  VIEWS information_schema.VIEWS        1
show global status like "Uptime_%";
- Variable_name Value
-diff -r 0bb04c127c7e mysql-test/r/information_schema_db.result
---- a/mysql-test/r/information_schema_db.result        Fri Sep 12 01:25:08 2008 -0700
-+++ b/mysql-test/r/information_schema_db.result        Fri Sep 12 01:26:21 2008 -0700
create table t1(f1 int);
+ create view v1 as select f1+1 as a from t1;
+diff -r 592f6c3641ba mysql-test/r/information_schema_db.result
+--- a/mysql-test/r/information_schema_db.result        Wed Jul 29 13:33:34 2009 -0700
++++ b/mysql-test/r/information_schema_db.result        Wed Jul 29 13:34:11 2009 -0700
 @@ -6,10 +6,12 @@
  show tables;
  Tables_in_information_schema
@@ -764,9 +581,9 @@ diff -r 0bb04c127c7e mysql-test/r/information_schema_db.result
  TRIGGERS
  create database `inf%`;
  create database mbase;
-diff -r 0bb04c127c7e mysql-test/r/mysqlshow.result
---- a/mysql-test/r/mysqlshow.result    Fri Sep 12 01:25:08 2008 -0700
-+++ b/mysql-test/r/mysqlshow.result    Fri Sep 12 01:26:21 2008 -0700
+diff -r 592f6c3641ba mysql-test/r/mysqlshow.result
+--- a/mysql-test/r/mysqlshow.result    Wed Jul 29 13:33:34 2009 -0700
++++ b/mysql-test/r/mysqlshow.result    Wed Jul 29 13:34:11 2009 -0700
 @@ -80,10 +80,12 @@
  |                Tables                 |
  +---------------------------------------+
@@ -815,10 +632,10 @@ diff -r 0bb04c127c7e mysql-test/r/mysqlshow.result
  | VIEWS                                 |
  +---------------------------------------+
  Wildcard: inf_rmation_schema
-diff -r 0bb04c127c7e mysys/Makefile.in
---- a/mysys/Makefile.in        Fri Sep 12 01:25:08 2008 -0700
-+++ b/mysys/Makefile.in        Fri Sep 12 01:26:21 2008 -0700
-@@ -247,6 +247,7 @@
+diff -r 592f6c3641ba mysys/Makefile.in
+--- a/mysys/Makefile.in        Wed Jul 29 13:33:34 2009 -0700
++++ b/mysys/Makefile.in        Wed Jul 29 13:34:11 2009 -0700
+@@ -228,6 +228,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -826,10 +643,10 @@ diff -r 0bb04c127c7e mysys/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/Makefile.in
---- a/ndb/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/Makefile.in  Fri Sep 12 01:26:21 2008 -0700
-@@ -189,6 +189,7 @@
+diff -r 592f6c3641ba ndb/Makefile.in
+--- a/ndb/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -171,6 +171,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -837,10 +654,10 @@ diff -r 0bb04c127c7e ndb/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/docs/Makefile.in
---- a/ndb/docs/Makefile.in     Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/docs/Makefile.in     Fri Sep 12 01:26:21 2008 -0700
-@@ -170,6 +170,7 @@
+diff -r 592f6c3641ba ndb/docs/Makefile.in
+--- a/ndb/docs/Makefile.in     Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/docs/Makefile.in     Wed Jul 29 13:34:11 2009 -0700
+@@ -149,6 +149,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -848,10 +665,10 @@ diff -r 0bb04c127c7e ndb/docs/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/include/Makefile.in
---- a/ndb/include/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/include/Makefile.in  Fri Sep 12 01:26:21 2008 -0700
-@@ -200,6 +200,7 @@
+diff -r 592f6c3641ba ndb/include/Makefile.in
+--- a/ndb/include/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/include/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -179,6 +179,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -859,10 +676,10 @@ diff -r 0bb04c127c7e ndb/include/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/Makefile.in
---- a/ndb/src/Makefile.in      Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/Makefile.in      Fri Sep 12 01:26:21 2008 -0700
-@@ -218,6 +218,7 @@
+diff -r 592f6c3641ba ndb/src/Makefile.in
+--- a/ndb/src/Makefile.in      Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/Makefile.in      Wed Jul 29 13:34:11 2009 -0700
+@@ -204,6 +204,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -870,10 +687,10 @@ diff -r 0bb04c127c7e ndb/src/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/common/Makefile.in
---- a/ndb/src/common/Makefile.in       Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/common/Makefile.in       Fri Sep 12 01:26:21 2008 -0700
-@@ -191,6 +191,7 @@
+diff -r 592f6c3641ba ndb/src/common/Makefile.in
+--- a/ndb/src/common/Makefile.in       Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/common/Makefile.in       Wed Jul 29 13:34:11 2009 -0700
+@@ -174,6 +174,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -881,10 +698,10 @@ diff -r 0bb04c127c7e ndb/src/common/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/common/debugger/Makefile.in
---- a/ndb/src/common/debugger/Makefile.in      Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/common/debugger/Makefile.in      Fri Sep 12 01:26:21 2008 -0700
-@@ -223,6 +223,7 @@
+diff -r 592f6c3641ba ndb/src/common/debugger/Makefile.in
+--- a/ndb/src/common/debugger/Makefile.in      Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/common/debugger/Makefile.in      Wed Jul 29 13:34:11 2009 -0700
+@@ -206,6 +206,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -892,10 +709,10 @@ diff -r 0bb04c127c7e ndb/src/common/debugger/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/common/debugger/signaldata/Makefile.in
---- a/ndb/src/common/debugger/signaldata/Makefile.in   Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/common/debugger/signaldata/Makefile.in   Fri Sep 12 01:26:21 2008 -0700
-@@ -231,6 +231,7 @@
+diff -r 592f6c3641ba ndb/src/common/debugger/signaldata/Makefile.in
+--- a/ndb/src/common/debugger/signaldata/Makefile.in   Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/common/debugger/signaldata/Makefile.in   Wed Jul 29 13:34:11 2009 -0700
+@@ -211,6 +211,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -903,10 +720,10 @@ diff -r 0bb04c127c7e ndb/src/common/debugger/signaldata/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/common/logger/Makefile.in
---- a/ndb/src/common/logger/Makefile.in        Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/common/logger/Makefile.in        Fri Sep 12 01:26:21 2008 -0700
-@@ -217,6 +217,7 @@
+diff -r 592f6c3641ba ndb/src/common/logger/Makefile.in
+--- a/ndb/src/common/logger/Makefile.in        Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/common/logger/Makefile.in        Wed Jul 29 13:34:11 2009 -0700
+@@ -197,6 +197,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -914,10 +731,10 @@ diff -r 0bb04c127c7e ndb/src/common/logger/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/common/mgmcommon/Makefile.in
---- a/ndb/src/common/mgmcommon/Makefile.in     Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/common/mgmcommon/Makefile.in     Fri Sep 12 01:26:21 2008 -0700
-@@ -231,6 +231,7 @@
+diff -r 592f6c3641ba ndb/src/common/mgmcommon/Makefile.in
+--- a/ndb/src/common/mgmcommon/Makefile.in     Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/common/mgmcommon/Makefile.in     Wed Jul 29 13:34:11 2009 -0700
+@@ -211,6 +211,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -925,10 +742,10 @@ diff -r 0bb04c127c7e ndb/src/common/mgmcommon/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/common/portlib/Makefile.in
---- a/ndb/src/common/portlib/Makefile.in       Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/common/portlib/Makefile.in       Fri Sep 12 01:26:21 2008 -0700
-@@ -241,6 +241,7 @@
+diff -r 592f6c3641ba ndb/src/common/portlib/Makefile.in
+--- a/ndb/src/common/portlib/Makefile.in       Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/common/portlib/Makefile.in       Wed Jul 29 13:34:11 2009 -0700
+@@ -222,6 +222,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -936,10 +753,10 @@ diff -r 0bb04c127c7e ndb/src/common/portlib/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/common/transporter/Makefile.in
---- a/ndb/src/common/transporter/Makefile.in   Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/common/transporter/Makefile.in   Fri Sep 12 01:26:21 2008 -0700
-@@ -217,6 +217,7 @@
+diff -r 592f6c3641ba ndb/src/common/transporter/Makefile.in
+--- a/ndb/src/common/transporter/Makefile.in   Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/common/transporter/Makefile.in   Wed Jul 29 13:34:11 2009 -0700
+@@ -197,6 +197,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -947,10 +764,10 @@ diff -r 0bb04c127c7e ndb/src/common/transporter/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/common/util/Makefile.in
---- a/ndb/src/common/util/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/common/util/Makefile.in  Fri Sep 12 01:26:21 2008 -0700
-@@ -233,6 +233,7 @@
+diff -r 592f6c3641ba ndb/src/common/util/Makefile.in
+--- a/ndb/src/common/util/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/common/util/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -217,6 +217,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -958,10 +775,10 @@ diff -r 0bb04c127c7e ndb/src/common/util/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/cw/Makefile.in
---- a/ndb/src/cw/Makefile.in   Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/cw/Makefile.in   Fri Sep 12 01:26:21 2008 -0700
-@@ -174,6 +174,7 @@
+diff -r 592f6c3641ba ndb/src/cw/Makefile.in
+--- a/ndb/src/cw/Makefile.in   Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/cw/Makefile.in   Wed Jul 29 13:34:11 2009 -0700
+@@ -156,6 +156,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -969,10 +786,10 @@ diff -r 0bb04c127c7e ndb/src/cw/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/cw/cpcd/Makefile.in
---- a/ndb/src/cw/cpcd/Makefile.in      Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/cw/cpcd/Makefile.in      Fri Sep 12 01:26:21 2008 -0700
-@@ -224,6 +224,7 @@
+diff -r 592f6c3641ba ndb/src/cw/cpcd/Makefile.in
+--- a/ndb/src/cw/cpcd/Makefile.in      Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/cw/cpcd/Makefile.in      Wed Jul 29 13:34:11 2009 -0700
+@@ -207,6 +207,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -980,10 +797,10 @@ diff -r 0bb04c127c7e ndb/src/cw/cpcd/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/Makefile.in
---- a/ndb/src/kernel/Makefile.in       Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/Makefile.in       Fri Sep 12 01:26:21 2008 -0700
-@@ -244,6 +244,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/Makefile.in
+--- a/ndb/src/kernel/Makefile.in       Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/Makefile.in       Wed Jul 29 13:34:11 2009 -0700
+@@ -227,6 +227,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -991,10 +808,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/Makefile.in
---- a/ndb/src/kernel/blocks/Makefile.in        Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/Makefile.in        Fri Sep 12 01:26:21 2008 -0700
-@@ -174,6 +174,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/Makefile.in
+--- a/ndb/src/kernel/blocks/Makefile.in        Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/Makefile.in        Wed Jul 29 13:34:11 2009 -0700
+@@ -156,6 +156,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1002,10 +819,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/backup/Makefile.in
---- a/ndb/src/kernel/blocks/backup/Makefile.in Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/backup/Makefile.in Fri Sep 12 01:26:21 2008 -0700
-@@ -216,6 +216,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/backup/Makefile.in
+--- a/ndb/src/kernel/blocks/backup/Makefile.in Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/backup/Makefile.in Wed Jul 29 13:34:11 2009 -0700
+@@ -196,6 +196,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1013,10 +830,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/backup/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/cmvmi/Makefile.in
---- a/ndb/src/kernel/blocks/cmvmi/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/cmvmi/Makefile.in  Fri Sep 12 01:26:21 2008 -0700
-@@ -216,6 +216,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/cmvmi/Makefile.in
+--- a/ndb/src/kernel/blocks/cmvmi/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/cmvmi/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -196,6 +196,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1024,10 +841,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/cmvmi/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/dbacc/Makefile.in
---- a/ndb/src/kernel/blocks/dbacc/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/dbacc/Makefile.in  Fri Sep 12 01:26:21 2008 -0700
-@@ -216,6 +216,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/dbacc/Makefile.in
+--- a/ndb/src/kernel/blocks/dbacc/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/dbacc/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -196,6 +196,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1035,10 +852,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/dbacc/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/dbdict/Makefile.in
---- a/ndb/src/kernel/blocks/dbdict/Makefile.in Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/dbdict/Makefile.in Fri Sep 12 01:26:21 2008 -0700
-@@ -226,6 +226,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/dbdict/Makefile.in
+--- a/ndb/src/kernel/blocks/dbdict/Makefile.in Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/dbdict/Makefile.in Wed Jul 29 13:34:11 2009 -0700
+@@ -206,6 +206,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1046,10 +863,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/dbdict/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/dbdih/Makefile.in
---- a/ndb/src/kernel/blocks/dbdih/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/dbdih/Makefile.in  Fri Sep 12 01:26:21 2008 -0700
-@@ -223,6 +223,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/dbdih/Makefile.in
+--- a/ndb/src/kernel/blocks/dbdih/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/dbdih/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -203,6 +203,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1057,10 +874,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/dbdih/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/dblqh/Makefile.in
---- a/ndb/src/kernel/blocks/dblqh/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/dblqh/Makefile.in  Fri Sep 12 01:26:21 2008 -0700
-@@ -224,6 +224,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/dblqh/Makefile.in
+--- a/ndb/src/kernel/blocks/dblqh/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/dblqh/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -204,6 +204,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1068,10 +885,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/dblqh/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/dbtc/Makefile.in
---- a/ndb/src/kernel/blocks/dbtc/Makefile.in   Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/dbtc/Makefile.in   Fri Sep 12 01:26:21 2008 -0700
-@@ -216,6 +216,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/dbtc/Makefile.in
+--- a/ndb/src/kernel/blocks/dbtc/Makefile.in   Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/dbtc/Makefile.in   Wed Jul 29 13:34:11 2009 -0700
+@@ -196,6 +196,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1079,10 +896,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/dbtc/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/dbtup/Makefile.in
---- a/ndb/src/kernel/blocks/dbtup/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/dbtup/Makefile.in  Fri Sep 12 01:26:21 2008 -0700
-@@ -224,6 +224,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/dbtup/Makefile.in
+--- a/ndb/src/kernel/blocks/dbtup/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/dbtup/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -204,6 +204,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1090,10 +907,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/dbtup/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/dbtux/Makefile.in
---- a/ndb/src/kernel/blocks/dbtux/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/dbtux/Makefile.in  Fri Sep 12 01:26:21 2008 -0700
-@@ -219,6 +219,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/dbtux/Makefile.in
+--- a/ndb/src/kernel/blocks/dbtux/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/dbtux/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -199,6 +199,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1101,10 +918,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/dbtux/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/dbutil/Makefile.in
---- a/ndb/src/kernel/blocks/dbutil/Makefile.in Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/dbutil/Makefile.in Fri Sep 12 01:26:21 2008 -0700
-@@ -216,6 +216,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/dbutil/Makefile.in
+--- a/ndb/src/kernel/blocks/dbutil/Makefile.in Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/dbutil/Makefile.in Wed Jul 29 13:34:11 2009 -0700
+@@ -196,6 +196,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1112,10 +929,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/dbutil/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/ndbcntr/Makefile.in
---- a/ndb/src/kernel/blocks/ndbcntr/Makefile.in        Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/ndbcntr/Makefile.in        Fri Sep 12 01:26:21 2008 -0700
-@@ -217,6 +217,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/ndbcntr/Makefile.in
+--- a/ndb/src/kernel/blocks/ndbcntr/Makefile.in        Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/ndbcntr/Makefile.in        Wed Jul 29 13:34:11 2009 -0700
+@@ -197,6 +197,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1123,10 +940,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/ndbcntr/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/ndbfs/Makefile.in
---- a/ndb/src/kernel/blocks/ndbfs/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/ndbfs/Makefile.in  Fri Sep 12 01:26:21 2008 -0700
-@@ -217,6 +217,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/ndbfs/Makefile.in
+--- a/ndb/src/kernel/blocks/ndbfs/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/ndbfs/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -197,6 +197,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1134,10 +951,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/ndbfs/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/qmgr/Makefile.in
---- a/ndb/src/kernel/blocks/qmgr/Makefile.in   Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/qmgr/Makefile.in   Fri Sep 12 01:26:21 2008 -0700
-@@ -216,6 +216,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/qmgr/Makefile.in
+--- a/ndb/src/kernel/blocks/qmgr/Makefile.in   Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/qmgr/Makefile.in   Wed Jul 29 13:34:11 2009 -0700
+@@ -196,6 +196,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1145,10 +962,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/qmgr/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/suma/Makefile.in
---- a/ndb/src/kernel/blocks/suma/Makefile.in   Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/suma/Makefile.in   Fri Sep 12 01:26:21 2008 -0700
-@@ -216,6 +216,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/suma/Makefile.in
+--- a/ndb/src/kernel/blocks/suma/Makefile.in   Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/suma/Makefile.in   Wed Jul 29 13:34:11 2009 -0700
+@@ -196,6 +196,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1156,10 +973,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/suma/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/blocks/trix/Makefile.in
---- a/ndb/src/kernel/blocks/trix/Makefile.in   Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/blocks/trix/Makefile.in   Fri Sep 12 01:26:21 2008 -0700
-@@ -216,6 +216,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/blocks/trix/Makefile.in
+--- a/ndb/src/kernel/blocks/trix/Makefile.in   Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/blocks/trix/Makefile.in   Wed Jul 29 13:34:11 2009 -0700
+@@ -196,6 +196,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1167,10 +984,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/blocks/trix/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/error/Makefile.in
---- a/ndb/src/kernel/error/Makefile.in Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/error/Makefile.in Fri Sep 12 01:26:21 2008 -0700
-@@ -225,6 +225,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/error/Makefile.in
+--- a/ndb/src/kernel/error/Makefile.in Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/error/Makefile.in Wed Jul 29 13:34:11 2009 -0700
+@@ -206,6 +206,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1178,10 +995,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/error/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/kernel/vm/Makefile.in
---- a/ndb/src/kernel/vm/Makefile.in    Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/kernel/vm/Makefile.in    Fri Sep 12 01:26:21 2008 -0700
-@@ -227,6 +227,7 @@
+diff -r 592f6c3641ba ndb/src/kernel/vm/Makefile.in
+--- a/ndb/src/kernel/vm/Makefile.in    Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/kernel/vm/Makefile.in    Wed Jul 29 13:34:11 2009 -0700
+@@ -207,6 +207,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1189,10 +1006,10 @@ diff -r 0bb04c127c7e ndb/src/kernel/vm/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/mgmapi/Makefile.in
---- a/ndb/src/mgmapi/Makefile.in       Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/mgmapi/Makefile.in       Fri Sep 12 01:26:21 2008 -0700
-@@ -224,6 +224,7 @@
+diff -r 592f6c3641ba ndb/src/mgmapi/Makefile.in
+--- a/ndb/src/mgmapi/Makefile.in       Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/mgmapi/Makefile.in       Wed Jul 29 13:34:11 2009 -0700
+@@ -205,6 +205,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1200,10 +1017,10 @@ diff -r 0bb04c127c7e ndb/src/mgmapi/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/mgmclient/Makefile.in
---- a/ndb/src/mgmclient/Makefile.in    Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/mgmclient/Makefile.in    Fri Sep 12 01:26:21 2008 -0700
-@@ -234,6 +234,7 @@
+diff -r 592f6c3641ba ndb/src/mgmclient/Makefile.in
+--- a/ndb/src/mgmclient/Makefile.in    Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/mgmclient/Makefile.in    Wed Jul 29 13:34:11 2009 -0700
+@@ -216,6 +216,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1211,10 +1028,10 @@ diff -r 0bb04c127c7e ndb/src/mgmclient/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/mgmsrv/Makefile.in
---- a/ndb/src/mgmsrv/Makefile.in       Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/mgmsrv/Makefile.in       Fri Sep 12 01:26:21 2008 -0700
-@@ -230,6 +230,7 @@
+diff -r 592f6c3641ba ndb/src/mgmsrv/Makefile.in
+--- a/ndb/src/mgmsrv/Makefile.in       Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/mgmsrv/Makefile.in       Wed Jul 29 13:34:11 2009 -0700
+@@ -213,6 +213,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1222,10 +1039,10 @@ diff -r 0bb04c127c7e ndb/src/mgmsrv/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/src/ndbapi/Makefile.in
---- a/ndb/src/ndbapi/Makefile.in       Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/src/ndbapi/Makefile.in       Fri Sep 12 01:26:21 2008 -0700
-@@ -234,6 +234,7 @@
+diff -r 592f6c3641ba ndb/src/ndbapi/Makefile.in
+--- a/ndb/src/ndbapi/Makefile.in       Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/src/ndbapi/Makefile.in       Wed Jul 29 13:34:11 2009 -0700
+@@ -215,6 +215,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1233,10 +1050,10 @@ diff -r 0bb04c127c7e ndb/src/ndbapi/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/test/Makefile.in
---- a/ndb/test/Makefile.in     Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/test/Makefile.in     Fri Sep 12 01:26:21 2008 -0700
-@@ -174,6 +174,7 @@
+diff -r 592f6c3641ba ndb/test/Makefile.in
+--- a/ndb/test/Makefile.in     Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/test/Makefile.in     Wed Jul 29 13:34:11 2009 -0700
+@@ -156,6 +156,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1244,10 +1061,10 @@ diff -r 0bb04c127c7e ndb/test/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/test/ndbapi/Makefile.in
---- a/ndb/test/ndbapi/Makefile.in      Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/test/ndbapi/Makefile.in      Fri Sep 12 01:26:21 2008 -0700
-@@ -611,6 +611,7 @@
+diff -r 592f6c3641ba ndb/test/ndbapi/Makefile.in
+--- a/ndb/test/ndbapi/Makefile.in      Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/test/ndbapi/Makefile.in      Wed Jul 29 13:34:11 2009 -0700
+@@ -595,6 +595,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1255,10 +1072,10 @@ diff -r 0bb04c127c7e ndb/test/ndbapi/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/test/ndbapi/bank/Makefile.in
---- a/ndb/test/ndbapi/bank/Makefile.in Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/test/ndbapi/bank/Makefile.in Fri Sep 12 01:26:21 2008 -0700
-@@ -303,6 +303,7 @@
+diff -r 592f6c3641ba ndb/test/ndbapi/bank/Makefile.in
+--- a/ndb/test/ndbapi/bank/Makefile.in Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/test/ndbapi/bank/Makefile.in Wed Jul 29 13:34:11 2009 -0700
+@@ -282,6 +282,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1266,10 +1083,10 @@ diff -r 0bb04c127c7e ndb/test/ndbapi/bank/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/test/run-test/Makefile.in
---- a/ndb/test/run-test/Makefile.in    Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/test/run-test/Makefile.in    Fri Sep 12 01:26:21 2008 -0700
-@@ -262,6 +262,7 @@
+diff -r 592f6c3641ba ndb/test/run-test/Makefile.in
+--- a/ndb/test/run-test/Makefile.in    Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/test/run-test/Makefile.in    Wed Jul 29 13:34:11 2009 -0700
+@@ -243,6 +243,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1277,10 +1094,10 @@ diff -r 0bb04c127c7e ndb/test/run-test/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/test/src/Makefile.in
---- a/ndb/test/src/Makefile.in Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/test/src/Makefile.in Fri Sep 12 01:26:22 2008 -0700
-@@ -232,6 +232,7 @@
+diff -r 592f6c3641ba ndb/test/src/Makefile.in
+--- a/ndb/test/src/Makefile.in Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/test/src/Makefile.in Wed Jul 29 13:34:11 2009 -0700
+@@ -213,6 +213,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1288,10 +1105,10 @@ diff -r 0bb04c127c7e ndb/test/src/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/test/tools/Makefile.in
---- a/ndb/test/tools/Makefile.in       Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/test/tools/Makefile.in       Fri Sep 12 01:26:22 2008 -0700
-@@ -345,6 +345,7 @@
+diff -r 592f6c3641ba ndb/test/tools/Makefile.in
+--- a/ndb/test/tools/Makefile.in       Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/test/tools/Makefile.in       Wed Jul 29 13:34:11 2009 -0700
+@@ -325,6 +325,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1299,10 +1116,10 @@ diff -r 0bb04c127c7e ndb/test/tools/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e ndb/tools/Makefile.in
---- a/ndb/tools/Makefile.in    Fri Sep 12 01:25:08 2008 -0700
-+++ b/ndb/tools/Makefile.in    Fri Sep 12 01:26:22 2008 -0700
-@@ -331,6 +331,7 @@
+diff -r 592f6c3641ba ndb/tools/Makefile.in
+--- a/ndb/tools/Makefile.in    Wed Jul 29 13:33:34 2009 -0700
++++ b/ndb/tools/Makefile.in    Wed Jul 29 13:34:11 2009 -0700
+@@ -344,6 +344,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1310,10 +1127,10 @@ diff -r 0bb04c127c7e ndb/tools/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e netware/Makefile.in
---- a/netware/Makefile.in      Fri Sep 12 01:25:08 2008 -0700
-+++ b/netware/Makefile.in      Fri Sep 12 01:26:22 2008 -0700
-@@ -219,6 +219,7 @@
+diff -r 592f6c3641ba netware/Makefile.in
+--- a/netware/Makefile.in      Wed Jul 29 13:33:34 2009 -0700
++++ b/netware/Makefile.in      Wed Jul 29 13:34:11 2009 -0700
+@@ -199,6 +199,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1321,10 +1138,10 @@ diff -r 0bb04c127c7e netware/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e os2/Makefile.in
---- a/os2/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/os2/Makefile.in  Fri Sep 12 01:26:22 2008 -0700
-@@ -174,6 +174,7 @@
+diff -r 592f6c3641ba os2/Makefile.in
+--- a/os2/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/os2/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -156,6 +156,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1332,10 +1149,10 @@ diff -r 0bb04c127c7e os2/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e os2/include/Makefile.in
---- a/os2/include/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/os2/include/Makefile.in  Fri Sep 12 01:26:22 2008 -0700
-@@ -174,6 +174,7 @@
+diff -r 592f6c3641ba os2/include/Makefile.in
+--- a/os2/include/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/os2/include/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -156,6 +156,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1343,10 +1160,10 @@ diff -r 0bb04c127c7e os2/include/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e os2/include/sys/Makefile.in
---- a/os2/include/sys/Makefile.in      Fri Sep 12 01:25:08 2008 -0700
-+++ b/os2/include/sys/Makefile.in      Fri Sep 12 01:26:22 2008 -0700
-@@ -165,6 +165,7 @@
+diff -r 592f6c3641ba os2/include/sys/Makefile.in
+--- a/os2/include/sys/Makefile.in      Wed Jul 29 13:33:34 2009 -0700
++++ b/os2/include/sys/Makefile.in      Wed Jul 29 13:34:11 2009 -0700
+@@ -144,6 +144,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1354,42 +1171,28 @@ diff -r 0bb04c127c7e os2/include/sys/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e patch_info/userstats.info
+diff -r 592f6c3641ba patch_info/userstats.info
 --- /dev/null  Thu Jan 01 00:00:00 1970 +0000
-+++ b/patch_info/userstats.info        Fri Sep 12 01:26:22 2008 -0700
-@@ -0,0 +1,6 @@
++++ b/patch_info/userstats.info        Wed Jul 29 13:34:11 2009 -0700
+@@ -0,0 +1,14 @@
 +File=userstatsv2.patch
 +Name=SHOW USER/TABLE/INDEX statistics
 +Version=V2
 +Author=Google
 +License=GPL
 +Comment=Added INFORMATION_SCHEMA.*_STATISTICS
-diff -r 0bb04c127c7e pstack/Makefile.in
---- a/pstack/Makefile.in       Fri Sep 12 01:25:08 2008 -0700
-+++ b/pstack/Makefile.in       Fri Sep 12 01:26:22 2008 -0700
-@@ -213,6 +213,7 @@
- LIBDL = @LIBDL@
- LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
- LIBOBJS = @LIBOBJS@
-+LIBRT = @LIBRT@
- LIBS = @LIBS@
- LIBTOOL = @LIBTOOL@
- LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e pstack/aout/Makefile.in
---- a/pstack/aout/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/pstack/aout/Makefile.in  Fri Sep 12 01:26:22 2008 -0700
-@@ -155,6 +155,7 @@
- LIBDL = @LIBDL@
- LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
- LIBOBJS = @LIBOBJS@
-+LIBRT = @LIBRT@
- LIBS = @LIBS@
- LIBTOOL = @LIBTOOL@
- LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e regex/Makefile.in
---- a/regex/Makefile.in        Fri Sep 12 01:25:08 2008 -0700
-+++ b/regex/Makefile.in        Fri Sep 12 01:26:22 2008 -0700
-@@ -197,6 +197,7 @@
++2008-12-01
++YK: fix behavior for prepared statements
++
++2008-11-26
++YK: add switch variable "userstat_running" to control INFORMATION_SCHEMA.*_STATISTICS (default:OFF)
++
++2008-12-09
++YK: fixed "Row_sent: 0" problem at microslow_innodb.patch
+diff -r 592f6c3641ba pstack/Makefile.in
+--- a/pstack/Makefile.in       Wed Jul 29 13:33:34 2009 -0700
++++ b/pstack/Makefile.in       Wed Jul 29 13:34:11 2009 -0700
+@@ -196,6 +196,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1397,10 +1200,10 @@ diff -r 0bb04c127c7e regex/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e scripts/Makefile.in
---- a/scripts/Makefile.in      Fri Sep 12 01:25:08 2008 -0700
-+++ b/scripts/Makefile.in      Fri Sep 12 01:26:22 2008 -0700
-@@ -196,6 +196,7 @@
+diff -r 592f6c3641ba pstack/aout/Makefile.in
+--- a/pstack/aout/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/pstack/aout/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -134,6 +134,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1408,10 +1211,10 @@ diff -r 0bb04c127c7e scripts/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e server-tools/Makefile.in
---- a/server-tools/Makefile.in Fri Sep 12 01:25:08 2008 -0700
-+++ b/server-tools/Makefile.in Fri Sep 12 01:26:22 2008 -0700
-@@ -173,6 +173,7 @@
+diff -r 592f6c3641ba regex/Makefile.in
+--- a/regex/Makefile.in        Wed Jul 29 13:33:34 2009 -0700
++++ b/regex/Makefile.in        Wed Jul 29 13:34:11 2009 -0700
+@@ -180,6 +180,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1419,10 +1222,10 @@ diff -r 0bb04c127c7e server-tools/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e server-tools/instance-manager/Makefile.in
---- a/server-tools/instance-manager/Makefile.in        Fri Sep 12 01:25:08 2008 -0700
-+++ b/server-tools/instance-manager/Makefile.in        Fri Sep 12 01:26:22 2008 -0700
-@@ -221,6 +221,7 @@
+diff -r 592f6c3641ba scripts/Makefile.in
+--- a/scripts/Makefile.in      Wed Jul 29 13:33:34 2009 -0700
++++ b/scripts/Makefile.in      Wed Jul 29 13:34:11 2009 -0700
+@@ -176,6 +176,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1430,10 +1233,10 @@ diff -r 0bb04c127c7e server-tools/instance-manager/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e sql-bench/Makefile.in
---- a/sql-bench/Makefile.in    Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql-bench/Makefile.in    Fri Sep 12 01:26:22 2008 -0700
-@@ -172,6 +172,7 @@
+diff -r 592f6c3641ba server-tools/Makefile.in
+--- a/server-tools/Makefile.in Wed Jul 29 13:33:34 2009 -0700
++++ b/server-tools/Makefile.in Wed Jul 29 13:34:11 2009 -0700
+@@ -155,6 +155,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1441,10 +1244,10 @@ diff -r 0bb04c127c7e sql-bench/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e sql-common/Makefile.in
---- a/sql-common/Makefile.in   Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql-common/Makefile.in   Fri Sep 12 01:26:22 2008 -0700
-@@ -165,6 +165,7 @@
+diff -r 592f6c3641ba server-tools/instance-manager/Makefile.in
+--- a/server-tools/instance-manager/Makefile.in        Wed Jul 29 13:33:34 2009 -0700
++++ b/server-tools/instance-manager/Makefile.in        Wed Jul 29 13:34:11 2009 -0700
+@@ -205,6 +205,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1452,10 +1255,10 @@ diff -r 0bb04c127c7e sql-common/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e sql/Makefile.in
---- a/sql/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/Makefile.in  Fri Sep 12 01:26:22 2008 -0700
-@@ -283,6 +283,7 @@
+diff -r 592f6c3641ba sql/Makefile.in
+--- a/sql/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -274,6 +274,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -1463,10 +1266,10 @@ diff -r 0bb04c127c7e sql/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e sql/ha_innodb.cc
---- a/sql/ha_innodb.cc Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/ha_innodb.cc Fri Sep 12 01:26:22 2008 -0700
-@@ -3287,6 +3287,8 @@
+diff -r 592f6c3641ba sql/ha_innodb.cc
+--- a/sql/ha_innodb.cc Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/ha_innodb.cc Wed Jul 29 13:34:11 2009 -0700
+@@ -3341,6 +3341,8 @@
  
        error = row_insert_for_mysql((byte*) record, prebuilt);
  
@@ -1475,7 +1278,7 @@ diff -r 0bb04c127c7e sql/ha_innodb.cc
        if (error == DB_SUCCESS && auto_inc_used) {
  
                /* Fetch the value that was set in the autoincrement field */
-@@ -3559,6 +3561,8 @@
+@@ -3613,6 +3615,8 @@
                }
        }
  
@@ -1484,16 +1287,16 @@ diff -r 0bb04c127c7e sql/ha_innodb.cc
        innodb_srv_conc_exit_innodb(prebuilt->trx);
  
        error = convert_error_code_to_mysql(error, user_thd);
-@@ -3606,6 +3610,8 @@
-       innodb_srv_conc_enter_innodb(prebuilt->trx);
+@@ -3661,6 +3665,8 @@
  
        error = row_update_for_mysql((byte*) record, prebuilt);
-+
-+      if (error == DB_SUCCESS) rows_changed++;
  
++      if (error == DB_SUCCESS) rows_changed++;
++
        innodb_srv_conc_exit_innodb(prebuilt->trx);
  
-@@ -4039,6 +4045,9 @@
+       error = convert_error_code_to_mysql(error, user_thd);
+@@ -4092,6 +4098,9 @@
        if (ret == DB_SUCCESS) {
                error = 0;
                table->status = 0;
@@ -1503,9 +1306,9 @@ diff -r 0bb04c127c7e sql/ha_innodb.cc
  
        } else if (ret == DB_RECORD_NOT_FOUND) {
                error = HA_ERR_END_OF_FILE;
-diff -r 0bb04c127c7e sql/ha_myisam.cc
---- a/sql/ha_myisam.cc Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/ha_myisam.cc Fri Sep 12 01:26:22 2008 -0700
+diff -r 592f6c3641ba sql/ha_myisam.cc
+--- a/sql/ha_myisam.cc Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/ha_myisam.cc Wed Jul 29 13:34:11 2009 -0700
 @@ -670,7 +670,9 @@
      if ((error= update_auto_increment()))
        return error;
@@ -1517,7 +1320,7 @@ diff -r 0bb04c127c7e sql/ha_myisam.cc
  }
  
  int ha_myisam::check(THD* thd, HA_CHECK_OPT* check_opt)
-@@ -1518,13 +1520,17 @@
+@@ -1521,13 +1523,17 @@
    statistic_increment(table->in_use->status_var.ha_update_count,&LOCK_status);
    if (table->timestamp_field_type & TIMESTAMP_AUTO_SET_ON_UPDATE)
      table->timestamp_field->set_time();
@@ -1537,7 +1340,7 @@ diff -r 0bb04c127c7e sql/ha_myisam.cc
  }
  
  int ha_myisam::index_read(byte * buf, const byte * key,
-@@ -1535,6 +1541,13 @@
+@@ -1538,6 +1544,13 @@
                      &LOCK_status);
    int error=mi_rkey(file,buf,active_index, key, key_len, find_flag);
    table->status=error ? STATUS_NOT_FOUND: 0;
@@ -1551,7 +1354,7 @@ diff -r 0bb04c127c7e sql/ha_myisam.cc
    return error;
  }
  
-@@ -1545,6 +1558,13 @@
+@@ -1548,6 +1561,13 @@
                      &LOCK_status);
    int error=mi_rkey(file,buf,index, key, key_len, find_flag);
    table->status=error ? STATUS_NOT_FOUND: 0;
@@ -1565,7 +1368,7 @@ diff -r 0bb04c127c7e sql/ha_myisam.cc
    return error;
  }
  
-@@ -1555,6 +1575,13 @@
+@@ -1558,6 +1578,13 @@
                      &LOCK_status);
    int error=mi_rkey(file,buf,active_index, key, key_len, HA_READ_PREFIX_LAST);
    table->status=error ? STATUS_NOT_FOUND: 0;
@@ -1579,7 +1382,7 @@ diff -r 0bb04c127c7e sql/ha_myisam.cc
    return error;
  }
  
-@@ -1565,6 +1592,13 @@
+@@ -1568,6 +1595,13 @@
                      &LOCK_status);
    int error=mi_rnext(file,buf,active_index);
    table->status=error ? STATUS_NOT_FOUND: 0;
@@ -1593,7 +1396,7 @@ diff -r 0bb04c127c7e sql/ha_myisam.cc
    return error;
  }
  
-@@ -1575,6 +1609,13 @@
+@@ -1578,6 +1612,13 @@
                      &LOCK_status);
    int error=mi_rprev(file,buf, active_index);
    table->status=error ? STATUS_NOT_FOUND: 0;
@@ -1607,7 +1410,7 @@ diff -r 0bb04c127c7e sql/ha_myisam.cc
    return error;
  }
  
-@@ -1585,6 +1626,13 @@
+@@ -1588,6 +1629,13 @@
                      &LOCK_status);
    int error=mi_rfirst(file, buf, active_index);
    table->status=error ? STATUS_NOT_FOUND: 0;
@@ -1621,7 +1424,7 @@ diff -r 0bb04c127c7e sql/ha_myisam.cc
    return error;
  }
  
-@@ -1595,6 +1643,13 @@
+@@ -1598,6 +1646,13 @@
                      &LOCK_status);
    int error=mi_rlast(file, buf, active_index);
    table->status=error ? STATUS_NOT_FOUND: 0;
@@ -1635,7 +1438,7 @@ diff -r 0bb04c127c7e sql/ha_myisam.cc
    return error;
  }
  
-@@ -1611,6 +1666,13 @@
+@@ -1614,6 +1669,13 @@
      error= mi_rnext_same(file,buf);
    } while (error == HA_ERR_RECORD_DELETED);
    table->status=error ? STATUS_NOT_FOUND: 0;
@@ -1649,7 +1452,7 @@ diff -r 0bb04c127c7e sql/ha_myisam.cc
    return error;
  }
  
-@@ -1628,6 +1690,7 @@
+@@ -1631,6 +1693,7 @@
                      &LOCK_status);
    int error=mi_scan(file, buf);
    table->status=error ? STATUS_NOT_FOUND: 0;
@@ -1657,7 +1460,7 @@ diff -r 0bb04c127c7e sql/ha_myisam.cc
    return error;
  }
  
-@@ -1642,6 +1705,7 @@
+@@ -1645,6 +1708,7 @@
                      &LOCK_status);
    int error=mi_rrnd(file, buf, my_get_ptr(pos,ref_length));
    table->status=error ? STATUS_NOT_FOUND: 0;
@@ -1665,24 +1468,10 @@ diff -r 0bb04c127c7e sql/ha_myisam.cc
    return error;
  }
  
-diff -r 0bb04c127c7e sql/handler.cc
---- a/sql/handler.cc   Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/handler.cc   Fri Sep 12 01:26:22 2008 -0700
-@@ -19,6 +19,13 @@
- #ifdef USE_PRAGMA_IMPLEMENTATION
- #pragma implementation                                // gcc: Class implementation
- #endif
-+
-+/* 
-+ * Ugh. Something is fishy with the SAFE_MUTEX stuff in include/my_pthread.h.
-+ * This makes things compile with gcc 4.1
-+ */
-+#include <string>
-+
- #include "mysql_priv.h"
- #include "ha_heap.h"
-@@ -725,6 +732,8 @@
+diff -r 592f6c3641ba sql/handler.cc
+--- a/sql/handler.cc   Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/handler.cc   Wed Jul 29 13:34:11 2009 -0700
+@@ -726,6 +726,8 @@
      if (cookie)
        tc_log->unlog(cookie, xid);
      DBUG_EXECUTE_IF("crash_commit_after", abort(););
@@ -1691,15 +1480,15 @@ diff -r 0bb04c127c7e sql/handler.cc
  end:
      if (is_real_trans)
        start_waiting_global_read_lock(thd);
-@@ -824,6 +833,7 @@
+@@ -783,6 +785,7 @@
        thd->transaction.cleanup();
      }
    }
 +  thd->diff_rollback_trans++;
  #endif /* USING_TRANSACTIONS */
-   if (all)
-     thd->transaction_rollback_request= FALSE;
-@@ -1207,6 +1217,7 @@
+   DBUG_RETURN(error);
+ }
+@@ -1223,6 +1226,7 @@
      statistic_increment(thd->status_var.ha_rollback_count,&LOCK_status);
      *ht=0; // keep it conveniently zero-filled
    }
@@ -1707,7 +1496,7 @@ diff -r 0bb04c127c7e sql/handler.cc
    DBUG_RETURN(error);
  }
  
-@@ -1437,6 +1448,8 @@
+@@ -1453,6 +1457,8 @@
      else
        dupp_ref=ref+ALIGN_SIZE(ref_length);
    }
@@ -1716,12 +1505,17 @@ diff -r 0bb04c127c7e sql/handler.cc
    DBUG_RETURN(error);
  }
  
-@@ -2222,6 +2235,99 @@
+@@ -2287,6 +2293,111 @@
    return error;
  }
  
 +// Updates the global table stats with the TABLE this handler represents.
 +void handler::update_global_table_stats() {
++  if (!opt_userstat_running) {
++    rows_read = rows_changed = 0;
++    return;
++  }
++
 +  if (!rows_read && !rows_changed) return;  // Nothing to update.
 +  // table_cache_key is db_name + '\0' + table_name + '\0'.
 +  if (!table->s || !table->s->table_cache_key || !table->s->table_name) return;
@@ -1737,7 +1531,7 @@ diff -r 0bb04c127c7e sql/handler.cc
 +                                                (byte*)key,
 +                                                strlen(key)))) {
 +    if (!(table_stats = ((TABLE_STATS*)
-+                         my_malloc(sizeof(TABLE_STATS), MYF(MY_WME))))) {
++                         my_malloc(sizeof(TABLE_STATS), MYF(MY_WME | MY_ZEROFILL))))) {
 +      // Out of memory.
 +      sql_print_error("Allocating table stats failed.");
 +      goto end;
@@ -1771,6 +1565,13 @@ diff -r 0bb04c127c7e sql/handler.cc
 +  // table_cache_key is db_name + '\0' + table_name + '\0'.
 +  if (!table->s || !table->s->table_cache_key || !table->s->table_name) return;
 +
++  if (!opt_userstat_running) {
++    for (int x = 0; x < table->s->keys; x++) {
++      index_rows_read[x] = 0;
++    }
++    return;
++  }
++
 +  for (int x = 0; x < table->s->keys; x++) {
 +    if (index_rows_read[x]) {
 +      // Rows were read using this index.
@@ -1790,7 +1591,7 @@ diff -r 0bb04c127c7e sql/handler.cc
 +                                                    (byte*)key,
 +                                                    strlen(key)))) {
 +        if (!(index_stats = ((INDEX_STATS*)
-+                             my_malloc(sizeof(INDEX_STATS), MYF(MY_WME))))) {
++                             my_malloc(sizeof(INDEX_STATS), MYF(MY_WME | MY_ZEROFILL))))) {
 +          // Out of memory.
 +          sql_print_error("Allocating index stats failed.");
 +          goto end;
@@ -1816,20 +1617,20 @@ diff -r 0bb04c127c7e sql/handler.cc
  
  /****************************************************************************
  ** Some general functions that isn't in the handler class
-diff -r 0bb04c127c7e sql/handler.h
---- a/sql/handler.h    Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/handler.h    Fri Sep 12 01:26:22 2008 -0700
-@@ -30,6 +30,10 @@
- #if defined(HAVE_BERKELEY_DB) || defined(HAVE_INNOBASE_DB) || \
-     defined(HAVE_NDBCLUSTER_DB)
+diff -r 592f6c3641ba sql/handler.h
+--- a/sql/handler.h    Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/handler.h    Wed Jul 29 13:34:11 2009 -0700
+@@ -32,6 +32,10 @@
  #define USING_TRANSACTIONS
-+#endif
-+
-+#if MAX_KEY > 128
-+#error MAX_KEY is too large.  Values up to 128 are supported.
  #endif
  
++#if MAX_KEY > 128
++#error MAX_KEY is too large.  Values up to 128 are supported.
++#endif
++
  // the following is for checking tables
+ #define HA_ADMIN_ALREADY_DONE   1
 @@ -604,6 +608,9 @@
    bool  auto_increment_column_changed;
    bool implicit_emptied;                /* Can be !=0 only if HEAP */
@@ -1866,7 +1667,7 @@ diff -r 0bb04c127c7e sql/handler.h
    virtual double scan_time()
      { return ulonglong2double(data_file_length) / IO_SIZE + 2; }
    virtual double read_time(uint index, uint ranges, ha_rows rows)
-@@ -885,6 +898,9 @@
+@@ -886,6 +899,9 @@
    virtual bool is_crashed() const  { return 0; }
    virtual bool auto_repair() const { return 0; }
  
@@ -1876,9 +1677,9 @@ diff -r 0bb04c127c7e sql/handler.h
    /*
      default rename_table() and delete_table() rename/delete files with a
      given name and extensions from bas_ext()
-diff -r 0bb04c127c7e sql/lex.h
---- a/sql/lex.h        Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/lex.h        Fri Sep 12 01:26:22 2008 -0700
+diff -r 592f6c3641ba sql/lex.h
+--- a/sql/lex.h        Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/lex.h        Wed Jul 29 13:34:11 2009 -0700
 @@ -109,6 +109,7 @@
    { "CHECKSUM",               SYM(CHECKSUM_SYM)},
    { "CIPHER",         SYM(CIPHER_SYM)},
@@ -1919,10 +1720,10 @@ diff -r 0bb04c127c7e sql/lex.h
    { "USE_FRM",                SYM(USE_FRM)},
    { "USING",          SYM(USING)},
    { "UTC_DATE",         SYM(UTC_DATE_SYM)},
-diff -r 0bb04c127c7e sql/log.cc
---- a/sql/log.cc       Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/log.cc       Fri Sep 12 01:26:22 2008 -0700
-@@ -1847,18 +1847,24 @@
+diff -r 592f6c3641ba sql/log.cc
+--- a/sql/log.cc       Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/log.cc       Wed Jul 29 13:34:11 2009 -0700
+@@ -1958,18 +1958,24 @@
                           thd->current_insert_id);
        if (e.write(file))
          goto err;
@@ -1947,7 +1748,7 @@ diff -r 0bb04c127c7e sql/log.cc
        }
        if (thd->user_var_events.elements)
        {
-@@ -1874,6 +1880,8 @@
+@@ -1985,6 +1991,8 @@
                               user_var_event->charset_number);
          if (e.write(file))
            goto err;
@@ -1956,7 +1757,7 @@ diff -r 0bb04c127c7e sql/log.cc
        }
        }
      }
-@@ -1884,6 +1892,8 @@
+@@ -1995,6 +2003,8 @@
  
      if (event_info->write(file))
        goto err;
@@ -1965,7 +1766,7 @@ diff -r 0bb04c127c7e sql/log.cc
  
      if (file == &log_file) // we are writing to the real log (disk)
      {
-@@ -2005,6 +2015,7 @@
+@@ -2117,6 +2127,7 @@
      */
      if (qinfo.write(&log_file))
        goto err;
@@ -1973,7 +1774,7 @@ diff -r 0bb04c127c7e sql/log.cc
  
      /* Read from the file used to cache the queries .*/
      if (reinit_io_cache(cache, READ_CACHE, 0, 0, 0))
-@@ -2051,6 +2062,7 @@
+@@ -2163,6 +2174,7 @@
          /* write the first half of the split header */
          if (my_b_write(&log_file, header, carry))
            goto err;
@@ -1981,7 +1782,7 @@ diff -r 0bb04c127c7e sql/log.cc
  
          /*
            copy fixed second half of header to cache so the correct
-@@ -2119,6 +2131,8 @@
+@@ -2231,6 +2243,8 @@
        /* Write data to the binary log file */
        if (my_b_write(&log_file, cache->read_pos, length))
          goto err;
@@ -1990,7 +1791,7 @@ diff -r 0bb04c127c7e sql/log.cc
        cache->read_pos=cache->read_end;                // Mark buffer used up
        DBUG_EXECUTE_IF("half_binlogged_transaction", goto DBUG_skip_commit;);
      } while ((length=my_b_fill(cache)));
-@@ -2127,6 +2141,8 @@
+@@ -2239,6 +2253,8 @@
  
      if (commit_event->write(&log_file))
        goto err;
@@ -1999,10 +1800,10 @@ diff -r 0bb04c127c7e sql/log.cc
  #ifndef DBUG_OFF
  DBUG_skip_commit:
  #endif
-diff -r 0bb04c127c7e sql/mysql_priv.h
---- a/sql/mysql_priv.h Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/mysql_priv.h Fri Sep 12 01:26:22 2008 -0700
-@@ -816,7 +816,15 @@
+diff -r 592f6c3641ba sql/mysql_priv.h
+--- a/sql/mysql_priv.h Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/mysql_priv.h Wed Jul 29 13:34:11 2009 -0700
+@@ -837,7 +837,15 @@
  bool multi_delete_set_locks_and_link_aux_tables(LEX *lex);
  void init_max_user_conn(void);
  void init_update_queries(void);
@@ -2018,7 +1819,7 @@ diff -r 0bb04c127c7e sql/mysql_priv.h
  pthread_handler_t handle_one_connection(void *arg);
  pthread_handler_t handle_bootstrap(void *arg);
  void end_thread(THD *thd,bool put_in_cache);
-@@ -1393,6 +1401,7 @@
+@@ -1416,6 +1424,7 @@
  extern ulong max_connections,max_connect_errors, connect_timeout;
  extern ulong slave_net_timeout, slave_trans_retries;
  extern uint max_user_connections;
@@ -2026,7 +1827,15 @@ diff -r 0bb04c127c7e sql/mysql_priv.h
  extern ulong what_to_log,flush_time;
  extern ulong query_buff_size, thread_stack;
  extern ulong max_prepared_stmt_count, prepared_stmt_count;
-@@ -1468,6 +1477,14 @@
+@@ -1446,6 +1455,7 @@
+ extern my_bool opt_safe_show_db, opt_local_infile;
+ extern my_bool opt_slave_compressed_protocol, use_temp_pool;
+ extern my_bool opt_readonly, lower_case_file_system;
++extern my_bool opt_userstat_running;
+ extern my_bool opt_enable_named_pipe, opt_sync_frm, opt_allow_suspicious_udfs;
+ extern my_bool opt_secure_auth;
+ extern char* opt_secure_file_priv;
+@@ -1493,6 +1503,14 @@
  extern struct system_variables max_system_variables;
  extern struct system_status_var global_status_var;
  extern struct rand_struct sql_rand;
@@ -2041,10 +1850,18 @@ diff -r 0bb04c127c7e sql/mysql_priv.h
  
  extern const char *opt_date_time_formats[];
  extern KNOWN_DATE_TIME_FORMAT known_date_time_formats[];
-diff -r 0bb04c127c7e sql/mysqld.cc
---- a/sql/mysqld.cc    Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/mysqld.cc    Fri Sep 12 01:26:22 2008 -0700
-@@ -449,6 +449,7 @@
+diff -r 592f6c3641ba sql/mysqld.cc
+--- a/sql/mysqld.cc    Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/mysqld.cc    Wed Jul 29 13:34:11 2009 -0700
+@@ -417,6 +417,7 @@
+ uint    opt_large_page_size= 0;
+ my_bool opt_old_style_user_limits= 0, trust_function_creators= 0;
+ char* opt_slow_logname= 0;
++my_bool opt_userstat_running= 0;
+ /*
+   True if there is at least one per-hour limit for some user, so we should
+   check them before each query (and possibly reset counters when hour is
+@@ -453,6 +454,7 @@
  ulong binlog_cache_use= 0, binlog_cache_disk_use= 0;
  ulong max_connections, max_connect_errors;
  uint  max_user_connections= 0;
@@ -2052,7 +1869,7 @@ diff -r 0bb04c127c7e sql/mysqld.cc
  /*
    Limit of the total number of prepared statements in the server.
    Is necessary to protect the server against out-of-memory attacks.
-@@ -548,6 +549,10 @@
+@@ -555,6 +557,10 @@
                LOCK_crypt, LOCK_bytes_sent, LOCK_bytes_received,
                LOCK_global_system_variables,
                LOCK_user_conn, LOCK_slave_list, LOCK_active_mi;
@@ -2063,7 +1880,7 @@ diff -r 0bb04c127c7e sql/mysqld.cc
  /*
    The below lock protects access to two global server variables:
    max_prepared_stmt_count and prepared_stmt_count. These variables
-@@ -1189,6 +1194,10 @@
+@@ -1196,6 +1202,10 @@
    x_free(opt_secure_file_priv);
    bitmap_free(&temp_pool);
    free_max_user_conn();
@@ -2074,7 +1891,7 @@ diff -r 0bb04c127c7e sql/mysqld.cc
  #ifdef HAVE_REPLICATION
    end_slave_list();
    free_list(&replicate_do_db);
-@@ -1303,6 +1312,10 @@
+@@ -1310,6 +1320,10 @@
    (void) pthread_cond_destroy(&COND_thread_cache);
    (void) pthread_cond_destroy(&COND_flush_thread_cache);
    (void) pthread_cond_destroy(&COND_manager);
@@ -2085,7 +1902,7 @@ diff -r 0bb04c127c7e sql/mysqld.cc
  }
  
  #endif /*EMBEDDED_LIBRARY*/
-@@ -3148,6 +3161,10 @@
+@@ -3157,6 +3171,10 @@
    (void) pthread_mutex_init(&LOCK_rpl_status, MY_MUTEX_INIT_FAST);
    (void) pthread_cond_init(&COND_rpl_status, NULL);
  #endif
@@ -2096,7 +1913,7 @@ diff -r 0bb04c127c7e sql/mysqld.cc
    sp_cache_init();
    /* Parameter for threads created for connections */
    (void) pthread_attr_init(&connection_attrib);
-@@ -3419,6 +3436,10 @@
+@@ -3428,6 +3446,10 @@
      sql_print_error("Out of memory");
      unireg_abort(1);
    }
@@ -2107,7 +1924,7 @@ diff -r 0bb04c127c7e sql/mysqld.cc
    if (ha_init())
    {
      sql_print_error("Can't init databases");
-@@ -3501,6 +3522,8 @@
+@@ -3510,6 +3532,8 @@
  
    init_max_user_conn();
    init_update_queries();
@@ -2116,7 +1933,7 @@ diff -r 0bb04c127c7e sql/mysqld.cc
    DBUG_RETURN(0);
  }
  
-@@ -4182,6 +4205,7 @@
+@@ -4236,6 +4260,7 @@
    {
      DBUG_PRINT("error",("Too many connections"));
      close_connection(thd, ER_CON_COUNT_ERROR, 1);
@@ -2124,10 +1941,56 @@ diff -r 0bb04c127c7e sql/mysqld.cc
      delete thd;
      DBUG_VOID_RETURN;
    }
-diff -r 0bb04c127c7e sql/share/Makefile.in
---- a/sql/share/Makefile.in    Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/share/Makefile.in    Fri Sep 12 01:26:22 2008 -0700
-@@ -165,6 +165,7 @@
+@@ -5056,6 +5081,7 @@
+   OPT_PROFILING_USE_GETRUSAGE,
+   OPT_SLOW_LOG,
+   OPT_SLOW_QUERY_LOG_FILE,
++  OPT_USERSTAT_RUNNING,
+   OPT_USE_GLOBAL_LONG_QUERY_TIME,
+   OPT_INNODB_ROLLBACK_ON_TIMEOUT,
+   OPT_SECURE_FILE_PRIV,
+@@ -6523,6 +6549,10 @@
+    (gptr*) &max_system_variables.net_wait_timeout, 0, GET_ULONG,
+    REQUIRED_ARG, NET_WAIT_TIMEOUT, 1, IF_WIN(INT_MAX32/1000, LONG_TIMEOUT),
+    0, 1, 0},
++  {"userstat_running", OPT_USERSTAT_RUNNING,
++   "Control USER_STATISTICS, CLIENT_STATISTICS, INDEX_STATISTICS and TABLE_STATISTICS running",
++   (gptr*) &opt_userstat_running, (gptr*) &opt_userstat_running,
++   0, GET_BOOL, NO_ARG, 0, 0, 1, 0, 1, 0},
+   {0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
+ };
+diff -r 592f6c3641ba sql/set_var.cc
+--- a/sql/set_var.cc   Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/set_var.cc   Wed Jul 29 13:34:11 2009 -0700
+@@ -325,6 +325,7 @@
+ sys_var_thd_ulong     sys_read_buff_size("read_buffer_size",
+                                          &SV::read_buff_size);
+ sys_var_bool_ptr      sys_readonly("read_only", &opt_readonly);
++sys_var_bool_ptr      sys_userstat_running("userstat_running", &opt_userstat_running);
+ sys_var_thd_ulong     sys_read_rnd_buff_size("read_rnd_buffer_size",
+                                              &SV::read_rnd_buff_size);
+ sys_var_thd_ulong     sys_div_precincrement("div_precision_increment",
+@@ -837,6 +838,7 @@
+   &sys_trans_alloc_block_size,
+   &sys_trans_prealloc_size,
+   &sys_tx_isolation,
++  &sys_userstat_running,
+   &sys_version,
+ #ifdef HAVE_BERKELEY_DB
+   &sys_version_bdb,
+@@ -1190,6 +1192,7 @@
+   {sys_tx_isolation.name,     (char*) &sys_tx_isolation,          SHOW_SYS},
+   {sys_updatable_views_with_limit.name,
+                               (char*) &sys_updatable_views_with_limit,SHOW_SYS},
++  {sys_userstat_running.name, (char*) &sys_userstat_running,        SHOW_SYS},
+   {sys_use_global_long_query_time.name, (char*) &sys_use_global_long_query_time, SHOW_SYS},
+   {sys_version.name,          (char*) &sys_version,                 SHOW_SYS},
+ #ifdef HAVE_BERKELEY_DB
+diff -r 592f6c3641ba sql/share/Makefile.in
+--- a/sql/share/Makefile.in    Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/share/Makefile.in    Wed Jul 29 13:34:11 2009 -0700
+@@ -144,6 +144,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -2135,16 +1998,16 @@ diff -r 0bb04c127c7e sql/share/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e sql/sql_base.cc
---- a/sql/sql_base.cc  Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/sql_base.cc  Fri Sep 12 01:26:22 2008 -0700
+diff -r 592f6c3641ba sql/sql_base.cc
+--- a/sql/sql_base.cc  Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/sql_base.cc  Wed Jul 29 13:34:11 2009 -0700
 @@ -624,6 +624,12 @@
    DBUG_ENTER("close_thread_table");
    DBUG_ASSERT(table->key_read == 0);
    DBUG_ASSERT(!table->file || table->file->inited == handler::NONE);
 +  
 +  if(table->file)
-+  { 
++  {
 +    table->file->update_global_table_stats();
 +    table->file->update_global_index_stats();
 +  }
@@ -2161,10 +2024,10 @@ diff -r 0bb04c127c7e sql/sql_base.cc
    db_type table_type=table->s->db_type;
    strmov(path,table->s->path);
    free_io_cache(table);
-diff -r 0bb04c127c7e sql/sql_class.cc
---- a/sql/sql_class.cc Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/sql_class.cc Fri Sep 12 01:26:22 2008 -0700
-@@ -235,6 +235,12 @@
+diff -r 592f6c3641ba sql/sql_class.cc
+--- a/sql/sql_class.cc Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/sql_class.cc Wed Jul 29 13:34:11 2009 -0700
+@@ -239,6 +239,13 @@
    bzero(ha_data, sizeof(ha_data));
    mysys_var=0;
    binlog_evt_union.do_union= FALSE;
@@ -2174,10 +2037,11 @@ diff -r 0bb04c127c7e sql/sql_class.cc
 +  bytes_sent = 0;
 +  binlog_bytes_written = 0;
 +  updated_row_count = 0;
++  sent_row_count_2 = 0;
  #ifndef DBUG_OFF
    dbug_sentry=THD_SENTRY_MAGIC;
  #endif
-@@ -368,6 +374,86 @@
+@@ -378,6 +385,88 @@
    total_warn_count= 0;
    update_charset();
    bzero((char *) &status_var, sizeof(status_var));
@@ -2214,12 +2078,13 @@ diff -r 0bb04c127c7e sql/sql_class.cc
 +
 +// Updates 'diff' stats of a THD.
 +void THD::update_stats(bool ran_command) {
++  if (opt_userstat_running) {
 +  diff_total_busy_time += busy_time;
 +  diff_total_cpu_time += cpu_time;
 +  diff_total_bytes_received += bytes_received;
 +  diff_total_bytes_sent += bytes_sent;
 +  diff_total_binlog_bytes_written += binlog_bytes_written;
-+  diff_total_sent_rows += sent_row_count;
++  diff_total_sent_rows += sent_row_count_2;
 +  diff_total_updated_rows += updated_row_count;
 +  // diff_total_read_rows is updated in handler.cc.
 +
@@ -2231,13 +2096,13 @@ diff -r 0bb04c127c7e sql/sql_class.cc
 +      if (lex->sql_command == SQLCOM_SELECT) {
 +        if (lex->orig_sql_command == SQLCOM_END) {
 +          diff_select_commands++;
-+          if (!sent_row_count)
++          if (!sent_row_count_2)
 +            diff_empty_queries++;
 +        } else {
 +          // 'SHOW ' commands become SQLCOM_SELECT.
 +          diff_other_commands++;
 +          // 'SHOW ' commands shouldn't inflate total sent row count.
-+          diff_total_sent_rows -= sent_row_count;
++          diff_total_sent_rows -= sent_row_count_2;
 +        }
 +      } else if (is_update_query(lex->sql_command)) {
 +        diff_update_commands++;
@@ -2254,31 +2119,21 @@ diff -r 0bb04c127c7e sql/sql_class.cc
 +
 +  /* reset counters to zero to avoid double-counting since values
 +     are already store in diff_total_*. */
++  }
 +  busy_time = 0;
 +  cpu_time = 0;
 +  bytes_received = 0;
 +  bytes_sent = 0;
 +  binlog_bytes_written = 0;
-+  sent_row_count = 0;
 +  updated_row_count = 0;
++  sent_row_count_2 = 0;
  }
  
  
-@@ -407,6 +493,9 @@
- void THD::change_user(void)
- {
-+  pthread_mutex_lock(&LOCK_status);
-+  add_to_status(&global_status_var, &status_var);
-+  pthread_mutex_unlock(&LOCK_status);
-   cleanup();
-   cleanup_done= 0;
-   init();
-@@ -890,6 +979,33 @@
-   DBUG_VOID_RETURN;
+@@ -907,6 +996,33 @@
  }
  #endif
-+
 +char *THD::get_client_host_port(THD *client)
 +{
 +  Security_context *client_sctx= client->security_ctx;
@@ -2305,10 +2160,27 @@ diff -r 0bb04c127c7e sql/sql_class.cc
 +      client->security_ctx->host_or_ip :
 +      client->security_ctx->host ? client->security_ctx->host : "";
 +}
++
  
  struct Item_change_record: public ilink
-@@ -2078,6 +2194,7 @@
+ {
+@@ -1082,6 +1198,7 @@
+     buffer.set(buff, sizeof(buff), &my_charset_bin);
+   }
+   thd->sent_row_count++;
++  thd->sent_row_count_2++;
+   if (!thd->vio_ok())
+     DBUG_RETURN(0);
+   if (!thd->net.report_error)
+@@ -1174,6 +1291,7 @@
+ select_export::~select_export()
+ {
+   thd->sent_row_count=row_count;
++  thd->sent_row_count_2=row_count;
+ }
+@@ -2108,6 +2226,7 @@
    if (likely(thd != 0))
    { /* current_thd==0 when close_connection() calls net_send_error() */
      thd->status_var.bytes_sent+= length;
@@ -2316,7 +2188,7 @@ diff -r 0bb04c127c7e sql/sql_class.cc
    }
  }
  
-@@ -2085,6 +2202,7 @@
+@@ -2115,6 +2234,7 @@
  void thd_increment_bytes_received(ulong length)
  {
    current_thd->status_var.bytes_received+= length;
@@ -2324,10 +2196,10 @@ diff -r 0bb04c127c7e sql/sql_class.cc
  }
  
  
-diff -r 0bb04c127c7e sql/sql_class.h
---- a/sql/sql_class.h  Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/sql_class.h  Fri Sep 12 01:26:22 2008 -0700
-@@ -1289,6 +1289,8 @@
+diff -r 592f6c3641ba sql/sql_class.h
+--- a/sql/sql_class.h  Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/sql_class.h  Wed Jul 29 13:34:11 2009 -0700
+@@ -1302,6 +1302,8 @@
      first byte of the packet in do_command()
    */
    enum enum_server_command command;
@@ -2336,15 +2208,16 @@ diff -r 0bb04c127c7e sql/sql_class.h
    uint32     server_id;
    uint32     file_id;                 // for LOAD DATA INFILE
    /*
-@@ -1478,6 +1480,7 @@
+@@ -1498,6 +1500,8 @@
    /* variables.transaction_isolation is reset to this after each commit */
    enum_tx_isolation session_tx_isolation;
    enum_check_fields count_cuted_fields;
 +  ha_rows    updated_row_count;
++  ha_rows    sent_row_count_2; /* for userstat */
  
    DYNAMIC_ARRAY user_var_events;        /* For user variables replication */
    MEM_ROOT      *user_var_events_alloc; /* Allocate above array elements here */
-@@ -1584,6 +1587,49 @@
+@@ -1607,6 +1611,49 @@
    */
    LOG_INFO*  current_linfo;
    NET*       slave_net;                       // network connection from slave -> m.
@@ -2394,7 +2267,7 @@ diff -r 0bb04c127c7e sql/sql_class.h
    /* Used by the sys_var class to store temporary values */
    union
    {
-@@ -1641,6 +1687,11 @@
+@@ -1662,6 +1709,11 @@
      alloc_root.
    */
    void init_for_queries();
@@ -2406,7 +2279,7 @@ diff -r 0bb04c127c7e sql/sql_class.h
    void change_user(void);
    void cleanup(void);
    void cleanup_after_query();
-@@ -1870,7 +1921,13 @@
+@@ -1891,8 +1943,14 @@
      if (p_db_length)
        *p_db_length= db_length;
      return FALSE;
@@ -2415,12 +2288,13 @@ diff -r 0bb04c127c7e sql/sql_class.h
 +  // by 'client' as displayed by SHOW PROCESSLIST. Allocates memory from the heap of
 +  // this THD and that is not reclaimed immediately, so use sparingly. May return NULL.
    }
-+
-+  char *get_client_host_port(THD *client);
  
++  char *get_client_host_port(THD *client);
++
  public:
    /**
-@@ -1914,6 +1971,11 @@
+     Add an internal error handler to the thread execution context.
+@@ -1935,6 +1993,10 @@
    MEM_ROOT main_mem_root;
  };
  
@@ -2428,13 +2302,12 @@ diff -r 0bb04c127c7e sql/sql_class.h
 +// 'client'. Does not allocate memory. May return "".
 +const char *get_client_host(THD *client);
 +
-+#define LIST_PROCESS_HOST_LEN 64
  
  #define tmp_disable_binlog(A)       \
    {ulonglong tmp_disable_binlog__save_options= (A)->options; \
-diff -r 0bb04c127c7e sql/sql_delete.cc
---- a/sql/sql_delete.cc        Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/sql_delete.cc        Fri Sep 12 01:26:22 2008 -0700
+diff -r 592f6c3641ba sql/sql_delete.cc
+--- a/sql/sql_delete.cc        Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/sql_delete.cc        Wed Jul 29 13:34:11 2009 -0700
 @@ -358,6 +358,7 @@
      send_ok(thd,deleted);
      DBUG_PRINT("info",("%ld records deleted",(long) deleted));
@@ -2443,7 +2316,7 @@ diff -r 0bb04c127c7e sql/sql_delete.cc
    DBUG_RETURN(error >= 0 || thd->net.report_error);
  }
  
-@@ -869,6 +870,7 @@
+@@ -887,6 +888,7 @@
      thd->row_count_func= deleted;
      ::send_ok(thd, deleted);
    }
@@ -2451,10 +2324,10 @@ diff -r 0bb04c127c7e sql/sql_delete.cc
    return 0;
  }
  
-diff -r 0bb04c127c7e sql/sql_insert.cc
---- a/sql/sql_insert.cc        Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/sql_insert.cc        Fri Sep 12 01:26:22 2008 -0700
-@@ -989,6 +989,7 @@
+diff -r 592f6c3641ba sql/sql_insert.cc
+--- a/sql/sql_insert.cc        Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/sql_insert.cc        Wed Jul 29 13:34:11 2009 -0700
+@@ -990,6 +990,7 @@
      thd->row_count_func= info.copied + info.deleted + updated;
      ::send_ok(thd, (ulong) thd->row_count_func, id, buff);
    }
@@ -2462,7 +2335,7 @@ diff -r 0bb04c127c7e sql/sql_insert.cc
    thd->abort_on_warning= 0;
    DBUG_RETURN(FALSE);
  
-@@ -3027,6 +3028,7 @@
+@@ -3094,6 +3095,7 @@
      autoinc_value_of_first_inserted_row : thd->insert_id_used ?
      thd->last_insert_id : 0;
    ::send_ok(thd, (ulong) thd->row_count_func, id, buff);
@@ -2470,40 +2343,39 @@ diff -r 0bb04c127c7e sql/sql_insert.cc
    DBUG_RETURN(0);
  }
  
-diff -r 0bb04c127c7e sql/sql_lex.h
---- a/sql/sql_lex.h    Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/sql_lex.h    Fri Sep 12 01:26:22 2008 -0700
-@@ -100,6 +100,9 @@
-   SQLCOM_XA_START, SQLCOM_XA_END, SQLCOM_XA_PREPARE,
-   SQLCOM_XA_COMMIT, SQLCOM_XA_ROLLBACK, SQLCOM_XA_RECOVER,
-   SQLCOM_SHOW_PROC_CODE, SQLCOM_SHOW_FUNC_CODE,
+diff -r 592f6c3641ba sql/sql_lex.h
+--- a/sql/sql_lex.h    Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/sql_lex.h    Wed Jul 29 13:34:11 2009 -0700
+@@ -101,6 +101,9 @@
+     When a command is added here, be sure it's also added in mysqld.cc
+     in "struct show_var_st status_vars[]= {" ...
+   */
 +  // TODO(mcallaghan): update status_vars in mysqld to export these
 +  SQLCOM_SHOW_USER_STATS, SQLCOM_SHOW_TABLE_STATS, SQLCOM_SHOW_INDEX_STATS,
 +  SQLCOM_SHOW_CLIENT_STATS,
    /* This should be the last !!! */
-
    SQLCOM_END
-diff -r 0bb04c127c7e sql/sql_parse.cc
---- a/sql/sql_parse.cc Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/sql_parse.cc Fri Sep 12 01:26:22 2008 -0700
-@@ -79,6 +79,12 @@
+ };
+diff -r 592f6c3641ba sql/sql_parse.cc
+--- a/sql/sql_parse.cc Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/sql_parse.cc Wed Jul 29 13:34:11 2009 -0700
+@@ -78,6 +78,12 @@
+                              const char *table_name);
  static bool check_show_create_table_access(THD *thd, TABLE_LIST *table);
- static bool test_if_data_home_dir(const char *dir);
  
 +// Increments connection count for user.
 +static int increment_connection_count(THD* thd, bool use_lock);
 +
 +// Uses the THD to update the global stats by user name and client IP
-+static void update_global_user_stats(THD* thd, bool create_user, time_t now);
++void update_global_user_stats(THD* thd, bool create_user, time_t now);
 +
  const char *any_db="*any*";   // Special symbol for check_access
  
  const char *command_name[]={
-@@ -98,6 +104,17 @@
- #ifndef EMBEDDED_LIBRARY
+@@ -146,6 +152,17 @@
  static bool do_command(THD *thd);
  #endif // EMBEDDED_LIBRARY
-+
 +HASH global_user_stats;
 +HASH global_client_stats;
 +// Protects global_user_stats and global_client_stats
@@ -2514,18 +2386,19 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
 +
 +HASH global_index_stats;
 +extern pthread_mutex_t LOCK_global_index_stats;
++
  #ifdef __WIN__
  extern void win_install_sigabrt_handler(void);
-@@ -457,6 +474,7 @@
-     mysql_log.write(thd,COM_CONNECT,ER(ER_NOT_SUPPORTED_AUTH_MODE));
+ #endif
+@@ -504,6 +521,7 @@
+     mysql_log.write(thd,COM_CONNECT,"%s",ER(ER_NOT_SUPPORTED_AUTH_MODE));
      DBUG_RETURN(-1);
    }
 +  thd->diff_access_denied_errors++;
    net_printf_error(thd, ER_ACCESS_DENIED_ERROR,
                     thd->main_security_ctx.user,
                     thd->main_security_ctx.host_or_ip,
-@@ -489,12 +507,190 @@
+@@ -536,12 +554,190 @@
  void init_max_user_conn(void)
  {
  #ifndef NO_EMBEDDED_ACCESS_CHECKS
@@ -2722,7 +2595,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
  
  
  /*
-@@ -552,7 +748,10 @@
+@@ -599,7 +795,10 @@
  
    end:
    if (error)
@@ -2733,7 +2606,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
    (void) pthread_mutex_unlock(&LOCK_user_conn);
    DBUG_RETURN(error);
  }
-@@ -599,6 +798,25 @@
+@@ -646,6 +845,25 @@
  #endif /* NO_EMBEDDED_ACCESS_CHECKS */
  }
  
@@ -2759,7 +2632,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
  
  
  /*
-@@ -651,6 +869,207 @@
+@@ -698,6 +916,214 @@
    return uc_update_queries[command] != 0;
  }
  
@@ -2784,7 +2657,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
 +  {
 +    // First connection for this user or client
 +    if (!(user_stats = ((USER_STATS*)
-+                        my_malloc(sizeof(USER_STATS), MYF(MY_WME)))))
++                        my_malloc(sizeof(USER_STATS), MYF(MY_WME | MY_ZEROFILL)))))
 +    {
 +      return 1; // Out of memory
 +    }
@@ -2820,6 +2693,9 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
 +  const char* client_string = get_client_host(thd);
 +  int return_value = 0;
 +
++  if (!opt_userstat_running)
++    return return_value;
++
 +  if (use_lock) pthread_mutex_lock(&LOCK_global_user_client_stats);
 +
 +  if (increment_count_by_name(user_string, user_string,
@@ -2868,8 +2744,9 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
 +}
 +
 +// Updates the global stats of a user or client
-+static void update_global_user_stats(THD* thd, bool create_user, time_t now)
++void update_global_user_stats(THD* thd, bool create_user, time_t now)
 +{
++  if (opt_userstat_running) {
 +  char* user_string = get_valid_user_string(thd->main_security_ctx.user);
 +  const char* client_string = get_client_host(thd);
 +
@@ -2907,6 +2784,9 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
 +  thd->reset_diff_stats();
 +
 +  pthread_mutex_unlock(&LOCK_global_user_client_stats);
++  } else {
++  thd->reset_diff_stats();
++  }
 +}
 +
 +// Determines the concurrent number of connections of current threads.
@@ -2967,7 +2847,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
  /*
    Reset per-hour user resource limits when it has been more than
    an hour since they were last checked
-@@ -1137,6 +1556,8 @@
+@@ -1184,6 +1610,8 @@
      my_net_set_read_timeout(net, connect_timeout);
      my_net_set_write_timeout(net, connect_timeout);
  
@@ -2976,7 +2856,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
      if ((error=check_connection(thd)))
      {                                         // Wrong permissions
        if (error > 0)
-@@ -1146,8 +1567,22 @@
+@@ -1193,8 +1621,22 @@
        my_sleep(1000);                         /* must wait after eof() */
  #endif
        statistic_increment(aborted_connects,&LOCK_status);
@@ -2999,15 +2879,15 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
  #ifdef __NETWARE__
      netware_reg_user(sctx->ip, sctx->user, "MySQL");
  #endif
-@@ -1204,6 +1639,7 @@
-         net->vio && net->error && net->report_error)
+@@ -1251,6 +1693,7 @@
+         (net->vio && net->error && net->report_error))
      {
        statistic_increment(aborted_threads, &LOCK_status);
 +      thd->diff_lost_connections++;
      }
  
      if (net->error && net->vio != 0 && net->report_error)
-@@ -1223,6 +1659,8 @@
+@@ -1270,6 +1713,8 @@
  
  end_thread:
      close_connection(thd, 0, 1);
@@ -3016,7 +2896,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
      end_thread(thd,1);
      /*
        If end_thread returns, we are either running with --one-thread
-@@ -1554,6 +1992,13 @@
+@@ -1601,6 +2046,13 @@
  
    thd->clear_error();                         // Clear error message
  
@@ -3030,7 +2910,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
    net_new_transaction(net);
  
    packet_length= my_net_read(net);
-@@ -1712,6 +2157,9 @@
+@@ -1759,6 +2211,9 @@
    }
  
    thd->command=command;
@@ -3040,7 +2920,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
    /*
      Commands which always take a long time are logged into
      the slow log only if opt_log_slow_admin_statements is set.
-@@ -4356,6 +4804,15 @@
+@@ -4539,6 +4994,15 @@
      if (check_global_access(thd,RELOAD_ACL))
        goto error;
  
@@ -3056,7 +2936,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
      /*
        reload_acl_and_cache() will tell us if we are allowed to write to the
        binlog or not.
-@@ -4663,6 +5120,7 @@
+@@ -4847,6 +5311,7 @@
      {
        if (check_global_access(thd, SUPER_ACL))
        {
@@ -3064,7 +2944,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
          my_error(ER_SPECIFIC_ACCESS_DENIED_ERROR, MYF(0), "SUPER");
          goto create_sp_error;
        }
-@@ -5487,6 +5945,7 @@
+@@ -5691,6 +6156,7 @@
        if (!no_errors)
        {
          const char *db_name= db ? db : thd->db;
@@ -3072,7 +2952,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
          my_error(ER_DBACCESS_DENIED_ERROR, MYF(0),
                   sctx->priv_user, sctx->priv_host, db_name);
        }
-@@ -5522,6 +5981,7 @@
+@@ -5726,6 +6192,7 @@
    {                                           // We can never grant this
      DBUG_PRINT("error",("No possible access"));
      if (!no_errors)
@@ -3080,7 +2960,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
        my_error(ER_ACCESS_DENIED_ERROR, MYF(0),
                 sctx->priv_user,
                 sctx->priv_host,
-@@ -5554,11 +6014,15 @@
+@@ -5758,11 +6225,15 @@
  
    DBUG_PRINT("error",("Access denied"));
    if (!no_errors)
@@ -3096,7 +2976,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
    DBUG_RETURN(TRUE);                          /* purecov: tested */
  #endif /* NO_EMBEDDED_ACCESS_CHECKS */
  }
-@@ -5592,6 +6056,7 @@
+@@ -5796,6 +6267,7 @@
    if ((thd->security_ctx->master_access & want_access))
      return 0;
    get_privilege_desc(command, sizeof(command), want_access);
@@ -3104,7 +2984,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
    my_error(ER_SPECIFIC_ACCESS_DENIED_ERROR, MYF(0), command);
    return 1;
  #endif /* NO_EMBEDDED_ACCESS_CHECKS */
-@@ -5624,6 +6089,7 @@
+@@ -5828,6 +6300,7 @@
  
        if (!thd->col_access && check_grant_db(thd, dst_db_name))
        {
@@ -3112,7 +2992,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
          my_error(ER_DBACCESS_DENIED_ERROR, MYF(0),
                   thd->security_ctx->priv_user,
                   thd->security_ctx->priv_host,
-@@ -5655,6 +6121,12 @@
+@@ -5859,6 +6332,12 @@
               check_grant(thd, SELECT_ACL, dst_table, 2, UINT_MAX, FALSE);
      }
  
@@ -3125,7 +3005,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
    case SCH_OPEN_TABLES:
    case SCH_VARIABLES:
    case SCH_STATUS:
-@@ -5708,8 +6180,8 @@
+@@ -5912,8 +6391,8 @@
  #ifndef NO_EMBEDDED_ACCESS_CHECKS
    TABLE_LIST *org_tables= tables;
  #endif
@@ -3135,7 +3015,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
    /*
      The check that first_not_own_table is not reached is for the case when
      the given table list refers to the list for prelocking (contains tables
-@@ -5726,9 +6198,12 @@
+@@ -5930,9 +6409,12 @@
          (want_access & ~(SELECT_ACL | EXTRA_ACL | FILE_ACL)))
      {
        if (!no_errors)
@@ -3148,11 +3028,10 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
        return TRUE;
      }
      /*
-@@ -6231,6 +6706,29 @@
-   */
+@@ -6442,6 +6924,30 @@
    lex_start(thd);
    mysql_reset_thd_for_next_command(thd);
-+
 +  int start_time_error = 0;
 +  int end_time_error = 0;
 +  struct timeval start_time, end_time;
@@ -3164,53 +3043,59 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
 +  double start_cpu_nsecs = 0;
 +  double end_cpu_nsecs = 0;
 +
++  if (opt_userstat_running) {
 +#ifdef HAVE_CLOCK_GETTIME
-+  /* get start cputime */ 
-+  if (!(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
-+    start_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
++    /* get start cputime */ 
++    if (!(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
++      start_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
 +#endif
 +
-+  // Gets the start time, in order to measure how long this command takes.
-+  if (!(start_time_error = gettimeofday(&start_time, NULL))) {
-+    start_usecs = start_time.tv_sec * 1000000.0 + start_time.tv_usec;
++    // Gets the start time, in order to measure how long this command takes.
++    if (!(start_time_error = gettimeofday(&start_time, NULL))) {
++      start_usecs = start_time.tv_sec * 1000000.0 + start_time.tv_usec;
++    }
 +  }
 +
    if (query_cache_send_result_to_client(thd, (char*) inBuf, length) <= 0)
    {
-@@ -6308,6 +6806,39 @@
+     LEX *lex= thd->lex;
+@@ -6520,6 +7026,43 @@
      *found_semicolon= NULL;
    }
  
++  if (opt_userstat_running) {
++    // Gets the end time.
++    if (!(end_time_error = gettimeofday(&end_time, NULL))) {
++      end_usecs = end_time.tv_sec * 1000000.0 + end_time.tv_usec;
++    }
 +
-+  // Gets the end time.
-+  if (!(end_time_error = gettimeofday(&end_time, NULL))) {
-+    end_usecs = end_time.tv_sec * 1000000.0 + end_time.tv_usec;
-+  }
-+
-+  // Calculates the difference between the end and start times.
-+  if (end_usecs >= start_usecs && !start_time_error && !end_time_error) {
-+    thd->busy_time = (end_usecs - start_usecs) / 1000000;
-+    // In case there are bad values, 2629743 is the #seconds in a month.
-+    if (thd->busy_time > 2629743) {
++    // Calculates the difference between the end and start times.
++    if (start_usecs && end_usecs >= start_usecs && !start_time_error && !end_time_error) {
++      thd->busy_time = (end_usecs - start_usecs) / 1000000;
++      // In case there are bad values, 2629743 is the #seconds in a month.
++      if (thd->busy_time > 2629743) {
++        thd->busy_time = 0;
++      }
++    } else {
++      // end time went back in time, or gettimeofday() failed.
 +      thd->busy_time = 0;
 +    }
-+  } else {
-+    // end time went back in time, or gettimeofday() failed.
-+    thd->busy_time = 0;
-+  }
 +
 +#ifdef HAVE_CLOCK_GETTIME
-+  /* get end cputime */
-+  if (!cputime_error &&
-+      !(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
-+    end_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
++    /* get end cputime */
++    if (!cputime_error &&
++        !(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
++      end_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
 +#endif
-+  if (!cputime_error)
-+    thd->cpu_time = (end_cpu_nsecs - start_cpu_nsecs) / 1000000000;
-+  else
-+    thd->cpu_time = 0;
-+
++    if (start_cpu_nsecs && !cputime_error) {
++      thd->cpu_time = (end_cpu_nsecs - start_cpu_nsecs) / 1000000000;
++      // In case there are bad values, 2629743 is the #seconds in a month.
++      if (thd->cpu_time > 2629743) {
++        thd->cpu_time = 0;
++      }
++    } else
++      thd->cpu_time = 0;
++  }
 +  // Updates THD stats and the global user stats.
 +  thd->update_stats(true);
 +  update_global_user_stats(thd, true, time(NULL));
@@ -3218,7 +3103,7 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
    DBUG_VOID_RETURN;
  }
  
-@@ -7300,8 +7831,35 @@
+@@ -7531,8 +8074,35 @@
     pthread_mutex_unlock(&LOCK_active_mi);
   }
  #endif
@@ -3256,10 +3141,348 @@ diff -r 0bb04c127c7e sql/sql_parse.cc
   *write_to_binlog= tmp_write_to_binlog;
   return result;
  }
-diff -r 0bb04c127c7e sql/sql_show.cc
---- a/sql/sql_show.cc  Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/sql_show.cc  Fri Sep 12 01:26:22 2008 -0700
-@@ -530,6 +530,7 @@
+diff -r 592f6c3641ba sql/sql_prepare.cc
+--- a/sql/sql_prepare.cc       Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/sql_prepare.cc       Wed Jul 29 13:34:11 2009 -0700
+@@ -81,6 +81,9 @@
+ #include <mysql_com.h>
+ #endif
++// Uses the THD to update the global stats by user name and client IP
++void update_global_user_stats(THD* thd, bool create_user, time_t now);
++
+ /* A result class used to send cursor rows using the binary protocol. */
+ class Select_fetch_protocol_prep: public select_send
+@@ -1910,8 +1913,32 @@
+   /* First of all clear possible warnings from the previous command */
+   mysql_reset_thd_for_next_command(thd);
++  int start_time_error = 0;
++  int end_time_error = 0;
++  struct timeval start_time, end_time;
++  double start_usecs = 0;
++  double end_usecs = 0;
++  /* cpu time */
++  int cputime_error = 0;
++  struct timespec tp;
++  double start_cpu_nsecs = 0;
++  double end_cpu_nsecs = 0;
++
++  if (opt_userstat_running) {
++#ifdef HAVE_CLOCK_GETTIME
++    /* get start cputime */
++    if (!(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
++      start_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
++#endif
++
++    // Gets the start time, in order to measure how long this command takes.
++    if (!(start_time_error = gettimeofday(&start_time, NULL))) {
++      start_usecs = start_time.tv_sec * 1000000.0 + start_time.tv_usec;
++    }
++  }
++
+   if (! (stmt= new Prepared_statement(thd, &thd->protocol_prep)))
+-    DBUG_VOID_RETURN; /* out of memory: error is set in Sql_alloc */
++    goto end; /* out of memory: error is set in Sql_alloc */
+   if (thd->stmt_map.insert(thd, stmt))
+   {
+@@ -1919,7 +1946,7 @@
+       The error is set in the insert. The statement itself
+       will be also deleted there (this is how the hash works).
+     */
+-    DBUG_VOID_RETURN;
++    goto end;
+   }
+   /* Reset warnings from previous command */
+@@ -1941,6 +1968,44 @@
+     thd->stmt_map.erase(stmt);
+   }
+   /* check_prepared_statemnt sends the metadata packet in case of success */
++end:
++  if (opt_userstat_running) {
++    // Gets the end time.
++    if (!(end_time_error = gettimeofday(&end_time, NULL))) {
++      end_usecs = end_time.tv_sec * 1000000.0 + end_time.tv_usec;
++    }
++
++    // Calculates the difference between the end and start times.
++    if (start_usecs && end_usecs >= start_usecs && !start_time_error && !end_time_error) {
++      thd->busy_time = (end_usecs - start_usecs) / 1000000;
++      // In case there are bad values, 2629743 is the #seconds in a month.
++      if (thd->busy_time > 2629743) {
++        thd->busy_time = 0;
++      }
++    } else {
++      // end time went back in time, or gettimeofday() failed.
++      thd->busy_time = 0;
++    }
++
++#ifdef HAVE_CLOCK_GETTIME
++    /* get end cputime */
++    if (!cputime_error &&
++        !(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
++      end_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
++#endif
++    if (start_cpu_nsecs && !cputime_error) {
++      thd->cpu_time = (end_cpu_nsecs - start_cpu_nsecs) / 1000000000;
++      // In case there are bad values, 2629743 is the #seconds in a month.
++      if (thd->cpu_time > 2629743) {
++        thd->cpu_time = 0;
++      }
++    } else
++      thd->cpu_time = 0;
++  }
++  // Updates THD stats and the global user stats.
++  thd->update_stats(true);
++  update_global_user_stats(thd, true, time(NULL));
++
+   DBUG_VOID_RETURN;
+ }
+@@ -2281,8 +2346,32 @@
+   /* First of all clear possible warnings from the previous command */
+   mysql_reset_thd_for_next_command(thd);
++  int start_time_error = 0;
++  int end_time_error = 0;
++  struct timeval start_time, end_time;
++  double start_usecs = 0;
++  double end_usecs = 0;
++  /* cpu time */
++  int cputime_error = 0;
++  struct timespec tp;
++  double start_cpu_nsecs = 0;
++  double end_cpu_nsecs = 0;
++
++  if (opt_userstat_running) {
++#ifdef HAVE_CLOCK_GETTIME
++    /* get start cputime */
++    if (!(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
++      start_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
++#endif
++
++    // Gets the start time, in order to measure how long this command takes.
++    if (!(start_time_error = gettimeofday(&start_time, NULL))) {
++      start_usecs = start_time.tv_sec * 1000000.0 + start_time.tv_usec;
++    }
++  }
++
+   if (!(stmt= find_prepared_statement(thd, stmt_id, "mysql_stmt_execute")))
+-    DBUG_VOID_RETURN;
++    goto end;
+ #if defined(ENABLED_PROFILING) && defined(COMMUNITY_SERVER)
+   thd->profiling.set_query_source(stmt->query, stmt->query_length);
+@@ -2325,11 +2414,50 @@
+                        test(flags & (ulong) CURSOR_TYPE_READ_ONLY));
+   if (!(specialflag & SPECIAL_NO_PRIOR))
+     my_pthread_setprio(pthread_self(), WAIT_PRIOR);
+-  DBUG_VOID_RETURN;
++  goto end;
+ set_params_data_err:
+   my_error(ER_WRONG_ARGUMENTS, MYF(0), "mysql_stmt_execute");
+   reset_stmt_params(stmt);
++
++end:
++  if (opt_userstat_running) {
++    // Gets the end time.
++    if (!(end_time_error = gettimeofday(&end_time, NULL))) {
++      end_usecs = end_time.tv_sec * 1000000.0 + end_time.tv_usec;
++    }
++
++    // Calculates the difference between the end and start times.
++    if (start_usecs && end_usecs >= start_usecs && !start_time_error && !end_time_error) {
++      thd->busy_time = (end_usecs - start_usecs) / 1000000;
++      // In case there are bad values, 2629743 is the #seconds in a month.
++      if (thd->busy_time > 2629743) {
++        thd->busy_time = 0;
++      }
++    } else {
++      // end time went back in time, or gettimeofday() failed.
++      thd->busy_time = 0;
++    }
++
++#ifdef HAVE_CLOCK_GETTIME
++    /* get end cputime */
++    if (!cputime_error &&
++        !(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
++      end_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
++#endif
++    if (start_cpu_nsecs && !cputime_error) {
++      thd->cpu_time = (end_cpu_nsecs - start_cpu_nsecs) / 1000000000;
++      // In case there are bad values, 2629743 is the #seconds in a month.
++      if (thd->cpu_time > 2629743) {
++        thd->cpu_time = 0;
++      }
++    } else
++      thd->cpu_time = 0;
++  }
++  // Updates THD stats and the global user stats.
++  thd->update_stats(true);
++  update_global_user_stats(thd, true, time(NULL));
++
+   DBUG_VOID_RETURN;
+ }
+@@ -2423,6 +2551,31 @@
+   /* First of all clear possible warnings from the previous command */
+   mysql_reset_thd_for_next_command(thd);
++
++  int start_time_error = 0;
++  int end_time_error = 0;
++  struct timeval start_time, end_time;
++  double start_usecs = 0;
++  double end_usecs = 0;
++  /* cpu time */
++  int cputime_error = 0;
++  struct timespec tp;
++  double start_cpu_nsecs = 0;
++  double end_cpu_nsecs = 0;
++
++  if (opt_userstat_running) {
++#ifdef HAVE_CLOCK_GETTIME
++    /* get start cputime */
++    if (!(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
++      start_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
++#endif
++
++    // Gets the start time, in order to measure how long this command takes.
++    if (!(start_time_error = gettimeofday(&start_time, NULL))) {
++      start_usecs = start_time.tv_sec * 1000000.0 + start_time.tv_usec;
++    }
++  }
++
+   statistic_increment(thd->status_var.com_stmt_fetch, &LOCK_status);
+   if (!(stmt= find_prepared_statement(thd, stmt_id, "mysql_stmt_fetch")))
+     DBUG_VOID_RETURN;
+@@ -2455,6 +2608,43 @@
+   thd->restore_backup_statement(stmt, &stmt_backup);
+   thd->stmt_arena= thd;
++  if (opt_userstat_running) {
++    // Gets the end time.
++    if (!(end_time_error = gettimeofday(&end_time, NULL))) {
++      end_usecs = end_time.tv_sec * 1000000.0 + end_time.tv_usec;
++    }
++
++    // Calculates the difference between the end and start times.
++    if (start_usecs && end_usecs >= start_usecs && !start_time_error && !end_time_error) {
++      thd->busy_time = (end_usecs - start_usecs) / 1000000;
++      // In case there are bad values, 2629743 is the #seconds in a month.
++      if (thd->busy_time > 2629743) {
++        thd->busy_time = 0;
++      }
++    } else {
++      // end time went back in time, or gettimeofday() failed.
++      thd->busy_time = 0;
++    }
++
++#ifdef HAVE_CLOCK_GETTIME
++    /* get end cputime */
++    if (!cputime_error &&
++        !(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
++      end_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
++#endif
++    if (start_cpu_nsecs && !cputime_error) {
++      thd->cpu_time = (end_cpu_nsecs - start_cpu_nsecs) / 1000000000;
++      // In case there are bad values, 2629743 is the #seconds in a month.
++      if (thd->cpu_time > 2629743) {
++        thd->cpu_time = 0;
++      }
++    } else
++      thd->cpu_time = 0;
++  }
++  // Updates THD stats and the global user stats.
++  thd->update_stats(true);
++  update_global_user_stats(thd, true, time(NULL));
++
+   DBUG_VOID_RETURN;
+ }
+@@ -2487,6 +2677,30 @@
+   /* First of all clear possible warnings from the previous command */
+   mysql_reset_thd_for_next_command(thd);
++  int start_time_error = 0;
++  int end_time_error = 0;
++  struct timeval start_time, end_time;
++  double start_usecs = 0;
++  double end_usecs = 0;
++  /* cpu time */
++  int cputime_error = 0;
++  struct timespec tp;
++  double start_cpu_nsecs = 0;
++  double end_cpu_nsecs = 0;
++
++  if (opt_userstat_running) {
++#ifdef HAVE_CLOCK_GETTIME
++    /* get start cputime */
++    if (!(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
++      start_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
++#endif
++
++    // Gets the start time, in order to measure how long this command takes.
++    if (!(start_time_error = gettimeofday(&start_time, NULL))) {
++      start_usecs = start_time.tv_sec * 1000000.0 + start_time.tv_usec;
++    }
++  }
++
+   statistic_increment(thd->status_var.com_stmt_reset, &LOCK_status);
+   if (!(stmt= find_prepared_statement(thd, stmt_id, "mysql_stmt_reset")))
+     DBUG_VOID_RETURN;
+@@ -2503,6 +2717,43 @@
+   send_ok(thd);
++  if (opt_userstat_running) {
++    // Gets the end time.
++    if (!(end_time_error = gettimeofday(&end_time, NULL))) {
++      end_usecs = end_time.tv_sec * 1000000.0 + end_time.tv_usec;
++    }
++
++    // Calculates the difference between the end and start times.
++    if (start_usecs && end_usecs >= start_usecs && !start_time_error && !end_time_error) {
++      thd->busy_time = (end_usecs - start_usecs) / 1000000;
++      // In case there are bad values, 2629743 is the #seconds in a month.
++      if (thd->busy_time > 2629743) {
++        thd->busy_time = 0;
++      }
++    } else {
++      // end time went back in time, or gettimeofday() failed.
++      thd->busy_time = 0;
++    }
++
++#ifdef HAVE_CLOCK_GETTIME
++    /* get end cputime */
++    if (!cputime_error &&
++        !(cputime_error = clock_gettime(CLOCK_THREAD_CPUTIME_ID, &tp)))
++      end_cpu_nsecs = tp.tv_sec*1000000000.0+tp.tv_nsec;
++#endif
++    if (start_cpu_nsecs && !cputime_error) {
++      thd->cpu_time = (end_cpu_nsecs - start_cpu_nsecs) / 1000000000;
++      // In case there are bad values, 2629743 is the #seconds in a month.
++      if (thd->cpu_time > 2629743) {
++        thd->cpu_time = 0;
++      }
++    } else
++      thd->cpu_time = 0;
++  }
++  // Updates THD stats and the global user stats.
++  thd->update_stats(true);
++  update_global_user_stats(thd, true, time(NULL));
++
+   DBUG_VOID_RETURN;
+ }
+diff -r 592f6c3641ba sql/sql_show.cc
+--- a/sql/sql_show.cc  Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/sql_show.cc  Wed Jul 29 13:34:11 2009 -0700
+@@ -540,6 +540,7 @@
                sctx->master_access);
    if (!(db_access & DB_ACLS) && (!grant_option || check_grant_db(thd,dbname)))
    {
@@ -3267,7 +3490,7 @@ diff -r 0bb04c127c7e sql/sql_show.cc
      my_error(ER_DBACCESS_DENIED_ERROR, MYF(0),
               sctx->priv_user, sctx->host_or_ip, dbname);
      mysql_log.write(thd,COM_INIT_DB,ER(ER_DBACCESS_DENIED_ERROR),
-@@ -1856,6 +1857,300 @@
+@@ -1890,6 +1891,300 @@
    DBUG_RETURN(FALSE);
  }
  
@@ -3305,7 +3528,7 @@ diff -r 0bb04c127c7e sql/sql_show.cc
 +    {
 +      // First entry for this role.
 +      if (!(agg_user =
-+            (USER_STATS*) my_malloc(sizeof(USER_STATS), MYF(MY_WME))))
++            (USER_STATS*) my_malloc(sizeof(USER_STATS), MYF(MY_WME | MY_ZEROFILL))))
 +      {
 +        sql_print_error("Malloc in aggregate_user_stats failed");
 +        DBUG_RETURN(1);
@@ -3568,13 +3791,13 @@ diff -r 0bb04c127c7e sql/sql_show.cc
  
  /* collect status for all running threads */
  
-@@ -4451,6 +4746,77 @@
+@@ -4500,6 +4795,77 @@
    {0, 0, MYSQL_TYPE_STRING, 0, 0, 0}
  };
  
 +ST_FIELD_INFO user_stats_fields_info[]=
 +{
-+  {"USER", 16, MYSQL_TYPE_STRING, 0, 0, "User"},
++  {"USER", USERNAME_LENGTH, MYSQL_TYPE_STRING, 0, 0, "User"},
 +  {"TOTAL_CONNECTIONS", MY_INT64_NUM_DECIMAL_DIGITS, MYSQL_TYPE_LONG, 0, 0, "Total_connections"},
 +  {"CONCURRENT_CONNECTIONS", MY_INT64_NUM_DECIMAL_DIGITS, MYSQL_TYPE_LONG, 0, 0, "Concurrent_connections"},
 +  {"CONNECTED_TIME", MY_INT64_NUM_DECIMAL_DIGITS, MYSQL_TYPE_LONG, 0, 0, "Connected_time"},
@@ -3600,7 +3823,7 @@ diff -r 0bb04c127c7e sql/sql_show.cc
 +
 +ST_FIELD_INFO client_stats_fields_info[]=
 +{
-+  {"CLIENT", 16, MYSQL_TYPE_STRING, 0, 0, "Client"},
++  {"CLIENT", LIST_PROCESS_HOST_LEN, MYSQL_TYPE_STRING, 0, 0, "Client"},
 +  {"TOTAL_CONNECTIONS", MY_INT64_NUM_DECIMAL_DIGITS, MYSQL_TYPE_LONG, 0, 0, "Total_connections"},
 +  {"CONCURRENT_CONNECTIONS", MY_INT64_NUM_DECIMAL_DIGITS, MYSQL_TYPE_LONG, 0, 0, "Concurrent_connections"},
 +  {"CONNECTED_TIME", MY_INT64_NUM_DECIMAL_DIGITS, MYSQL_TYPE_LONG, 0, 0, "Connected_time"},
@@ -3646,7 +3869,7 @@ diff -r 0bb04c127c7e sql/sql_show.cc
  
  /*
    Description of ST_FIELD_INFO in table.h
-@@ -4460,6 +4826,8 @@
+@@ -4509,6 +4875,8 @@
  {
    {"CHARACTER_SETS", charsets_fields_info, create_schema_table, 
     fill_schema_charsets, make_character_sets_old_format, 0, -1, -1, 0},
@@ -3655,7 +3878,7 @@ diff -r 0bb04c127c7e sql/sql_show.cc
    {"COLLATIONS", collation_fields_info, create_schema_table, 
     fill_schema_collation, make_old_format, 0, -1, -1, 0},
    {"COLLATION_CHARACTER_SET_APPLICABILITY", coll_charset_app_fields_info,
-@@ -4468,6 +4836,8 @@
+@@ -4517,6 +4885,8 @@
     get_all_tables, make_columns_old_format, get_schema_column_record, 1, 2, 0},
    {"COLUMN_PRIVILEGES", column_privileges_fields_info, create_schema_table,
      fill_schema_column_privileges, 0, 0, -1, -1, 0},
@@ -3664,7 +3887,7 @@ diff -r 0bb04c127c7e sql/sql_show.cc
    {"KEY_COLUMN_USAGE", key_column_usage_fields_info, create_schema_table,
      get_all_tables, 0, get_schema_key_column_usage_record, 4, 5, 0},
    {"OPEN_TABLES", open_tables_fields_info, create_schema_table,
-@@ -4493,10 +4863,14 @@
+@@ -4542,10 +4912,14 @@
     get_all_tables, make_table_names_old_format, 0, 1, 2, 1},
    {"TABLE_PRIVILEGES", table_privileges_fields_info, create_schema_table,
      fill_schema_table_privileges, 0, 0, -1, -1, 0},
@@ -3679,9 +3902,9 @@ diff -r 0bb04c127c7e sql/sql_show.cc
    {"VARIABLES", variables_fields_info, create_schema_table, fill_variables,
     make_old_format, 0, -1, -1, 1},
    {"VIEWS", view_fields_info, create_schema_table, 
-diff -r 0bb04c127c7e sql/sql_update.cc
---- a/sql/sql_update.cc        Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/sql_update.cc        Fri Sep 12 01:26:22 2008 -0700
+diff -r 592f6c3641ba sql/sql_update.cc
+--- a/sql/sql_update.cc        Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/sql_update.cc        Wed Jul 29 13:34:11 2009 -0700
 @@ -601,7 +601,8 @@
        (thd->client_capabilities & CLIENT_FOUND_ROWS) ? found : updated;
      send_ok(thd, (ulong) thd->row_count_func,
@@ -3692,17 +3915,17 @@ diff -r 0bb04c127c7e sql/sql_update.cc
    }
    thd->count_cuted_fields= CHECK_FIELD_IGNORE;                /* calc cuted fields */
    thd->abort_on_warning= 0;
-@@ -1775,5 +1776,6 @@
+@@ -1832,5 +1833,6 @@
      (thd->client_capabilities & CLIENT_FOUND_ROWS) ? found : updated;
    ::send_ok(thd, (ulong) thd->row_count_func,
            thd->insert_id_used ? thd->last_insert_id : 0L,buff);
 +  thd->updated_row_count += thd->row_count_func;
    return FALSE;
  }
-diff -r 0bb04c127c7e sql/sql_yacc.yy
---- a/sql/sql_yacc.yy  Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/sql_yacc.yy  Fri Sep 12 01:26:22 2008 -0700
-@@ -522,6 +522,7 @@
+diff -r 592f6c3641ba sql/sql_yacc.yy
+--- a/sql/sql_yacc.yy  Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/sql_yacc.yy  Wed Jul 29 13:34:11 2009 -0700
+@@ -523,6 +523,7 @@
  %token  CHECK_SYM
  %token  CIPHER_SYM
  %token  CLIENT_SYM
@@ -3710,7 +3933,7 @@ diff -r 0bb04c127c7e sql/sql_yacc.yy
  %token  CLOSE_SYM
  %token  COALESCE
  %token  CODE_SYM
-@@ -679,6 +680,7 @@
+@@ -680,6 +681,7 @@
  %token  IMPORT
  %token  INDEXES
  %token  INDEX_SYM
@@ -3718,7 +3941,7 @@ diff -r 0bb04c127c7e sql/sql_yacc.yy
  %token  INFILE
  %token  INNER_SYM
  %token  INNOBASE_SYM
-@@ -908,6 +910,7 @@
+@@ -909,6 +911,7 @@
  %token  SIGNED_SYM
  %token  SIMPLE_SYM
  %token  SLAVE
@@ -3726,7 +3949,7 @@ diff -r 0bb04c127c7e sql/sql_yacc.yy
  %token  SMALLINT
  %token  SNAPSHOT_SYM
  %token  SOUNDS_SYM
-@@ -948,6 +951,7 @@
+@@ -949,6 +952,7 @@
  %token  TABLES
  %token  TABLESPACE
  %token  TABLE_SYM
@@ -3734,7 +3957,7 @@ diff -r 0bb04c127c7e sql/sql_yacc.yy
  %token  TEMPORARY
  %token  TEMPTABLE_SYM
  %token  TERMINATED
-@@ -990,6 +994,7 @@
+@@ -991,6 +995,7 @@
  %token  UPGRADE_SYM
  %token  USAGE
  %token  USER
@@ -3742,7 +3965,7 @@ diff -r 0bb04c127c7e sql/sql_yacc.yy
  %token  USE_FRM
  %token  USE_SYM
  %token  USING
-@@ -7332,6 +7337,38 @@
+@@ -8255,6 +8260,38 @@
            {
            Lex->sql_command = SQLCOM_SHOW_SLAVE_STAT;
            }
@@ -3781,7 +4004,7 @@ diff -r 0bb04c127c7e sql/sql_yacc.yy
        | CREATE PROCEDURE sp_name
          {
            LEX *lex= Lex;
-@@ -7525,9 +7562,14 @@
+@@ -8459,9 +8496,14 @@
        | LOGS_SYM      { Lex->type|= REFRESH_LOG; }
        | STATUS_SYM    { Lex->type|= REFRESH_STATUS; }
          | SLAVE         { Lex->type|= REFRESH_SLAVE; }
@@ -3797,18 +4020,58 @@ diff -r 0bb04c127c7e sql/sql_yacc.yy
  
  opt_table_list:
        /* empty */  {;}
-diff -r 0bb04c127c7e sql/structs.h
---- a/sql/structs.h    Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/structs.h    Fri Sep 12 01:26:22 2008 -0700
+@@ -9450,6 +9492,7 @@
+       | CHAIN_SYM             {}
+       | CHANGED               {}
+       | CIPHER_SYM            {}
++      | CLIENT_STATS_SYM      {}
+       | CLIENT_SYM            {}
+         | CODE_SYM              {}
+       | COLLATION_SYM         {}
+@@ -9502,6 +9545,7 @@
+       | HOSTS_SYM             {}
+       | HOUR_SYM              {}
+       | IDENTIFIED_SYM        {}
++      | INDEX_STATS_SYM       {}
+       | INVOKER_SYM           {}
+       | IMPORT                {}
+       | INDEXES               {}
+@@ -9611,6 +9655,7 @@
+       | SIMPLE_SYM            {}
+       | SHARE_SYM             {}
+       | SHUTDOWN              {}
++      | SLOW_SYM              {}
+       | SNAPSHOT_SYM          {}
+       | SOUNDS_SYM            {}
+       | SOURCE_SYM            {}
+@@ -9627,6 +9672,7 @@
+         | SUSPEND_SYM           {}
+         | SWAPS_SYM             {}
+       | SWITCHES_SYM          {}
++      | TABLE_STATS_SYM       {}
+         | TABLES                {}
+       | TABLESPACE            {}
+       | TEMPORARY             {}
+@@ -9647,6 +9693,7 @@
+       | UNKNOWN_SYM           {}
+       | UNTIL_SYM             {}
+       | USER                  {}
++      | USER_STATS_SYM        {}
+       | USE_FRM               {}
+       | VARIABLES             {}
+       | VIEW_SYM              {}
+diff -r 592f6c3641ba sql/structs.h
+--- a/sql/structs.h    Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/structs.h    Wed Jul 29 13:34:11 2009 -0700
 @@ -273,6 +273,98 @@
    time_t intime;
  } USER_CONN;
  
 +typedef struct st_user_stats {
-+  char user[USERNAME_LENGTH + 1];
++  char user[max(USERNAME_LENGTH, LIST_PROCESS_HOST_LEN) + 1];
 +  // Account name the user is mapped to when this is a user from mapped_user.
 +  // Otherwise, the same value as user.
-+  char priv_user[USERNAME_LENGTH + 1];
++  char priv_user[max(USERNAME_LENGTH, LIST_PROCESS_HOST_LEN) + 1];
 +  uint total_connections;
 +  uint concurrent_connections;
 +  time_t connected_time;  // in seconds
@@ -3899,10 +4162,10 @@ diff -r 0bb04c127c7e sql/structs.h
        /* Bits in form->update */
  #define REG_MAKE_DUPP         1       /* Make a copy of record when read */
  #define REG_NEW_RECORD                2       /* Write a new record if not found */
-diff -r 0bb04c127c7e sql/table.h
---- a/sql/table.h      Fri Sep 12 01:25:08 2008 -0700
-+++ b/sql/table.h      Fri Sep 12 01:26:22 2008 -0700
-@@ -370,10 +370,12 @@
+diff -r 592f6c3641ba sql/table.h
+--- a/sql/table.h      Wed Jul 29 13:33:34 2009 -0700
++++ b/sql/table.h      Wed Jul 29 13:34:11 2009 -0700
+@@ -371,10 +371,12 @@
  enum enum_schema_tables
  {
    SCH_CHARSETS= 0,
@@ -3915,7 +4178,7 @@ diff -r 0bb04c127c7e sql/table.h
    SCH_KEY_COLUMN_USAGE,
    SCH_OPEN_TABLES,
    SCH_PROFILES,
-@@ -386,8 +388,10 @@
+@@ -387,8 +389,10 @@
    SCH_TABLE_CONSTRAINTS,
    SCH_TABLE_NAMES,
    SCH_TABLE_PRIVILEGES,
@@ -3926,10 +4189,10 @@ diff -r 0bb04c127c7e sql/table.h
    SCH_VARIABLES,
    SCH_VIEWS
  };
-diff -r 0bb04c127c7e strings/Makefile.in
---- a/strings/Makefile.in      Fri Sep 12 01:25:08 2008 -0700
-+++ b/strings/Makefile.in      Fri Sep 12 01:26:22 2008 -0700
-@@ -359,6 +359,7 @@
+diff -r 592f6c3641ba strings/Makefile.in
+--- a/strings/Makefile.in      Wed Jul 29 13:33:34 2009 -0700
++++ b/strings/Makefile.in      Wed Jul 29 13:34:11 2009 -0700
+@@ -342,6 +342,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -3937,10 +4200,10 @@ diff -r 0bb04c127c7e strings/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e support-files/MacOSX/Makefile.in
---- a/support-files/MacOSX/Makefile.in Fri Sep 12 01:25:08 2008 -0700
-+++ b/support-files/MacOSX/Makefile.in Fri Sep 12 01:26:22 2008 -0700
-@@ -169,6 +169,7 @@
+diff -r 592f6c3641ba support-files/MacOSX/Makefile.in
+--- a/support-files/MacOSX/Makefile.in Wed Jul 29 13:33:34 2009 -0700
++++ b/support-files/MacOSX/Makefile.in Wed Jul 29 13:34:11 2009 -0700
+@@ -148,6 +148,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -3948,10 +4211,10 @@ diff -r 0bb04c127c7e support-files/MacOSX/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e support-files/Makefile.in
---- a/support-files/Makefile.in        Fri Sep 12 01:25:08 2008 -0700
-+++ b/support-files/Makefile.in        Fri Sep 12 01:26:22 2008 -0700
-@@ -189,6 +189,7 @@
+diff -r 592f6c3641ba support-files/Makefile.in
+--- a/support-files/Makefile.in        Wed Jul 29 13:33:34 2009 -0700
++++ b/support-files/Makefile.in        Wed Jul 29 13:34:11 2009 -0700
+@@ -171,6 +171,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -3959,10 +4222,10 @@ diff -r 0bb04c127c7e support-files/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e support-files/RHEL4-SElinux/Makefile.in
---- a/support-files/RHEL4-SElinux/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/support-files/RHEL4-SElinux/Makefile.in  Fri Sep 12 01:26:22 2008 -0700
-@@ -167,6 +167,7 @@
+diff -r 592f6c3641ba support-files/RHEL4-SElinux/Makefile.in
+--- a/support-files/RHEL4-SElinux/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/support-files/RHEL4-SElinux/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -146,6 +146,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -3970,10 +4233,10 @@ diff -r 0bb04c127c7e support-files/RHEL4-SElinux/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e tests/Makefile.in
---- a/tests/Makefile.in        Fri Sep 12 01:25:08 2008 -0700
-+++ b/tests/Makefile.in        Fri Sep 12 01:26:22 2008 -0700
-@@ -213,6 +213,7 @@
+diff -r 592f6c3641ba tests/Makefile.in
+--- a/tests/Makefile.in        Wed Jul 29 13:33:34 2009 -0700
++++ b/tests/Makefile.in        Wed Jul 29 13:34:11 2009 -0700
+@@ -193,6 +193,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -3981,10 +4244,10 @@ diff -r 0bb04c127c7e tests/Makefile.in
  LIBS = @CLIENT_LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e tools/Makefile.in
---- a/tools/Makefile.in        Fri Sep 12 01:25:08 2008 -0700
-+++ b/tools/Makefile.in        Fri Sep 12 01:26:22 2008 -0700
-@@ -187,6 +187,7 @@
+diff -r 592f6c3641ba tools/Makefile.in
+--- a/tools/Makefile.in        Wed Jul 29 13:33:34 2009 -0700
++++ b/tools/Makefile.in        Wed Jul 29 13:34:11 2009 -0700
+@@ -167,6 +167,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -3992,10 +4255,10 @@ diff -r 0bb04c127c7e tools/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e vio/Makefile.in
---- a/vio/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/vio/Makefile.in  Fri Sep 12 01:26:22 2008 -0700
-@@ -196,6 +196,7 @@
+diff -r 592f6c3641ba vio/Makefile.in
+--- a/vio/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/vio/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -176,6 +176,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -4003,10 +4266,10 @@ diff -r 0bb04c127c7e vio/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e win/Makefile.in
---- a/win/Makefile.in  Fri Sep 12 01:25:08 2008 -0700
-+++ b/win/Makefile.in  Fri Sep 12 01:26:22 2008 -0700
-@@ -165,6 +165,7 @@
+diff -r 592f6c3641ba win/Makefile.in
+--- a/win/Makefile.in  Wed Jul 29 13:33:34 2009 -0700
++++ b/win/Makefile.in  Wed Jul 29 13:34:11 2009 -0700
+@@ -144,6 +144,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
@@ -4014,10 +4277,10 @@ diff -r 0bb04c127c7e win/Makefile.in
  LIBS = @LIBS@
  LIBTOOL = @LIBTOOL@
  LIB_EXTRA_CCFLAGS = @LIB_EXTRA_CCFLAGS@
-diff -r 0bb04c127c7e zlib/Makefile.in
---- a/zlib/Makefile.in Fri Sep 12 01:25:08 2008 -0700
-+++ b/zlib/Makefile.in Fri Sep 12 01:26:22 2008 -0700
-@@ -204,6 +204,7 @@
+diff -r 592f6c3641ba zlib/Makefile.in
+--- a/zlib/Makefile.in Wed Jul 29 13:33:34 2009 -0700
++++ b/zlib/Makefile.in Wed Jul 29 13:34:11 2009 -0700
+@@ -187,6 +187,7 @@
  LIBDL = @LIBDL@
  LIBEDIT_LOBJECTS = @LIBEDIT_LOBJECTS@
  LIBOBJS = @LIBOBJS@
This page took 0.212383 seconds and 4 git commands to generate.