Skip to content

Commit 26bd01f

Browse files
committed
Rename IndexFileDeleter.VerboseRefCounts
1 parent c28af0f commit 26bd01f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Lucene.Net/Index/IndexFileDeleter.cs

+6-3
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,11 @@ internal sealed class IndexFileDeleter : IDisposable
113113
/// Change to true to see details of reference counts when
114114
/// infoStream is enabled
115115
/// </summary>
116+
/// <remarks>
117+
/// LUCENENET specific - was <c>VERBOSE_REF_COUNTS</c> in Java.
118+
/// </remarks>
116119
// LUCENENET specific - changed from a mutable static field to a property
117-
public static bool VERBOSE_REF_COUNTS { get; set; } = false;
120+
public static bool VerboseRefCounts { get; set; } = false;
118121

119122
// Used only for assert
120123
private readonly IndexWriter writer;
@@ -568,7 +571,7 @@ internal void IncRef(string fileName)
568571
RefCount rc = GetRefCount(fileName);
569572
if (infoStream.IsEnabled("IFD"))
570573
{
571-
if (VERBOSE_REF_COUNTS)
574+
if (VerboseRefCounts)
572575
{
573576
infoStream.Message("IFD", " IncRef \"" + fileName + "\": pre-incr count is " + rc.count);
574577
}
@@ -591,7 +594,7 @@ internal void DecRef(string fileName)
591594
RefCount rc = GetRefCount(fileName);
592595
if (infoStream.IsEnabled("IFD"))
593596
{
594-
if (VERBOSE_REF_COUNTS)
597+
if (VerboseRefCounts)
595598
{
596599
infoStream.Message("IFD", " DecRef \"" + fileName + "\": pre-decr count is " + rc.count);
597600
}

0 commit comments

Comments
 (0)