mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-35632 HandlerSocket uses deprecated C++98 auto_ptr
Change uses of auto_ptr to unique_ptr
This commit is contained in:
committed by
Dave Gosselin
parent
78157c4765
commit
86b257f870
@@ -927,7 +927,7 @@ hs_longrun_main(int argc, char **argv)
|
||||
shared.verbose = shared.conf.get_int("verbose", 1);
|
||||
const int table_size = shared.conf.get_int("table_size", 10000);
|
||||
for (int i = 0; i < table_size; ++i) {
|
||||
std::auto_ptr<record_value> rec(new record_value());
|
||||
std::unique_ptr<record_value> rec(new record_value());
|
||||
rec->key = to_stdstring(i);
|
||||
shared.records.push_back_ptr(rec);
|
||||
}
|
||||
@@ -966,7 +966,7 @@ hs_longrun_main(int argc, char **argv)
|
||||
int id = thrs.size();
|
||||
const hs_longrun_thread_hs::arg_type arg(id, e.type, e.op, e.lock,
|
||||
shared);
|
||||
std::auto_ptr<hs_longrun_thread_base> thr;
|
||||
std::unique_ptr<hs_longrun_thread_base> thr;
|
||||
if (e.hs) {
|
||||
thr.reset(new hs_longrun_thread_hs(arg));
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user