8000 properly throw an exception in case an invalid state is encountered by jsteemann · Pull Request #14849 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files. 8000
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions arangod/Cache/Table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ void Table::setTypeSpecifics(BucketClearer clearer, std::size_t slotsPerBucket)
void Table::clear() {
disable();
if (_auxiliary.get() != nullptr) {
throw;
THROW_ARANGO_EXCEPTION_MESSAGE(
TRI_ERROR_INTERNAL, "unexpected auxiliary state");
}
for (std::uint64_t i = 0; i < _size; i++) {
_bucketClearer(&(_buckets[i]));
Expand Down Expand Up @@ -360,4 +361,4 @@ void Table::defaultClearer(void* ptr) {
throw std::invalid_argument("must register a clearer");
}

} // namespace arangodb::cache
} // namespace arangodb::cache
0