From aa7a267df7c24b0882ea3b5cd0db8b71d93b2724 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Mon, 11 Mar 2024 01:24:44 +0700 Subject: [PATCH] SWEEP: Reviewed all applications of .AddAndGet() methods from atomic numeric classes --- src/Lucene.Net/Store/RAMFile.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lucene.Net/Store/RAMFile.cs b/src/Lucene.Net/Store/RAMFile.cs index 11b512df62..ddebcd6b27 100644 --- a/src/Lucene.Net/Store/RAMFile.cs +++ b/src/Lucene.Net/Store/RAMFile.cs @@ -90,7 +90,7 @@ protected internal byte[] AddBuffer(int size) UninterruptableMonitor.Exit(this); } - directory?.m_sizeInBytes.AddAndGet(size); + directory?.m_sizeInBytes.GetAndAdd(size); return buffer; } @@ -146,4 +146,4 @@ public virtual long GetSizeInBytes() } } } -} \ No newline at end of file +}