diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2016-06-10 17:37:12 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2016-06-10 17:37:12 +0400 |
commit | 7ecb304996df7d917ef1e857090a9a9c525160f1 (patch) | |
tree | 8dc86d3e7cd39c5be91ff9f983f187faca77cbcb /storage/oqgraph/ha_oqgraph.cc | |
parent | 2dee76f4359d7e87cd7f4094892a2ed287dce1a8 (diff) | |
download | mariadb-git-7ecb304996df7d917ef1e857090a9a9c525160f1.tar.gz |
Code cleanups
- unused TABLE_SHARE::deleting and TABLE_LIST::deleting flags were removed
- kill_delayed_threads_for_table() and intern_close_table() are now private
methods of table cache
- removed free_share flag of closefrm(): it was never used for temporary
tables and was rarely useful for regular tables
Diffstat (limited to 'storage/oqgraph/ha_oqgraph.cc')
-rw-r--r-- | storage/oqgraph/ha_oqgraph.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/storage/oqgraph/ha_oqgraph.cc b/storage/oqgraph/ha_oqgraph.cc index 78a0079a5ab..9247d778e98 100644 --- a/storage/oqgraph/ha_oqgraph.cc +++ b/storage/oqgraph/ha_oqgraph.cc @@ -663,7 +663,7 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked) { fprint_error("Column '%s.%s' (origid) is not a not-null integer type", options->table_name, options->origid); - closefrm(edges, 0); + closefrm(edges); free_table_share(share); DBUG_RETURN(-1); } @@ -673,7 +673,7 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked) if (!origid) { fprint_error("Invalid OQGRAPH backing store ('%s.origid' attribute not set to a valid column of '%s')", p+1, options->table_name); - closefrm(edges, 0); + closefrm(edges); free_table_share(share); DBUG_RETURN(-1); } @@ -688,7 +688,7 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked) { fprint_error("Column '%s.%s' (destid) is not a not-null integer type or is a different type to origid attribute.", options->table_name, options->destid); - closefrm(edges, 0); + closefrm(edges); free_table_share(share); DBUG_RETURN(-1); } @@ -698,7 +698,7 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked) if (!destid) { fprint_error("Invalid OQGRAPH backing store ('%s.destid' attribute not set to a valid column of '%s')", p+1, options->table_name); - closefrm(edges, 0); + closefrm(edges); free_table_share(share); DBUG_RETURN(-1); } @@ -706,7 +706,7 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked) // Make sure origid column != destid column if (strcmp( origid->field_name, destid->field_name)==0) { fprint_error("Invalid OQGRAPH backing store ('%s.destid' attribute set to same column as origid attribute)", p+1, options->table_name); - closefrm(edges, 0); + closefrm(edges); free_table_share(share); DBUG_RETURN(-1); } @@ -720,7 +720,7 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked) { fprint_error("Column '%s.%s' (weight) is not a not-null real type", options->table_name, options->weight); - closefrm(edges, 0); + closefrm(edges); free_table_share(share); DBUG_RETURN(-1); } @@ -730,7 +730,7 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked) if (!weight && options->weight) { fprint_error("Invalid OQGRAPH backing store ('%s.weight' attribute not set to a valid column of '%s')", p+1, options->table_name); - closefrm(edges, 0); + closefrm(edges); free_table_share(share); DBUG_RETURN(-1); } @@ -738,7 +738,7 @@ int ha_oqgraph::open(const char *name, int mode, uint test_if_locked) if (!(graph_share = oqgraph::create(edges, origid, destid, weight))) { fprint_error("Unable to create graph instance."); - closefrm(edges, 0); + closefrm(edges); free_table_share(share); DBUG_RETURN(-1); } @@ -763,7 +763,7 @@ int ha_oqgraph::close(void) if (have_table_share) { if (edges->file) - closefrm(edges, 0); + closefrm(edges); free_table_share(share); have_table_share = false; } |