Skip to content

Commit

Permalink
SWEEP: Reviewed all applications of .AddAndGet() methods from atomic …
Browse files Browse the repository at this point in the history
…numeric classes
  • Loading branch information
NightOwl888 committed Mar 10, 2024
1 parent 4356997 commit aa7a267
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Lucene.Net/Store/RAMFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -146,4 +146,4 @@ public virtual long GetSizeInBytes()
}
}
}
}
}

0 comments on commit aa7a267

Please sign in to comment.