Skip to content

Commit 19174d6

Browse files
Cleanup some Dead Code in o.e.index.store (#52045)
One obviously unused method and an incorrect Javadoc that referenced an otherwise unused class.
1 parent 55f303e commit 19174d6

File tree

3 files changed

+2
-50
lines changed

3 files changed

+2
-50
lines changed

server/src/main/java/org/elasticsearch/index/IndexModule.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@
5353
import org.elasticsearch.index.shard.IndexingOperationListener;
5454
import org.elasticsearch.index.shard.SearchOperationListener;
5555
import org.elasticsearch.index.similarity.SimilarityService;
56-
import org.elasticsearch.index.store.DirectoryService;
5756
import org.elasticsearch.index.store.FsDirectoryFactory;
5857
import org.elasticsearch.indices.IndicesQueryCache;
5958
import org.elasticsearch.indices.breaker.CircuitBreakerService;
@@ -85,7 +84,8 @@
8584
* {@link #addSimilarity(String, TriFunction)} while existing Providers can be referenced through Settings under the
8685
* {@link IndexModule#SIMILARITY_SETTINGS_PREFIX} prefix along with the "type" value. For example, to reference the
8786
* {@link BM25Similarity}, the configuration {@code "index.similarity.my_similarity.type : "BM25"} can be used.</li>
88-
* <li>{@link DirectoryService} - Custom {@link DirectoryService} instances can be registered via {@link IndexStorePlugin}</li>
87+
* <li>{@link IndexStorePlugin.DirectoryFactory} - Custom {@link IndexStorePlugin.DirectoryFactory} instances can be registered
88+
* via {@link IndexStorePlugin}</li>
8989
* <li>{@link IndexEventListener} - Custom {@link IndexEventListener} instances can be registered via
9090
* {@link #addIndexEventListener(IndexEventListener)}</li>
9191
* <li>Settings update listener - Custom settings update listener can be registered via

server/src/main/java/org/elasticsearch/index/store/DirectoryService.java

Lines changed: 0 additions & 36 deletions
This file was deleted.

server/src/main/java/org/elasticsearch/index/store/Store.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -208,18 +208,6 @@ private static SegmentInfos readSegmentsInfo(IndexCommit commit, Directory direc
208208

209209
}
210210

211-
/**
212-
* Loads the maximum sequence number and local checkpoint from the given Lucene commit point or the latest if not provided.
213-
*
214-
* @param commit the commit point to load seqno stats, or the last commit in the store if the parameter is null
215-
* @return {@link SequenceNumbers.CommitInfo} containing information about the last commit
216-
* @throws IOException if an I/O exception occurred reading the latest Lucene commit point from disk
217-
*/
218-
public static SequenceNumbers.CommitInfo loadSeqNoInfo(final IndexCommit commit) throws IOException {
219-
final Map<String, String> userData = commit.getUserData();
220-
return SequenceNumbers.loadSeqNoInfoFromLuceneCommit(userData.entrySet());
221-
}
222-
223211
final void ensureOpen() {
224212
if (this.refCounter.refCount() <= 0) {
225213
throw new AlreadyClosedException("store is already closed");

0 commit comments

Comments
 (0)