8000 make sure all error code names are prefixed with ERROR_ @fceller @kvs85 by jsteemann · Pull Request #9384 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
oops, this wasn't supposed to be in this commit
  • Loading branch information
jsteemann committed Jul 2, 2019
commit 049b0a14f06a4ebcc1f7dface32b98567efdcbf5
21 changes: 6 additions & 15 deletions arangod/Aql/DistinctCollectExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,12 @@ DistinctCollectExecutor::DistinctCollectExecutor(Fetcher& fetcher, Infos& infos)
AqlValueGroupEqual(_infos.getTransaction())) {}

DistinctCollectExecutor::~DistinctCollectExecutor() {
destroyValues();
}

void DistinctCollectExecutor::initializeCursor() {
destroyValues();
// destroy all AqlValues captured
for (auto& it : _seen) {
for (auto& it2 : it) {
const_cast<AqlValue*>(&it2)->destroy();
}
}
}

std::pair<ExecutionState, NoStats> DistinctCollectExecutor::produceRows(OutputAqlItemRow& output) {
Expand Down Expand Up @@ -137,13 +138,3 @@ std::pair<ExecutionState, size_t> DistinctCollectExecutor::expectedNumberOfRows(
// but it is upper bounded by the input.
return _fetcher.preFetchNumberOfRows(atMost);
}

void DistinctCollectExecutor::destroyValues() {
// destroy all AqlValues captured
for (auto& it : _seen) {
for (auto& it2 : it) {
const_cast<AqlValue*>(&it2)->destroy();
}
}
_seen.clear();
}
3 changes: 0 additions & 3 deletions arangod/Aql/DistinctCollectExecutor.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ class DistinctCollectExecutor {
DistinctCollectExecutor(DistinctCollectExecutor const&) = delete;
DistinctCollectExecutor(Fetcher& fetcher, Infos&);
~DistinctCollectExecutor();

void initializeCursor();

/**
* @brief produce the next Row of Aql Values.
Expand All @@ -109,7 +107,6 @@ class DistinctCollectExecutor {

private:
Infos const& infos() const noexcept { return _infos; };
void destroyValues();

private:
Infos const& _infos;
Expand Down
0