diff options
author | Michael Widenius <monty@mysql.com> | 2008-08-25 14:49:47 +0300 |
---|---|---|
committer | Michael Widenius <monty@mysql.com> | 2008-08-25 14:49:47 +0300 |
commit | 1a5de5bc82cee3c2411862b8ef32588b530a780f (patch) | |
tree | 2baced329239d24a26baaa76e655f5c457d9dcbf /storage/maria/ma_info.c | |
parent | d145362edf0c6c640b46eb08db18e2781d128075 (diff) | |
download | mariadb-git-1a5de5bc82cee3c2411862b8ef32588b530a780f.tar.gz |
Changed all file names in maria to LEX_STRING and removed some calls to strlen()
Ensure that pagecache gives correct error number even if error for block happend
mysys/my_pread.c:
Indentation fix
storage/maria/ha_maria.cc:
filenames changed to be of type LEX_STRING
storage/maria/ma_check.c:
filenames changed to be of type LEX_STRING
storage/maria/ma_checkpoint.c:
filenames changed to be of type LEX_STRING
storage/maria/ma_create.c:
filenames changed to be of type LEX_STRING
storage/maria/ma_dbug.c:
filenames changed to be of type LEX_STRING
storage/maria/ma_delete.c:
filenames changed to be of type LEX_STRING
storage/maria/ma_info.c:
filenames changed to be of type LEX_STRING
storage/maria/ma_keycache.c:
filenames changed to be of type LEX_STRING
storage/maria/ma_locking.c:
filenames changed to be of type LEX_STRING
storage/maria/ma_loghandler.c:
filenames changed to be of type LEX_STRING
storage/maria/ma_open.c:
filenames changed to be of type LEX_STRING
storage/maria/ma_pagecache.c:
Store error number for last failed operation in the page block
This should fix some asserts() when errno was not properly set after failure to read block in another thread
storage/maria/ma_recovery.c:
filenames changed to be of type LEX_STRING
storage/maria/ma_update.c:
filenames changed to be of type LEX_STRING
storage/maria/ma_write.c:
filenames changed to be of type LEX_STRING
storage/maria/maria_def.h:
filenames changed to be of type LEX_STRING
storage/maria/maria_ftdump.c:
filenames changed to be of type LEX_STRING
storage/maria/maria_pack.c:
filenames changed to be of type LEX_STRING
Diffstat (limited to 'storage/maria/ma_info.c')
-rw-r--r-- | storage/maria/ma_info.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/storage/maria/ma_info.c b/storage/maria/ma_info.c index 1bb351bfbb5..1bbfa3cbf7e 100644 --- a/storage/maria/ma_info.c +++ b/storage/maria/ma_info.c @@ -81,8 +81,8 @@ int maria_status(MARIA_HA *info, register MARIA_INFO *x, uint flag) x->sortkey= -1; /* No clustering */ x->rec_per_key = share->state.rec_per_key_part; x->key_map = share->state.key_map; - x->data_file_name = share->data_file_name; - x->index_file_name = share->index_file_name; + x->data_file_name = share->data_file_name.str; + x->index_file_name = share->index_file_name.str; x->data_file_type = share->data_file_type; } if ((flag & HA_STATUS_TIME) && !my_fstat(info->dfile.file, &state, MYF(0))) @@ -118,13 +118,14 @@ int maria_status(MARIA_HA *info, register MARIA_INFO *x, uint flag) void */ -void _ma_report_error(int errcode, const char *file_name) +void _ma_report_error(int errcode, const LEX_STRING *name) { - size_t length; + size_t length; + const char *file_name= name->str; DBUG_ENTER("_ma_report_error"); DBUG_PRINT("enter",("errcode %d, table '%s'", errcode, file_name)); - if ((length= strlen(file_name)) > 64) + if ((length= name->length) > 64) { /* we first remove the directory */ size_t dir_length= dirname_length(file_name); |