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:
Michael McCandless 2009-12-02 19:09:00 +00:00
parent cb325fd07f
commit 62798f69af
1 changed files with 1 additions and 1 deletions

View File

@ -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);