mirror of https://gitee.com/bigwinds/arangodb
fix compiler warnings
This commit is contained in:
parent
1368c7e2f2
commit
0f5fe129c9
|
@ -211,7 +211,6 @@ SCENARIO("The shard distribution can be reported", "[cluster][shards]") {
|
|||
|
||||
bool gotFirstRequest = false;
|
||||
CoordTransactionID cordTrxId = 0;
|
||||
uint64_t requestsInFlight = 0;
|
||||
|
||||
std::queue<ClusterCommResult> responses;
|
||||
ClusterCommResult leaderS2Response;
|
||||
|
@ -1910,4 +1909,4 @@ SCENARIO("The shard distribution can be reported", "[cluster][shards]") {
|
|||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- END-OF-FILE
|
||||
// -----------------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
@ -486,7 +486,7 @@ SECTION("BinaryIn") {
|
|||
// empty array
|
||||
{
|
||||
irs::Or expected;
|
||||
auto& root = expected.add<irs::empty>();
|
||||
expected.add<irs::empty>();
|
||||
|
||||
assertFilterSuccess("FOR d IN collection FILTER d.quick.brown.fox in [] RETURN d", expected);
|
||||
assertFilterSuccess("FOR d IN collection FILTER d['quick'].brown.fox in [] RETURN d", expected);
|
||||
|
@ -1819,7 +1819,7 @@ SECTION("BinaryIn") {
|
|||
irs::numeric_token_stream stream;
|
||||
stream.reset(2.);
|
||||
CHECK(stream.next());
|
||||
auto& term = stream.attributes().get<irs::term_attribute>();
|
||||
stream.attributes().get<irs::term_attribute>();
|
||||
|
||||
ExpressionContextMock ctx;
|
||||
ctx.vars.emplace("x", arangodb::aql::AqlValue(1,3));
|
||||
|
@ -1946,7 +1946,7 @@ SECTION("BinaryNotIn") {
|
|||
// empty array
|
||||
{
|
||||
irs::Or expected;
|
||||
auto& root = expected.add<irs::all>();
|
||||
expected.add<irs::all>();
|
||||
|
||||
assertFilterSuccess("FOR d IN collection FILTER d.quick.brown.fox not in [] RETURN d", expected);
|
||||
}
|
||||
|
@ -3308,7 +3308,6 @@ SECTION("BinaryNotIn") {
|
|||
irs::numeric_token_stream stream;
|
||||
stream.reset(2.);
|
||||
CHECK(stream.next());
|
||||
auto& term = stream.attributes().get<irs::term_attribute>();
|
||||
|
||||
ExpressionContextMock ctx;
|
||||
ctx.vars.emplace("x", arangodb::aql::AqlValue(1,3));
|
||||
|
@ -3369,4 +3368,4 @@ SECTION("BinaryNotIn") {
|
|||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- END-OF-FILE
|
||||
// -----------------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
@ -406,7 +406,6 @@ SECTION("test_writeCustomizedValues") {
|
|||
meta._fields["c"]->_fields["some"] = meta._fields["c"]; // initialize with parent, override below
|
||||
meta._fields["c"]->_fields["none"] = meta._fields["c"]; // initialize with parent
|
||||
|
||||
auto& overrideDefault = *(meta._fields["c"]->_fields["default"]);
|
||||
auto& overrideAll = *(meta._fields["c"]->_fields["all"]);
|
||||
auto& overrideSome = *(meta._fields["c"]->_fields["some"]);
|
||||
auto& overrideNone = *(meta._fields["c"]->_fields["none"]);
|
||||
|
@ -583,4 +582,4 @@ SECTION("test_writeMaskNone") {
|
|||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- END-OF-FILE
|
||||
// -----------------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
|
@ -386,7 +386,6 @@ SECTION("test_query") {
|
|||
REQUIRE((false == !wiewImpl));
|
||||
auto logicalView = wiewImpl->ensure(42);
|
||||
REQUIRE((false == !logicalView));
|
||||
auto* viewImpl = dynamic_cast<arangodb::iresearch::IResearchView*>(logicalView.get());
|
||||
|
||||
arangodb::CollectionNameResolver resolver(vocbase);
|
||||
auto state = s.engine.createTransactionState(resolver, arangodb::transaction::Options());
|
||||
|
@ -892,7 +891,7 @@ SECTION("test_updateProperties") {
|
|||
auto collectionJson = arangodb::velocypack::Parser::fromJson("{ \"name\": \"testCollection\" }");
|
||||
auto json = arangodb::velocypack::Parser::fromJson("{ \"name\": \"testView\", \"type\": \"arangosearch\", \"properties\": { \"collections\": [ 3, 4, 5 ], \"threadsMaxIdle\": 24, \"threadsMaxTotal\": 42 } }");
|
||||
TRI_vocbase_t vocbase(TRI_vocbase_type_e::TRI_VOCBASE_TYPE_NORMAL, 1, "testVocbase");
|
||||
auto* logicalCollection = vocbase.createCollection(collectionJson->slice());
|
||||
vocbase.createCollection(collectionJson->slice());
|
||||
auto wiew = arangodb::iresearch::IResearchViewDBServer::make(vocbase, json->slice(), true, 42);
|
||||
CHECK((false == !wiew));
|
||||
auto* impl = dynamic_cast<arangodb::iresearch::IResearchViewDBServer*>(wiew.get());
|
||||
|
@ -953,7 +952,7 @@ SECTION("test_updateProperties") {
|
|||
auto collectionJson = arangodb::velocypack::Parser::fromJson("{ \"name\": \"testCollection\" }");
|
||||
auto json = arangodb::velocypack::Parser::fromJson("{ \"name\": \"testView\", \"type\": \"arangosearch\", \"properties\": { \"collections\": [ 3, 4, 5 ], \"threadsMaxIdle\": 24, \"threadsMaxTotal\": 42 } }");
|
||||
TRI_vocbase_t vocbase(TRI_vocbase_type_e::TRI_VOCBASE_TYPE_NORMAL, 1, "testVocbase");
|
||||
auto* logicalCollection = vocbase.createCollection(collectionJson->slice());
|
||||
vocbase.createCollection(collectionJson->slice());
|
||||
auto wiew = arangodb::iresearch::IResearchViewDBServer::make(vocbase, json->slice(), true, 42);
|
||||
CHECK((false == !wiew));
|
||||
auto* impl = dynamic_cast<arangodb::iresearch::IResearchViewDBServer*>(wiew.get());
|
||||
|
@ -1014,7 +1013,7 @@ SECTION("test_updateProperties") {
|
|||
auto collectionJson = arangodb::velocypack::Parser::fromJson("{ \"name\": \"testCollection\" }");
|
||||
auto json = arangodb::velocypack::Parser::fromJson("{ \"name\": \"testView\", \"type\": \"arangosearch\", \"properties\": { \"collections\": [ 3, 4, 5 ], \"threadsMaxIdle\": 24, \"threadsMaxTotal\": 42 } }");
|
||||
TRI_vocbase_t vocbase(TRI_vocbase_type_e::TRI_VOCBASE_TYPE_NORMAL, 1, "testVocbase");
|
||||
auto* logicalCollection = vocbase.createCollection(collectionJson->slice());
|
||||
vocbase.createCollection(collectionJson->slice());
|
||||
auto wiew = arangodb::iresearch::IResearchViewDBServer::make(vocbase, json->slice(), true, 42);
|
||||
CHECK((false == !wiew));
|
||||
auto* impl = dynamic_cast<arangodb::iresearch::IResearchViewDBServer*>(wiew.get());
|
||||
|
@ -1077,7 +1076,7 @@ SECTION("test_updateProperties") {
|
|||
auto collectionJson = arangodb::velocypack::Parser::fromJson("{ \"name\": \"testCollection\" }");
|
||||
auto json = arangodb::velocypack::Parser::fromJson("{ \"name\": \"testView\", \"type\": \"arangosearch\", \"properties\": { \"collections\": [ 3, 4, 5 ], \"threadsMaxIdle\": 24, \"threadsMaxTotal\": 42 } }");
|
||||
TRI_vocbase_t vocbase(TRI_vocbase_type_e::TRI_VOCBASE_TYPE_NORMAL, 1, "testVocbase");
|
||||
auto* logicalCollection = vocbase.createCollection(collectionJson->slice());
|
||||
vocbase.createCollection(collectionJson->slice());
|
||||
auto wiew = arangodb::iresearch::IResearchViewDBServer::make(vocbase, json->slice(), true, 42);
|
||||
CHECK((false == !wiew));
|
||||
auto* impl = dynamic_cast<arangodb::iresearch::IResearchViewDBServer*>(wiew.get());
|
||||
|
@ -1181,4 +1180,4 @@ SECTION("test_visitCollections") {
|
|||
|
||||
// -----------------------------------------------------------------------------
|
||||
// --SECTION-- END-OF-FILE
|
||||
// -----------------------------------------------------------------------------
|
||||
// -----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue