From 62798f69af2ff8388379c4fcfb17317b9a4759b8 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Wed, 2 Dec 2009 19:09:00 +0000 Subject: [PATCH] LUCENE-2095: add missing minus sign git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@886262 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/lucene/store/RAMDirectory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/lucene/store/RAMDirectory.java b/src/java/org/apache/lucene/store/RAMDirectory.java index a1dcb67fd38..c68e767945e 100644 --- a/src/java/org/apache/lucene/store/RAMDirectory.java +++ b/src/java/org/apache/lucene/store/RAMDirectory.java @@ -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);