diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-08-04 15:39:48 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-08-04 15:39:48 +0200 |
commit | dcacb56a3a03a26ab2d6ab041b4559b580d4a06c (patch) | |
tree | b5c9b4514d8c6d636ef1dbadb3406ab29861469f /searchlib | |
parent | 7ec911ecb9dac0966ed3c4f70d6545002f589c1a (diff) |
No need for prevprev. a simple -1 will suffice.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/docstore/logdatastore.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/searchlib/src/vespa/searchlib/docstore/logdatastore.cpp b/searchlib/src/vespa/searchlib/docstore/logdatastore.cpp index 377d1fe3d36..45c86379baf 100644 --- a/searchlib/src/vespa/searchlib/docstore/logdatastore.cpp +++ b/searchlib/src/vespa/searchlib/docstore/logdatastore.cpp @@ -811,11 +811,8 @@ LogDataStore::findIncompleteCompactedFiles(const NameIdSet & partList) { for (FileChunk::NameId prev = *it++; it != partList.end(); it++) { if (prev.next() == *it) { if (!incomplete.empty() && (*incomplete.rbegin() == prev)) { - NameIdSet::const_iterator prevprev = it; - prevprev--; - prevprev--; throw IllegalStateException(make_string("3 consecutive files {%ld, %ld, %ld}. Impossible", - prevprev->getId(), prev.getId(), it->getId())); + prev.getId()-1, prev.getId(), it->getId())); } incomplete.insert(*it); } |