mirror of https://github.com/apache/lucene.git
LUCENE-2163: remove unnecessary sync
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1383882 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e8ed39cb01
commit
e3c2194cd1
|
@ -273,7 +273,7 @@ final class StandardDirectoryReader extends DirectoryReader {
|
|||
return reader;
|
||||
}
|
||||
|
||||
private synchronized DirectoryReader doOpenNoWriter(IndexCommit commit) throws IOException {
|
||||
private DirectoryReader doOpenNoWriter(IndexCommit commit) throws IOException {
|
||||
|
||||
if (commit == null) {
|
||||
if (isCurrent()) {
|
||||
|
@ -298,7 +298,7 @@ final class StandardDirectoryReader extends DirectoryReader {
|
|||
}.run(commit);
|
||||
}
|
||||
|
||||
synchronized DirectoryReader doOpenIfChanged(SegmentInfos infos, IndexWriter writer) throws IOException {
|
||||
DirectoryReader doOpenIfChanged(SegmentInfos infos, IndexWriter writer) throws IOException {
|
||||
return StandardDirectoryReader.open(directory, writer, infos, getSequentialSubReaders(), termInfosIndexDivisor);
|
||||
}
|
||||
|
||||
|
@ -328,7 +328,7 @@ final class StandardDirectoryReader extends DirectoryReader {
|
|||
}
|
||||
|
||||
@Override
|
||||
protected synchronized void doClose() throws IOException {
|
||||
protected void doClose() throws IOException {
|
||||
IOException ioe = null;
|
||||
for (final AtomicReader r : getSequentialSubReaders()) {
|
||||
// try to close each reader, even if an exception is thrown
|
||||
|
|
Loading…
Reference in New Issue