Skip to content

Commit

Permalink
Fix compile failure, compare_key_parts in handler shadowed by MyRocks
Browse files Browse the repository at this point in the history
The two functions have different signature.
Use "using ..." to prevent shadowing
  • Loading branch information
spetrunia committed Feb 19, 2020
1 parent 2fb881d commit adcfea7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions storage/rocksdb/ha_rocksdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -739,6 +739,7 @@ class ha_rocksdb : public my_core::handler {
const TABLE *old_table_arg, const Rdb_tbl_def *old_tbl_def_arg) const
MY_ATTRIBUTE((__nonnull__));

using handler::compare_key_parts;
int compare_key_parts(const KEY *const old_key,
const KEY *const new_key) const
MY_ATTRIBUTE((__nonnull__, __warn_unused_result__));
Expand Down

0 comments on commit adcfea7

Please sign in to comment.