Skip to content

Commit

Permalink
Fix compile warning:
Browse files Browse the repository at this point in the history
ha_rocksdb.h:459:15: warning: 'table_type' overrides a member
function but is not marked 'override' [-Winconsistent-missing-override]
  • Loading branch information
spetrunia committed Oct 27, 2021
1 parent 2ed148c commit 3a9967d
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions storage/rocksdb/ha_rocksdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -448,15 +448,13 @@ class ha_rocksdb : public my_core::handler {
}
}

/** @brief
The name that will be used for display purposes.
*/
const char *table_type() const /*override*/ {
DBUG_ENTER_FUNC();
// MariaDB: this function is not virtual, however ha_innodb
// declares it (and then never uses!) psergey-merge-todo:.
DBUG_RETURN(rocksdb_hton_name);
}
/*
MariaDB: this function:
const char *table_type() const
is non-virtual in class handler, so there's no point to override it.
*/

/* The following is only used by SHOW KEYS: */
const char *index_type(uint inx) override {
Expand Down

0 comments on commit 3a9967d

Please sign in to comment.