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 "
|
||||
"unpredictable results.");
|
||||
}
|
||||
return options;
|
||||
std::unique_ptr<graph::BaseOptions> ret(options.get());
|
||||
options.release();
|
||||
return ret;
|
||||
}
|
||||
|
||||
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
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
namespace arangodb {
|
||||
|
||||
namespace graph {
|
||||
class BaseOptions;
|
||||
struct BaseOptions;
|
||||
}
|
||||
|
||||
namespace aql {
|
||||
|
|
|
@ -32,15 +32,15 @@
|
|||
namespace arangodb {
|
||||
|
||||
namespace aql {
|
||||
class Collection;
|
||||
struct Collection;
|
||||
}
|
||||
|
||||
namespace graph {
|
||||
class BaseOptions;
|
||||
struct BaseOptions;
|
||||
}
|
||||
|
||||
namespace traverser {
|
||||
class TraverserOptions;
|
||||
struct TraverserOptions;
|
||||
}
|
||||
|
||||
namespace aql {
|
||||
|
|
|
@ -31,7 +31,7 @@ namespace arangodb {
|
|||
class CollectionNameResolver;
|
||||
|
||||
namespace graph {
|
||||
class BaseOptions;
|
||||
struct BaseOptions;
|
||||
class ClusterTraverserCache;
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace arangodb {
|
|||
class StringRef;
|
||||
|
||||
namespace aql {
|
||||
class AqlValue;
|
||||
struct AqlValue;
|
||||
}
|
||||
|
||||
namespace transaction {
|
||||
|
|
|
@ -82,7 +82,6 @@ std::string const RocksDBEngine::FeatureName("RocksDBEngine");
|
|||
RocksDBEngine::RocksDBEngine(application_features::ApplicationServer* server)
|
||||
: StorageEngine(server, EngineName, FeatureName, new RocksDBIndexFactory()),
|
||||
_db(nullptr),
|
||||
_replicationManager(nullptr),
|
||||
_cmp(new RocksDBComparator()),
|
||||
_maxTransactionSize((std::numeric_limits<uint64_t>::max)()),
|
||||
_intermediateTransactionCommitSize(32 * 1024 * 1024),
|
||||
|
|
Loading…
Reference in New Issue