diff options
author | Tor Egge <Tor.Egge@broadpark.no> | 2020-04-22 19:02:25 +0200 |
---|---|---|
committer | Tor Egge <Tor.Egge@broadpark.no> | 2020-04-22 19:02:25 +0200 |
commit | 53f8942c5309ceb56c6dbe820df9dbefef0baf00 (patch) | |
tree | a9dd9c1bac76b2e879c55b81078f7b8a7ad40980 /storage | |
parent | f9fae000b09cf1457e280e95a95f8b775497211e (diff) |
Don't mix iterators from different containers.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/vespa/storage/distributor/maintenance/simplebucketprioritydatabase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/src/vespa/storage/distributor/maintenance/simplebucketprioritydatabase.cpp b/storage/src/vespa/storage/distributor/maintenance/simplebucketprioritydatabase.cpp index 56f43db1ac5..7b75091e252 100644 --- a/storage/src/vespa/storage/distributor/maintenance/simplebucketprioritydatabase.cpp +++ b/storage/src/vespa/storage/distributor/maintenance/simplebucketprioritydatabase.cpp @@ -83,7 +83,7 @@ SimpleBucketPriorityDatabase::SimpleConstIteratorImpl::increment() { while (!atEnd()) { step(); - if (!currentPriorityAtEnd()) { + if (atEnd() || !currentPriorityAtEnd()) { break; } } |