diff --git a/storage/tokudb/ha_tokudb.cc b/storage/tokudb/ha_tokudb.cc
index 7099f9a0fec0f77232191e89a90d41f89ca76a54..df763205e1d6caf82bc229f53303dc76133346c8 100644
--- a/storage/tokudb/ha_tokudb.cc
+++ b/storage/tokudb/ha_tokudb.cc
@@ -3011,7 +3011,6 @@ int ha_tokudb::test_row_packing(uchar* record, DBT* pk_key, DBT* pk_val) {
 
 int ha_tokudb::insert_row_to_main_dictionary(uchar* record, DBT* pk_key, DBT* pk_val, DB_TXN* txn) {
     int error;
-    DBT row, key;
     u_int32_t put_flags;
     THD *thd = ha_thd();
     bool is_replace_into;