diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2013-07-24 16:51:48 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2013-07-24 16:51:48 +0400 |
commit | a31a371610374d0e42beef2e8880381c2d904e17 (patch) | |
tree | bf693ac6fa9e750e45eff7e0f43a1c9e227362e5 /storage/sequence | |
parent | 50aaf5ceb138bdc782fbbfbf395c350d860fe0d9 (diff) | |
download | mariadb-git-a31a371610374d0e42beef2e8880381c2d904e17.tar.gz |
MDEV-4786 - merge 10.0-monty - 10.0
Fixed sql_discovery.simple failure.
storage/sequence/sequence.cc:
Let sequence share class have unique name to avoid collision with other
classes.
storage/test_sql_discovery/test_sql_discovery.cc:
Let test_sql_discovery share class have unique name to avoid collision with
other classes.
Diffstat (limited to 'storage/sequence')
-rw-r--r-- | storage/sequence/sequence.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/storage/sequence/sequence.cc b/storage/sequence/sequence.cc index 4ba5ff24fea..ab22037d884 100644 --- a/storage/sequence/sequence.cc +++ b/storage/sequence/sequence.cc @@ -25,7 +25,7 @@ #include <table.h> #include <field.h> -class SHARE : public Handler_share { +class Sequence_share : public Handler_share { public: const char *name; THR_LOCK lock; @@ -33,14 +33,14 @@ public: ulonglong from, to, step; bool reverse; - SHARE(const char *name_arg, ulonglong from_arg, ulonglong to_arg, - ulonglong step_arg, bool reverse_arg): + Sequence_share(const char *name_arg, ulonglong from_arg, ulonglong to_arg, + ulonglong step_arg, bool reverse_arg): name(name_arg), from(from_arg), to(to_arg), step(step_arg), reverse(reverse_arg) { thr_lock_init(&lock); } - ~SHARE() + ~Sequence_share() { thr_lock_delete(&lock); } @@ -50,8 +50,8 @@ class ha_seq: public handler { private: THR_LOCK_DATA lock; - SHARE *seqs; - SHARE *get_share(); + Sequence_share *seqs; + Sequence_share *get_share(); ulonglong cur; public: @@ -276,11 +276,11 @@ static bool parse_table_name(const char *name, size_t name_length, } -SHARE *ha_seq::get_share() +Sequence_share *ha_seq::get_share() { - SHARE *tmp_share; + Sequence_share *tmp_share; lock_shared_ha_data(); - if (!(tmp_share= static_cast<SHARE*>(get_ha_share_ptr()))) + if (!(tmp_share= static_cast<Sequence_share*>(get_ha_share_ptr()))) { bool reverse; ulonglong from, to, step; @@ -303,7 +303,7 @@ SHARE *ha_seq::get_share() to= (to - from) / step * step + step + from; - tmp_share= new SHARE(table_share->normalized_path.str, from, to, step, reverse); + tmp_share= new Sequence_share(table_share->normalized_path.str, from, to, step, reverse); if (!tmp_share) goto err; |