mirror of https://github.com/apache/druid.git
Don't check for sortedness if we already know GenericIndexedWriter isn't sorted
This commit is contained in:
parent
07266d682a
commit
8d3cdd8572
|
@ -66,7 +66,7 @@ public class GenericIndexedWriter<T> implements Closeable
|
||||||
|
|
||||||
public void write(T objectToWrite) throws IOException
|
public void write(T objectToWrite) throws IOException
|
||||||
{
|
{
|
||||||
if (prevObject != null && strategy.compare(prevObject, objectToWrite) >= 0) {
|
if (objectsSorted && prevObject != null && strategy.compare(prevObject, objectToWrite) >= 0) {
|
||||||
objectsSorted = false;
|
objectsSorted = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue