diff options
author | monty@narttu.mysql.fi <> | 2003-05-13 18:58:26 +0300 |
---|---|---|
committer | monty@narttu.mysql.fi <> | 2003-05-13 18:58:26 +0300 |
commit | 13530887cb09194adbe89d65277c59ffb71fdd15 (patch) | |
tree | b0c44d624533c05fb3586c52901c5d00fe1f3186 /mysys/my_seek.c | |
parent | aa9bc9d0a031cd7bff7ffcff54049717787441f8 (diff) | |
download | mariadb-git-13530887cb09194adbe89d65277c59ffb71fdd15.tar.gz |
Fix for UNION and LEFT JOIN (Bug #386)
Fixed wrong logging of Access denied error (Bug #398)
Diffstat (limited to 'mysys/my_seek.c')
-rw-r--r-- | mysys/my_seek.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mysys/my_seek.c b/mysys/my_seek.c index 177a5cee953..ec24a26b3d9 100644 --- a/mysys/my_seek.c +++ b/mysys/my_seek.c @@ -15,6 +15,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "mysys_priv.h" +#include <assert.h> /* Seek to position in file */ /*ARGSUSED*/ @@ -27,6 +28,8 @@ my_off_t my_seek(File fd, my_off_t pos, int whence, DBUG_PRINT("my",("Fd: %d Hpos: %lu Pos: %lu Whence: %d MyFlags: %d", fd, (ulong) (((ulonglong) pos) >> 32), (ulong) pos, whence, MyFlags)); + DBUG_ASSERT(pos != MY_FILEPOS_ERROR); /* safety check */ + newpos=lseek(fd, pos, whence); if (newpos == (os_off_t) -1) { |