8000 fix logic error in max results handling · mnemosdev/arangodb@e1bac93 · GitHub
[go: up one dir, main page]

Skip to content

Commit e1bac93

Browse files
committed
fix logic error in max results handling
1 parent 666235b commit e1bac93

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arangod/Aql/QueryCache.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,11 +477,11 @@ void QueryCache::setMaxResults(size_t value) {
477477

478478
size_t maxResults = MaxResults.load();
479479

480-
if (value > maxResults) {
480+
if (value < maxResults) {
481481
enforceMaxResults(value);
482482
}
483483

484-
maxResults = value;
484+
MaxResults.store(value);
485485
}
486486

487487
/// @brief sets the caching mode

0 commit comments

Comments
 (0)
0