Skip to content

Commit

Permalink
expand comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Qup42 committed Oct 27, 2024
1 parent 61521d7 commit f89a759
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/engine/Server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,9 @@ Awaitable<void> Server::executeUpdate(
};
std::vector<IdTriple<>> toInsert;
std::vector<IdTriple<>> toDelete;

Check warning on line 603 in src/engine/Server.cpp

View check run for this annotation

Codecov / codecov/patch

src/engine/Server.cpp#L596-L603

Added lines #L596 - L603 were not covered by tests
// Expected result size is size(query result) x num template rows.
// The maximum result size is size(query result) x num template rows. The
// actual result can be smaller if there are template rows with variables for
// which a result row does not have a value.
toInsert.reserve(res->idTable().size() * toInsertTemplates.size());
toDelete.reserve(res->idTable().size() * toDeleteTemplates.size());

Check warning on line 608 in src/engine/Server.cpp

View check run for this annotation

Codecov / codecov/patch

src/engine/Server.cpp#L607-L608

Added lines #L607 - L608 were not covered by tests
for (const auto& [pair, range] :
Expand Down

0 comments on commit f89a759

Please sign in to comment.