From 2aeb8f65de53e90b59a397dc7f89b9864601ae7a Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Sat, 18 Jan 2025 16:07:31 -0700 Subject: [PATCH] Rename IndexFileDeleter.VerboseRefCounts --- src/Lucene.Net/Index/IndexFileDeleter.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Lucene.Net/Index/IndexFileDeleter.cs b/src/Lucene.Net/Index/IndexFileDeleter.cs index fec0602948..cd24cbc954 100644 --- a/src/Lucene.Net/Index/IndexFileDeleter.cs +++ b/src/Lucene.Net/Index/IndexFileDeleter.cs @@ -113,8 +113,11 @@ internal sealed class IndexFileDeleter : IDisposable /// Change to true to see details of reference counts when /// infoStream is enabled /// + /// + /// LUCENENET specific - was VERBOSE_REF_COUNTS in Java. + /// // LUCENENET specific - changed from a mutable static field to a property - public static bool VERBOSE_REF_COUNTS { get; set; } = false; + public static bool VerboseRefCounts { get; set; } = false; // Used only for assert private readonly IndexWriter writer; @@ -568,7 +571,7 @@ internal void IncRef(string fileName) RefCount rc = GetRefCount(fileName); if (infoStream.IsEnabled("IFD")) { - if (VERBOSE_REF_COUNTS) + if (VerboseRefCounts) { infoStream.Message("IFD", " IncRef \"" + fileName + "\": pre-incr count is " + rc.count); } @@ -591,7 +594,7 @@ internal void DecRef(string fileName) RefCount rc = GetRefCount(fileName); if (infoStream.IsEnabled("IFD")) { - if (VERBOSE_REF_COUNTS) + if (VerboseRefCounts) { infoStream.Message("IFD", " DecRef \"" + fileName + "\": pre-decr count is " + rc.count); }