diff --git a/arangod/RocksDBEngine/RocksDBLogValue.cpp b/arangod/RocksDBEngine/RocksDBLogValue.cpp index bf048b7f75..5ab34abc08 100644 --- a/arangod/RocksDBEngine/RocksDBLogValue.cpp +++ b/arangod/RocksDBEngine/RocksDBLogValue.cpp @@ -22,7 +22,7 @@ /// @author Daniel H. Larkin //////////////////////////////////////////////////////////////////////////////// -#include "RocksDBEngine/RocksDBLogValue.h" +#include "RocksDBLogValue.h" #include "Basics/Common.h" #include "Basics/Exceptions.h" #include "RocksDBEngine/RocksDBCommon.h" @@ -112,7 +112,7 @@ RocksDBLogValue::RocksDBLogValue(RocksDBLogType type) : _buffer() { _buffer.push_back(static_cast(type)); break; default: - THROW_ARANGO_EXCEPTION(TRI_ERROR_BAD_PARAMETER); + THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_BAD_PARAMETER, "invalid type for log value"); } } @@ -128,7 +128,7 @@ RocksDBLogValue::RocksDBLogValue(RocksDBLogType type, uint64_t val) } default: - THROW_ARANGO_EXCEPTION(TRI_ERROR_BAD_PARAMETER); + THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_BAD_PARAMETER, "invalid type for log value"); } } @@ -149,7 +149,7 @@ RocksDBLogValue::RocksDBLogValue(RocksDBLogType type, uint64_t dbId, } default: - THROW_ARANGO_EXCEPTION(TRI_ERROR_BAD_PARAMETER); + THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_BAD_PARAMETER, "invalid type for log value"); } } @@ -166,7 +166,7 @@ RocksDBLogValue::RocksDBLogValue(RocksDBLogType type, uint64_t dbId, break; } default: - THROW_ARANGO_EXCEPTION(TRI_ERROR_BAD_PARAMETER); + THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_BAD_PARAMETER, "invalid type for log value"); } } @@ -185,7 +185,7 @@ RocksDBLogValue::RocksDBLogValue(RocksDBLogType type, uint64_t dbId, break; } default: - THROW_ARANGO_EXCEPTION(TRI_ERROR_BAD_PARAMETER); + THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_BAD_PARAMETER, "invalid type for log value"); } } @@ -193,6 +193,7 @@ RocksDBLogValue::RocksDBLogValue(RocksDBLogType type, uint64_t dbId, uint64_t cid, StringRef const& data) : _buffer() { switch (type) { + case RocksDBLogType::SingleRemove: case RocksDBLogType::CollectionRename: { _buffer.reserve(sizeof(RocksDBLogType) + sizeof(uint64_t) * 2 + data.length()); @@ -203,7 +204,7 @@ RocksDBLogValue::RocksDBLogValue(RocksDBLogType type, uint64_t dbId, break; } default: - THROW_ARANGO_EXCEPTION(TRI_ERROR_BAD_PARAMETER); + THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_BAD_PARAMETER, "invalid type for log value"); } } @@ -218,7 +219,7 @@ RocksDBLogValue::RocksDBLogValue(RocksDBLogType type, StringRef const& data) } default: - THROW_ARANGO_EXCEPTION(TRI_ERROR_BAD_PARAMETER); + THROW_ARANGO_EXCEPTION_MESSAGE(TRI_ERROR_BAD_PARAMETER, "invalid type for log value"); } }