Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Commit

Permalink
clean locks after ensuring index dir exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Newson committed Apr 2, 2011
1 parent 6b5372e commit e5b488d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/github/rnewson/couchdb/lucene/Main.java
Expand Up @@ -47,7 +47,6 @@ public static void main(String[] args) throws Exception {
configuration.setReloadingStrategy(new FileChangedReloadingStrategy());

final File dir = new File(configuration.getString("lucene.dir", "indexes"));
cleanLocks(dir);

if (!dir.exists() && !dir.mkdir()) {
LOG.error("Could not create " + dir.getCanonicalPath());
Expand All @@ -62,6 +61,7 @@ public static void main(String[] args) throws Exception {
System.exit(1);
}
LOG.info("Index output goes to: " + dir.getCanonicalPath());
cleanLocks(dir);

final Server server = new Server();
final SelectChannelConnector connector = new SelectChannelConnector();
Expand Down

0 comments on commit e5b488d

Please sign in to comment.