MySQL Lists are EOL. Please join:

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

ChangeSet@stripped, 2007-06-05 03:16:02+05:00, svoj@stripped +1 -0
  BUG#27141 - Calling tell(-1) under Windows causes assertion failure in Debug mode
  
  Original problem was fixed by Magnus (see BUG25807).
  
  Currently only windows debug build causes assertion failure. This patch assures
  that my_tell gets correct file descriptor on any platform by DBUG_ASSERT macro.

  mysys/my_seek.c@stripped, 2007-06-05 03:16:00+05:00, svoj@stripped +1 -0
    Added assertion in case my_tell gets wrong file descriptor.

# 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:	svoj
# Host:	april.(none)
# Root:	/home/svoj/devel/mysql/BUG27141/mysql-5.0-engines

--- 1.22/mysys/my_seek.c	2007-06-05 03:16:07 +05:00
+++ 1.23/mysys/my_seek.c	2007-06-05 03:16:07 +05:00
@@ -88,6 +88,7 @@ my_off_t my_tell(File fd, myf MyFlags __
   os_off_t pos;
   DBUG_ENTER("my_tell");
   DBUG_PRINT("my",("Fd: %d  MyFlags: %d",fd, MyFlags));
+  DBUG_ASSERT(fd >= 0);
 #ifdef HAVE_TELL
   pos=tell(fd);
 #else
Thread
bk commit into 5.0 tree (svoj:1.2504) BUG#27141Sergey Vojtovich4 Jun