diff options
author | unknown <guilhem@gbichot4.local> | 2008-01-31 23:17:50 +0100 |
---|---|---|
committer | unknown <guilhem@gbichot4.local> | 2008-01-31 23:17:50 +0100 |
commit | 7323df7885e9c50b4e6e7f4cc7251a845cad9630 (patch) | |
tree | 2ca222e8dc5eac134bbd01fe93db02ddc4a9d75c /mysys/my_pread.c | |
parent | 8c5cd4f89d165665e8b6cebd2161c41d5ce6a77e (diff) | |
download | mariadb-git-7323df7885e9c50b4e6e7f4cc7251a845cad9630.tar.gz |
Minor changes. New description in SHOW ENGINES for Maria.
Test for BUG#34106 "auto_increment is reset to 1 when table is recovered from crash"
(fixed by Monty yesterday)
mysql-test/r/maria-recovery.result:
result, which is correct (before pulling Monty's fix for BUG#34106,
we got a warning about auto_increment in CHECK TABLE (done in
maria-verify-recovery.inc), no AUTO_INCREMENT clause in
SHOW CREATE TABLE, and a failure of the last INSERT.
mysql-test/r/maria.result:
result
mysql-test/t/maria-recovery.test:
Test for BUG#34106
mysql-test/t/maria.test:
look at what is reported in SHOW ENGINES
mysys/my_pread.c:
changed my mind: if Count argument is >4GB, we'll surely see a segfault
in the pread() call when it tries to read 4GB from memory, so no need
to print it in ulonglong format (saves a function call).
mysys/my_read.c:
changed my mind: if Count argument is >4GB, we'll surely see a segfault
in the pread() call when it tries to read 4GB from memory, so no need
to print it in ulonglong format (saves a function call).
mysys/my_write.c:
changed my mind: if Count argument is >4GB, we'll surely see a segfault
in the pread() call when it tries to read 4GB from memory, so no need
to print it in ulonglong format (saves a function call).
storage/maria/ha_maria.cc:
Description representing the current reality. This can be changed later
storage/maria/ma_page.c:
When reading the new key_del from a page on disk, if there is a bug
(like BUG#34062) this key_del could be wrong, we try to catch if it's
out of the key file.
storage/maria/ma_pagecache.c:
- no truncation of page's number in DBUG_PRINT (useful for BUG#34062)
- page_korr instead of uint5korr
storage/maria/ma_recovery.c:
page_korr instead of uint5korr
storage/maria/plug.in:
Description representing the current reality. This can be changed later.
Diffstat (limited to 'mysys/my_pread.c')
-rw-r--r-- | mysys/my_pread.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mysys/my_pread.c b/mysys/my_pread.c index 3dff034c15b..7ad7a8faaf8 100644 --- a/mysys/my_pread.c +++ b/mysys/my_pread.c @@ -49,11 +49,11 @@ size_t my_pread(File Filedes, uchar *Buffer, size_t Count, my_off_t offset, size_t readbytes; int error= 0; #ifndef DBUG_OFF - char llbuf1[22], llbuf2[22]; + char llbuf[22]; DBUG_ENTER("my_pread"); - DBUG_PRINT("my",("fd: %d Seek: %s Buffer: 0x%lx Count: %s MyFlags: %d", - Filedes, ullstr(offset, llbuf1), - (long) Buffer, ullstr(Count, llbuf2), MyFlags)); + DBUG_PRINT("my",("fd: %d Seek: %s Buffer: 0x%lx Count: %lu MyFlags: %d", + Filedes, ullstr(offset, llbuf), (long) Buffer, + (ulong)Count, MyFlags)); #endif for (;;) { @@ -133,11 +133,11 @@ size_t my_pwrite(int Filedes, const uchar *Buffer, size_t Count, size_t writenbytes, written; uint errors; #ifndef DBUG_OFF - char llbuf1[22], llbuf2[22]; + char llbuf[22]; DBUG_ENTER("my_pwrite"); - DBUG_PRINT("my",("fd: %d Seek: %s Buffer: 0x%lx Count: %s MyFlags: %d", - Filedes, ullstr(offset, llbuf1), - (long) Buffer, ullstr(Count, llbuf2), MyFlags)); + DBUG_PRINT("my",("fd: %d Seek: %s Buffer: 0x%lx Count: %lu MyFlags: %d", + Filedes, ullstr(offset, llbuf), (long) Buffer, + (ulong)Count, MyFlags)); #endif errors= 0; written= 0; |