lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Sturge <peter.stu...@gmail.com>
Subject Re: commitReserveDuration, backups and saveCommitPoint
Date Thu, 02 Sep 2010 17:57:37 GMT
After doing some testing patching IndexDeletionPolicyWrapper, looks like
there is a second problem, in:
IndexDeletionPolicyWrapper$IndexCommitWrapper.delete(), where it calls
contains() instead of containsKey() on the savedCommits map:

IndexDeletionPolicyWrapper.java:
-      if(savedCommits.contains(version)) {
+      if(savedCommits.containsKey(version)) {

With this and the previous put() fix added, backups now work correctly.


Peter

Mime
View raw message