remove InternalEngine.compareOpToLuceneDocBasedOnVersions as it is unused
relates #27720
This commit is contained in:
parent
f27cb96a64
commit
cfc3b2d344
|
@ -648,19 +648,6 @@ public class InternalEngine extends Engine {
|
||||||
return versionValue;
|
return versionValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
private OpVsLuceneDocStatus compareOpToLuceneDocBasedOnVersions(final Operation op)
|
|
||||||
throws IOException {
|
|
||||||
assert op.seqNo() == SequenceNumbers.UNASSIGNED_SEQ_NO : "op is resolved based on versions but have a seq#";
|
|
||||||
assert op.version() >= 0 : "versions should be non-negative. got " + op.version();
|
|
||||||
final VersionValue versionValue = resolveDocVersion(op);
|
|
||||||
if (versionValue == null) {
|
|
||||||
return OpVsLuceneDocStatus.LUCENE_DOC_NOT_FOUND;
|
|
||||||
} else {
|
|
||||||
return op.versionType().isVersionConflictForWrites(versionValue.version, op.version(), versionValue.isDelete()) ?
|
|
||||||
OpVsLuceneDocStatus.OP_STALE_OR_EQUAL : OpVsLuceneDocStatus.OP_NEWER;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean canOptimizeAddDocument(Index index) {
|
private boolean canOptimizeAddDocument(Index index) {
|
||||||
if (index.getAutoGeneratedIdTimestamp() != IndexRequest.UNSET_AUTO_GENERATED_TIMESTAMP) {
|
if (index.getAutoGeneratedIdTimestamp() != IndexRequest.UNSET_AUTO_GENERATED_TIMESTAMP) {
|
||||||
assert index.getAutoGeneratedIdTimestamp() >= 0 : "autoGeneratedIdTimestamp must be positive but was: "
|
assert index.getAutoGeneratedIdTimestamp() >= 0 : "autoGeneratedIdTimestamp must be positive but was: "
|
||||||
|
|
Loading…
Reference in New Issue