From 6bee5f9f61956d5e54a25eecb71f3f5fc8a84dda Mon Sep 17 00:00:00 2001 From: Andrew Hutchings Date: Wed, 3 Jul 2019 08:46:43 +0100 Subject: [PATCH] MCOL-3395 Always clear dctnry cache on close The dictionary cache needs to be cleared every time it is closed so that on bulk insert we don't mix the cache between columns. --- writeengine/dictionary/we_dctnry.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/writeengine/dictionary/we_dctnry.cpp b/writeengine/dictionary/we_dctnry.cpp index 6200cc248..ea677b341 100644 --- a/writeengine/dictionary/we_dctnry.cpp +++ b/writeengine/dictionary/we_dctnry.cpp @@ -419,8 +419,7 @@ int Dctnry::closeDctnry(bool realClose) return rc; //cout <<"Init called! m_dctnryOID =" << m_dctnryOID << endl; - if (realClose) - freeStringCache( ); + freeStringCache( ); return NO_ERROR; }