1
0
Fork 0

clang format

This commit is contained in:
Jan Christoph Uhde 2016-08-16 13:33:16 +02:00
parent 6f2ce0cd5a
commit 341891ed74
2 changed files with 3 additions and 3 deletions

View File

@ -370,7 +370,7 @@ bool VppCommTask::processRead() {
_request = new VppRequest(_connectionInfo, std::move(message));
GeneralServerFeature::HANDLER_FACTORY->setRequestContext(_request);
//make sure we have a dabase
// make sure we have a dabase
if (_request->requestContext() == nullptr) {
handleSimpleError(GeneralResponse::ResponseCode::NOT_FOUND,
TRI_ERROR_ARANGO_DATABASE_NOT_FOUND,

View File

@ -83,13 +83,13 @@ class VppCommTask : public GeneralCommTask {
};
std::unordered_map<MessageID, IncompleteVPackMessage> _incompleteMessages;
static size_t const _bufferLength = 4096UL;
static size_t const _bufferLength = 4096UL;
static size_t const _chunkMaxBytes = 1000;
struct ProcessReadVariables {
ProcessReadVariables()
: _currentChunkLength(0),
_readBufferCursor(nullptr),
_cleanupLength(_bufferLength - _chunkMaxBytes - 1 ) {}
_cleanupLength(_bufferLength - _chunkMaxBytes - 1) {}
uint32_t
_currentChunkLength; // size of chunk processed or 0 when expecting
// new chunk