Skip to content

Commit

Permalink
Rename IndexFileDeleter.VerboseRefCounts
Browse files Browse the repository at this point in the history
  • Loading branch information
paulirwin committed Jan 18, 2025
1 parent e5d7427 commit 2aeb8f6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Lucene.Net/Index/IndexFileDeleter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@ internal sealed class IndexFileDeleter : IDisposable
/// Change to true to see details of reference counts when
/// infoStream is enabled
/// </summary>
/// <remarks>
/// LUCENENET specific - was <c>VERBOSE_REF_COUNTS</c> in Java.
/// </remarks>
// 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;
Expand Down Expand Up @@ -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);
}
Expand All @@ -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);
}
Expand Down

0 comments on commit 2aeb8f6

Please sign in to comment.