MySQL Lists are EOL. Please join:

List:Internals« Previous MessageNext Message »
From:Petr Chardin Date:August 11 2005 2:07am
Subject:bk commit into 5.0 tree (petr:1.1972) BUG#12512
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of cps. When cps does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.1972 05/08/11 06:06:43 petr@stripped +1 -0
  IM: fix Bug #12512 "show mysqld log" displays wrong last character in the file

  server-tools/instance-manager/commands.cc
    1.30 05/08/11 06:06:31 petr@stripped +1 -1
    fix size param

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	petr
# Host:	owlet.
# Root:	/home/cps/mysql/trees/mysql-5.0

--- 1.29/server-tools/instance-manager/commands.cc	2005-08-05 14:35:21 +04:00
+++ 1.30/server-tools/instance-manager/commands.cc	2005-08-11 06:06:31 +04:00
@@ -482,7 +482,7 @@
       read_buff.reserve(0, buff_size);
 
       /* read in one chunk */
-      read_len= my_seek(fd, file_stat.st_size - size, MY_SEEK_SET, MYF(0));
+      my_seek(fd, (file_stat.st_size - 1) - size, MY_SEEK_SET, MYF(0));
 
       if ((read_len= my_read(fd, (byte*) read_buff.buffer,
                              buff_size, MYF(0))) < 0)
Thread
bk commit into 5.0 tree (petr:1.1972) BUG#12512Petr Chardin11 Aug