From ca050d2e8ae3a874f7c427faf6e17a4b5b6b64aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Pekr=C3=B3l?= Date: Wed, 13 Nov 2024 11:50:13 +0100 Subject: [PATCH] RavenDB-20925 fixing compilation --- .../Persistence/Lucene/Documents/PropertyAccessor.cs | 6 +++--- src/Raven.Server/Logging/RavenLogManagerServerExtensions.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Raven.Server/Documents/Indexes/Persistence/Lucene/Documents/PropertyAccessor.cs b/src/Raven.Server/Documents/Indexes/Persistence/Lucene/Documents/PropertyAccessor.cs index 863b8cd764e3..f8417539b441 100644 --- a/src/Raven.Server/Documents/Indexes/Persistence/Lucene/Documents/PropertyAccessor.cs +++ b/src/Raven.Server/Documents/Indexes/Persistence/Lucene/Documents/PropertyAccessor.cs @@ -243,10 +243,10 @@ public PropertyItem Current var property = _enumerable.Current; var propertyAsString = property.Key.AsString(); - CompiledIndexField field = null; - var isGroupByField = _groupByFields?.TryGetValue(propertyAsString, out field) ?? false; + CompiledIndexField f = null; + var isGroupByField = _groupByFields?.TryGetValue(propertyAsString, out f) ?? false; - return new PropertyItem(propertyAsString, GetValue(property.Value.Value), field, isGroupByField); + return new PropertyItem(propertyAsString, GetValue(property.Value.Value), f, isGroupByField); } } diff --git a/src/Raven.Server/Logging/RavenLogManagerServerExtensions.cs b/src/Raven.Server/Logging/RavenLogManagerServerExtensions.cs index 6ea8e5ea2a34..77d21a4d8b5a 100644 --- a/src/Raven.Server/Logging/RavenLogManagerServerExtensions.cs +++ b/src/Raven.Server/Logging/RavenLogManagerServerExtensions.cs @@ -90,13 +90,13 @@ internal static class RavenLogManagerServerExtensions } }; +#if !RVN static RavenLogManagerServerExtensions() { PipeRule.SetLoggingLevels(LogLevel.Trace, LogLevel.Fatal); AdminLogsRule.SetLoggingLevels(LogLevel.Trace, LogLevel.Fatal); } -#if !RVN private static readonly ConcurrentDictionary AuditLoggers = new(StringComparer.OrdinalIgnoreCase); #endif