|
@@ -51,7 +51,6 @@ class CombinedDeletionPolicy extends IndexDeletionPolicy {
|
|
indexDeletionPolicy.onInit(commits);
|
|
indexDeletionPolicy.onInit(commits);
|
|
switch (openMode) {
|
|
switch (openMode) {
|
|
case CREATE_INDEX_AND_TRANSLOG:
|
|
case CREATE_INDEX_AND_TRANSLOG:
|
|
- assert commits.isEmpty() : "index is being created but we already have commits";
|
|
|
|
break;
|
|
break;
|
|
case OPEN_INDEX_CREATE_TRANSLOG:
|
|
case OPEN_INDEX_CREATE_TRANSLOG:
|
|
assert commits.isEmpty() == false : "index is opened, but we have no commits";
|
|
assert commits.isEmpty() == false : "index is opened, but we have no commits";
|