summaryrefslogtreecommitdiff
path: root/sql/ha_federated.h
diff options
context:
space:
mode:
authorpatg@krsna.patg.net <>2005-02-17 16:17:21 -0800
committerpatg@krsna.patg.net <>2005-02-17 16:17:21 -0800
commitde2fea12c329dbbca26f20a5dcb8cead15a6970a (patch)
tree141384a47c530a7138bb05659fdc450c73d65696 /sql/ha_federated.h
parent26d5bf92963a1d14afd9fe63aa6adf8d2e612c2c (diff)
downloadmariadb-git-de2fea12c329dbbca26f20a5dcb8cead15a6970a.tar.gz
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())
Diffstat (limited to 'sql/ha_federated.h')
-rwxr-xr-xsql/ha_federated.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/sql/ha_federated.h b/sql/ha_federated.h
index 04bbf2a56f6..e75fd285338 100755
--- a/sql/ha_federated.h
+++ b/sql/ha_federated.h
@@ -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.