File tree Expand file tree Collapse file tree 6 files changed +8
-5
lines changed Expand file tree Collapse file tree 6 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 39
39
#include < velocypack/Slice.h>
40
40
#include < velocypack/velocypack-aliases.h>
41
41
42
+ using namespace arangodb ;
42
43
using namespace arangodb ::aql;
43
44
44
45
// / @brief initialize a singleton no-op node instance
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ BlockCollector::~BlockCollector() { clear(); }
36
36
37
37
size_t BlockCollector::totalSize () const { return _totalSize; }
38
38
39
- size_t BlockCollector::nrRegs () const {
39
+ RegisterId BlockCollector::nrRegs () const {
40
40
TRI_ASSERT (_totalSize > 0 );
41
41
TRI_ASSERT (!_blocks.empty ());
42
42
return _blocks[0 ]->getNrRegs ();
Original file line number Diff line number Diff line change 25
25
#define ARANGOD_AQL_BLOCK_COLLECTOR_H 1
26
26
27
27
#include " Basics/Common.h"
28
+ #include " Aql/types.h"
28
29
29
30
namespace arangodb {
30
31
namespace aql {
@@ -42,7 +43,7 @@ class BlockCollector {
42
43
~BlockCollector ();
43
44
44
45
size_t totalSize () const ;
45
- size_t nrRegs () const ;
46
+ RegisterId nrRegs () const ;
46
47
47
48
void clear ();
48
49
Original file line number Diff line number Diff line change 25
25
#include " Aql/Collection.h"
26
26
#include " Basics/Exceptions.h"
27
27
28
+ using namespace arangodb ;
28
29
using namespace arangodb ::aql;
29
30
30
31
Collections::Collections (TRI_vocbase_t* vocbase)
Original file line number Diff line number Diff line change @@ -869,8 +869,8 @@ AqlValue Expression::executeSimpleExpressionFCall(
869
869
VPackFunctionParameters parameters{arena};
870
870
871
871
// same here
872
- SmallVector<int , 64 >::allocator_type::arena_type arena2;
873
- SmallVector<int , 64 > destroyParameters{arena2};
872
+ SmallVector<uint8_t , 64 >::allocator_type::arena_type arena2;
873
+ SmallVector<uint8_t , 64 > destroyParameters{arena2};
874
874
parameters.reserve (n);
875
875
destroyParameters.reserve (n);
876
876
Original file line number Diff line number Diff line change @@ -1760,7 +1760,7 @@ static double chooseTimeout(size_t count) {
1760
1760
// We usually assume that a server can process at least 5000 documents
1761
1761
// per second (this is a low estimate), and use a low limit of 0.5s
1762
1762
// and a high timeout of 120s
1763
- double timeout = count / 5000 ;
1763
+ double timeout = static_cast < double >( count / 5000 ) ;
1764
1764
if (timeout < 0.5 ) {
1765
1765
return 0.5 ;
1766
1766
} else if (timeout > 120 ) {
You can’t perform that action at this time.
0 commit comments