mirror of https://gitee.com/bigwinds/arangodb
Fixing warnings
This commit is contained in:
parent
ec848b879f
commit
98df9c21a2
|
@ -143,7 +143,9 @@ static std::unique_ptr<graph::BaseOptions> CreateTraversalOptions(
|
||||||
"supported, with bfs: true due to "
|
"supported, with bfs: true due to "
|
||||||
"unpredictable results.");
|
"unpredictable results.");
|
||||||
}
|
}
|
||||||
return options;
|
std::unique_ptr<graph::BaseOptions> ret(options.get());
|
||||||
|
options.release();
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::unique_ptr<graph::BaseOptions> CreateShortestPathOptions(
|
static std::unique_ptr<graph::BaseOptions> CreateShortestPathOptions(
|
||||||
|
@ -171,7 +173,9 @@ static std::unique_ptr<graph::BaseOptions> CreateShortestPathOptions(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return options;
|
std::unique_ptr<graph::BaseOptions> ret(options.get());
|
||||||
|
options.release();
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// @brief create the plan
|
/// @brief create the plan
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
namespace arangodb {
|
namespace arangodb {
|
||||||
|
|
||||||
namespace graph {
|
namespace graph {
|
||||||
class BaseOptions;
|
struct BaseOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace aql {
|
namespace aql {
|
||||||
|
|
|
@ -32,15 +32,15 @@
|
||||||
namespace arangodb {
|
namespace arangodb {
|
||||||
|
|
||||||
namespace aql {
|
namespace aql {
|
||||||
class Collection;
|
struct Collection;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace graph {
|
namespace graph {
|
||||||
class BaseOptions;
|
struct BaseOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace traverser {
|
namespace traverser {
|
||||||
class TraverserOptions;
|
struct TraverserOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace aql {
|
namespace aql {
|
||||||
|
|
|
@ -31,7 +31,7 @@ namespace arangodb {
|
||||||
class CollectionNameResolver;
|
class CollectionNameResolver;
|
||||||
|
|
||||||
namespace graph {
|
namespace graph {
|
||||||
class BaseOptions;
|
struct BaseOptions;
|
||||||
class ClusterTraverserCache;
|
class ClusterTraverserCache;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ namespace arangodb {
|
||||||
class StringRef;
|
class StringRef;
|
||||||
|
|
||||||
namespace aql {
|
namespace aql {
|
||||||
class AqlValue;
|
struct AqlValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace transaction {
|
namespace transaction {
|
||||||
|
|
|
@ -82,7 +82,6 @@ std::string const RocksDBEngine::FeatureName("RocksDBEngine");
|
||||||
RocksDBEngine::RocksDBEngine(application_features::ApplicationServer* server)
|
RocksDBEngine::RocksDBEngine(application_features::ApplicationServer* server)
|
||||||
: StorageEngine(server, EngineName, FeatureName, new RocksDBIndexFactory()),
|
: StorageEngine(server, EngineName, FeatureName, new RocksDBIndexFactory()),
|
||||||
_db(nullptr),
|
_db(nullptr),
|
||||||
_replicationManager(nullptr),
|
|
||||||
_cmp(new RocksDBComparator()),
|
_cmp(new RocksDBComparator()),
|
||||||
_maxTransactionSize((std::numeric_limits<uint64_t>::max)()),
|
_maxTransactionSize((std::numeric_limits<uint64_t>::max)()),
|
||||||
_intermediateTransactionCommitSize(32 * 1024 * 1024),
|
_intermediateTransactionCommitSize(32 * 1024 * 1024),
|
||||||
|
|
Loading…
Reference in New Issue