From 81ee2455b30a7ac3af11965b2d1dd98f80b1048b Mon Sep 17 00:00:00 2001 From: Badrish Chandramouli Date: Wed, 15 Jan 2025 11:35:38 -0800 Subject: [PATCH] avoid two counters for DBScan. --- .../Session/Common/ArrayKeyIterationFunctions.cs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/libs/server/Storage/Session/Common/ArrayKeyIterationFunctions.cs b/libs/server/Storage/Session/Common/ArrayKeyIterationFunctions.cs index 25aedc1ec4..5d84fc34cc 100644 --- a/libs/server/Storage/Session/Common/ArrayKeyIterationFunctions.cs +++ b/libs/server/Storage/Session/Common/ArrayKeyIterationFunctions.cs @@ -312,11 +312,9 @@ internal sealed class MainStoreGetDBSize : IScanIteratorFunctions 0 && ObjectSessionFunctions.CheckExpiry(value)) - cursorRecordResult = CursorRecordResult.Skip; - else + cursorRecordResult = CursorRecordResult.Skip; + if (value.Expiration == 0 || !ObjectSessionFunctions.CheckExpiry(value)) { - cursorRecordResult = CursorRecordResult.Accept; ++info.count; } return true;