summaryrefslogtreecommitdiff
path: root/mysys/my_pread.c
diff options
context:
space:
mode:
authorunknown <guilhem@gbichot3.local>2006-08-29 22:10:06 +0200
committerunknown <guilhem@gbichot3.local>2006-08-29 22:10:06 +0200
commit52191ea4d8dda55173a7c721371faf15bf0ea39c (patch)
tree7336df5ff552ee4045f067d36bb5603a8a3f9f05 /mysys/my_pread.c
parent1c25f0ce5b1370858b6059eafaacac628c55c626 (diff)
downloadmariadb-git-52191ea4d8dda55173a7c721371faf15bf0ea39c.tar.gz
importing Sanja's changes to the control file, with my changes on them.
mysys/my_pread.c: print errno in case of error storage/maria/control_file.c: importing Sanja's changes, with my minor changes on them :) storage/maria/control_file.h: importing Sanja's changes, with my minor changes on them :)
Diffstat (limited to 'mysys/my_pread.c')
-rw-r--r--mysys/my_pread.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysys/my_pread.c b/mysys/my_pread.c
index ac52895efe9..072c18ae7f6 100644
--- a/mysys/my_pread.c
+++ b/mysys/my_pread.c
@@ -155,7 +155,8 @@ uint my_pwrite(int Filedes, const byte *Buffer, uint Count, my_off_t offset,
Count-=writenbytes;
offset+=writenbytes;
}
- DBUG_PRINT("error",("Write only %d bytes",writenbytes));
+ DBUG_PRINT("error",("Write only %d bytes, error: %d",
+ writenbytes, my_errno));
#ifndef NO_BACKGROUND
#ifdef THREAD
if (my_thread_var->abort)