diff --git a/system/jhtree/jhtree.cpp b/system/jhtree/jhtree.cpp index cdf4ae3698d..02d54f4be27 100644 --- a/system/jhtree/jhtree.cpp +++ b/system/jhtree/jhtree.cpp @@ -577,8 +577,8 @@ class jhtree_decl CKeyLevelManager : implements IKeyManager, public CInterface // IO Stats comming from the keyCursor and jhtree cache stats coming from this class's stats if (keyCursor) keyCursor->mergeStats(targetStats); // merge IO stats - if (stats.ctx) - targetStats.merge(stats.ctx->queryStats()); // merge jhtree cache stats + if (ctx) + targetStats.merge(ctx->queryStats()); // merge jhtree cache stats } };