summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index 78102adfb98..62b461bd599 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -2806,7 +2806,7 @@ TABLE *Delayed_insert::get_local_table(THD* client_thd)
Make a copy of the table statistics shared pointer to increase the count
of references and thus lock the statistics
*/
- copy->stats_cb= new Shared_ptr<TABLE_STATISTICS_CB>(*table->stats_cb);
+ copy->stats_cb= table->stats_cb;
}
DBUG_RETURN(copy);