From 467f8af889e80459671414ca6a170d31da9e4c95 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Sat, 23 Mar 2013 15:06:31 +0000 Subject: [PATCH] LUCENE-4752: Fix SortingMergePolicy.clone. git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1460169 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/index/sorter/SortingMergePolicy.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lucene/misc/src/java/org/apache/lucene/index/sorter/SortingMergePolicy.java b/lucene/misc/src/java/org/apache/lucene/index/sorter/SortingMergePolicy.java index cfaa5c36984..f7b33495532 100644 --- a/lucene/misc/src/java/org/apache/lucene/index/sorter/SortingMergePolicy.java +++ b/lucene/misc/src/java/org/apache/lucene/index/sorter/SortingMergePolicy.java @@ -124,6 +124,11 @@ public final class SortingMergePolicy extends MergePolicy { return sortedMergeSpecification(in.findForcedDeletesMerges(segmentInfos)); } + @Override + public MergePolicy clone() { + return new SortingMergePolicy(in.clone(), sorter); + } + @Override public void close() { in.close();