From ccfe7f62daf2c6ddc695f147919c42fc8164b364 Mon Sep 17 00:00:00 2001 From: Laurentiu Cristofor Date: Fri, 20 May 2022 12:29:59 -0700 Subject: [PATCH] Re-enable db_caches --- production/db/core/src/db_client.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/production/db/core/src/db_client.cpp b/production/db/core/src/db_client.cpp index 6b3300ccf07..43753a1332e 100644 --- a/production/db/core/src/db_client.cpp +++ b/production/db/core/src/db_client.cpp @@ -283,16 +283,14 @@ void client_t::begin_transaction() apply_log_from_offset(private_locators().data(), txn_log_info->log_offset()); } - // REVIEW: Re-enable these caches once we complete handling of DDL updates. - - // // We need to perform this initialization in the context of a transaction, - // // so we'll just piggyback on the first transaction started by the client - // // under a regular session. - // if (session_options().session_type == session_type_t::regular - // && !s_session_context->db_caches) - // { - // s_session_context->db_caches.reset(init_db_caches()); - // } + // We need to perform this initialization in the context of a transaction, + // so we'll just piggyback on the first transaction started by the client + // under a regular session. + if (session_options().session_type == session_type_t::regular + && !s_session_context->db_caches) + { + s_session_context->db_caches.reset(init_db_caches()); + } cleanup_private_locators.dismiss(); cleanup_txn_context.dismiss();