mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 15:15:34 +02:00
WL# 2094, This patch is on top of 1.1814, 1.1846, 1.1856, which contain fixes
for bugs 8033, 8065, 8535, 8582 This particular changeset contains style changes per code review suggestions and does not contain bug fixes in of itself. ha_federated.h: standardised code style to conform to internals.texi ha_federated.cc: more code standardisation to conform to internals.texi. - casts - declarations - comments - 80 char width also, append using string1.append(string2) and not string1.append(string2.c_ptr_quick()) sql/ha_federated.cc: more code standardisation to conform to internals.texi. - casts - declarations - comments - 80 char width also, append using string1.append(string2) and not string1.append(string2.c_ptr_quick()) sql/ha_federated.h: standardised code style to conform to internals.texi
This commit is contained in:
parent
3fb79dac5a
commit
2041ea1f0e
2 changed files with 62 additions and 57 deletions
|
|
@ -73,7 +73,8 @@ private:
|
|||
return errorcode otherwise
|
||||
*/
|
||||
uint convert_row_to_internal_format(byte *buf, MYSQL_ROW row);
|
||||
bool ha_federated::create_where_from_key(String *to, KEY *key_info, const byte *key, uint key_length);
|
||||
bool ha_federated::create_where_from_key(String *to, KEY *key_info,
|
||||
const byte *key, uint key_length);
|
||||
|
||||
public:
|
||||
ha_federated(TABLE *table): handler(table),
|
||||
|
|
@ -127,11 +128,16 @@ public:
|
|||
/*
|
||||
Called in test_quick_select to determine if indexes should be used.
|
||||
*/
|
||||
virtual double scan_time() { DBUG_PRINT("ha_federated::scan_time", ("rows %d", records)); return (double)(records*2); }
|
||||
virtual double scan_time()
|
||||
{
|
||||
DBUG_PRINT("ha_federated::scan_time",
|
||||
("rows %d", records)); return (double)(records*2);
|
||||
}
|
||||
/*
|
||||
The next method will never be called if you do not implement indexes.
|
||||
*/
|
||||
virtual double read_time(uint index, uint ranges, ha_rows rows) { return (double) rows / 20.0+1; }
|
||||
virtual double read_time(uint index, uint ranges, ha_rows rows)
|
||||
{ return (double) rows / 20.0+1; }
|
||||
|
||||
/*
|
||||
Everything below are methods that we implment in ha_federated.cc.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue