mirror of https://github.com/apache/lucene.git
LUCENE-2095: add missing minus sign
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@886262 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cb325fd07f
commit
62798f69af
|
@ -180,7 +180,7 @@ public class RAMDirectory extends Directory implements Serializable {
|
|||
synchronized (this) {
|
||||
RAMFile existing = fileMap.get(name);
|
||||
if (existing!=null) {
|
||||
sizeInBytes.addAndGet(existing.sizeInBytes);
|
||||
sizeInBytes.addAndGet(-existing.sizeInBytes);
|
||||
existing.directory = null;
|
||||
}
|
||||
fileMap.put(name, file);
|
||||
|
|
Loading…
Reference in New Issue