diff options
author | petr/cps@mysql.com/owlet.local <> | 2006-08-24 16:17:42 +0400 |
---|---|---|
committer | petr/cps@mysql.com/owlet.local <> | 2006-08-24 16:17:42 +0400 |
commit | e36be72adbca91524e8575132ffa939ed93068f7 (patch) | |
tree | 969cba01d92685398b6effaee23279cb88f88199 /storage | |
parent | 5fae48d9e40ef80033bc91601db613c8fcd2aff2 (diff) | |
download | mariadb-git-e36be72adbca91524e8575132ffa939ed93068f7.tar.gz |
after merge fix
Diffstat (limited to 'storage')
-rw-r--r-- | storage/csv/ha_tina.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/storage/csv/ha_tina.cc b/storage/csv/ha_tina.cc index bec236becd0..5d18ed99a9a 100644 --- a/storage/csv/ha_tina.cc +++ b/storage/csv/ha_tina.cc @@ -229,6 +229,11 @@ static TINA_SHARE *get_share(const char *table_name, TABLE *table) MY_REPLACE_EXT|MY_UNPACK_FILENAME); fn_format(meta_file_name, table_name, "", CSM_EXT, MY_REPLACE_EXT|MY_UNPACK_FILENAME); + + if (my_stat(share->data_file_name, &file_stat, MYF(MY_WME)) == NULL) + goto error; + share->saved_data_file_length= file_stat.st_size; + if (my_hash_insert(&tina_open_tables, (byte*) share)) goto error; thr_lock_init(&share->lock); @@ -250,10 +255,6 @@ static TINA_SHARE *get_share(const char *table_name, TABLE *table) */ if (read_meta_file(share->meta_file, &share->rows_recorded)) share->crashed= TRUE; - - if (my_stat(share->data_file_name, &file_stat, MYF(MY_WME)) == NULL) - goto error2; - share->saved_data_file_length= file_stat.st_size; } share->use_count++; pthread_mutex_unlock(&tina_mutex); |