mirror of https://gitee.com/bigwinds/arangodb
Fixed compile warning of false-positive return-type (#8737)
* Fixed compile warning of false-positive return-type * Actually fallback to the non-optimal but correct variant
This commit is contained in:
parent
a07d272b1f
commit
e5ce10cd60
|
@ -137,4 +137,9 @@ std::pair<ExecutionState, size_t> LimitExecutor::expectedNumberOfRows(size_t atM
|
|||
return {ExecutionState::DONE, 0};
|
||||
}
|
||||
}
|
||||
TRI_ASSERT(false);
|
||||
// This should not be reached, (the switch case is covering all enum values)
|
||||
// Nevertheless if it is reached this will fall back to the non.optimal, but
|
||||
// working variant
|
||||
return {ExecutionState::DONE, atMost};
|
||||
}
|
Loading…
Reference in New Issue