lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r886262 - /lucene/java/trunk/src/java/org/apache/lucene/store/RAMDirectory.java
Date Wed, 02 Dec 2009 19:09:00 GMT
Author: mikemccand
Date: Wed Dec  2 19:09:00 2009
New Revision: 886262

URL: http://svn.apache.org/viewvc?rev=886262&view=rev
Log:
LUCENE-2095: add missing minus sign

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/store/RAMDirectory.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/store/RAMDirectory.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/store/RAMDirectory.java?rev=886262&r1=886261&r2=886262&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/store/RAMDirectory.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/store/RAMDirectory.java Wed Dec  2 19:09:00
2009
@@ -180,7 +180,7 @@
     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);



Mime
View raw message