Skip to content

Commit

Permalink
调整一个目录多个写
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Nov 18, 2015
1 parent a723708 commit 7783dbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public void notify(List<URL> urls) {
}else{
long currentId = ID.incrementAndGet();
ids.put(currentId, url);
URL_IDS_MAPPER.put(url.toFullString(),currentId);
URL_IDS_MAPPER.putIfAbsent(url.toFullString(),currentId);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,7 @@ public void run() {
long remain = counter.decrementAndGet();
if(remain==0&&running){
writer.forceMerge(getMaxSegment());
writer.close();
init();
//init();
}
} catch (IOException e) {
logger.error("Failed to add statistics to lucene.",e);
Expand Down

0 comments on commit 7783dbe

Please sign in to comment.