SERVER-116043 Mark visibility for remaining headers in query module owned by query team (#45729)
GitOrigin-RevId: 818f2b838e0c23a17cfab51c3fbda4eca6362357
This commit is contained in:
parent
b7cff93b0c
commit
debf70d76e
3
.github/CODEOWNERS
vendored
3
.github/CODEOWNERS
vendored
@ -1836,7 +1836,7 @@ WORKSPACE.bazel @10gen/devprod-build @svc-auto-approve-bot
|
||||
/src/mongo/db/**/dbmessage* @10gen/server-networking-and-observability @svc-auto-approve-bot
|
||||
/src/mongo/db/**/default_baton* @10gen/server-programmability @svc-auto-approve-bot
|
||||
/src/mongo/db/**/diagnostic_printers_test.cpp @10gen/query-integration-observability @svc-auto-approve-bot
|
||||
/src/mongo/db/**/keypattern.h @10gen/query-execution @10gen/query-optimization @svc-auto-approve-bot
|
||||
/src/mongo/db/**/keypattern* @10gen/query-execution @10gen/query-optimization @svc-auto-approve-bot
|
||||
/src/mongo/db/**/error_labels* @10gen/server-programmability @svc-auto-approve-bot
|
||||
/src/mongo/db/**/field_parser* @10gen/server-programmability @svc-auto-approve-bot
|
||||
/src/mongo/db/**/generic_argument_util.* @10gen/server-programmability @svc-auto-approve-bot
|
||||
@ -2884,6 +2884,7 @@ WORKSPACE.bazel @10gen/devprod-build @svc-auto-approve-bot
|
||||
/src/mongo/db/stats/**/change_stream* @10gen/query-execution-change-streams @svc-auto-approve-bot
|
||||
/src/mongo/db/stats/**/system_buckets_metrics* @10gen/server-catalog-and-routing @svc-auto-approve-bot
|
||||
/src/mongo/db/stats/**/timer_stats* @10gen/server-programmability @svc-auto-approve-bot
|
||||
/src/mongo/db/stats/**/counter_ops.h @10gen/server-programmability @svc-auto-approve-bot
|
||||
|
||||
# The following patterns are parsed from ./src/mongo/db/storage/OWNERS.yml
|
||||
/src/mongo/db/storage/**/* @10gen/server-storage-engine-integration @svc-auto-approve-bot
|
||||
|
||||
@ -60,6 +60,7 @@ core:
|
||||
- src/mongo/executor/task_executor[._]*
|
||||
- src/mongo/executor/thread_pool[._]*
|
||||
- src/mongo/db/exec/scoped_timer*
|
||||
- src/mongo/db/stats/counter_ops.h
|
||||
|
||||
core.bson:
|
||||
files:
|
||||
@ -273,6 +274,7 @@ catalog_and_routing:
|
||||
- src/mongo/db/rs_local_client*
|
||||
- src/mongo/db/database_name[._]*
|
||||
- src/mongo/db/namespace_string[._]*
|
||||
- src/mongo/db/stats/system_buckets_metrics*
|
||||
- src/mongo/util/namespace_string[._]*
|
||||
- src/mongo/util/database_name[._]*
|
||||
|
||||
@ -375,6 +377,7 @@ transactions:
|
||||
- src/mongo/db/commands/*session*
|
||||
- src/mongo/dbtests/logical_sessions_tests.cpp
|
||||
- src/mongo/s/client_transport_observer_mongos*
|
||||
- src/mongo/db/stats/read_preference_metrics.idl
|
||||
|
||||
fcv:
|
||||
meta:
|
||||
@ -1074,6 +1077,7 @@ replication.server_rw_concerns:
|
||||
- src/mongo/db/repl/*speculative_majority_read_info*
|
||||
- src/mongo/db/stats/server_write_concern*
|
||||
- src/mongo/db/stats/server_read_concern*
|
||||
- src/mongo/db/stats/read_concern_stats.idl
|
||||
- src/mongo/db/write_concern*
|
||||
|
||||
replication.rs_aware_service:
|
||||
|
||||
@ -52,7 +52,7 @@ filters:
|
||||
- "diagnostic_printers_test.cpp":
|
||||
approvers:
|
||||
- 10gen/query-integration-observability
|
||||
- "keypattern.h":
|
||||
- "keypattern*":
|
||||
approvers:
|
||||
- 10gen/query-optimization
|
||||
- 10gen/query-execution
|
||||
|
||||
@ -44,6 +44,7 @@
|
||||
#include "mongo/util/assert_util.h"
|
||||
#include "mongo/util/bufreader.h"
|
||||
#include "mongo/util/intrusive_counter.h"
|
||||
#include "mongo/util/modules.h"
|
||||
#include "mongo/util/string_map.h"
|
||||
|
||||
#include <cstring>
|
||||
@ -61,7 +62,7 @@
|
||||
#include <boost/smart_ptr.hpp>
|
||||
#include <boost/smart_ptr/intrusive_ptr.hpp>
|
||||
|
||||
namespace mongo {
|
||||
namespace MONGO_MOD_PUBLIC mongo {
|
||||
class BSONObj;
|
||||
|
||||
class FieldIterator;
|
||||
@ -995,4 +996,4 @@ inline MutableValue MutableValue::getField(Position pos) {
|
||||
inline MutableValue MutableValue::getField(StringData key) {
|
||||
return MutableDocument(*this).getField(key);
|
||||
}
|
||||
} // namespace mongo
|
||||
} // namespace MONGO_MOD_PUBLIC mongo
|
||||
|
||||
@ -34,13 +34,14 @@
|
||||
#include "mongo/stdx/unordered_map.h"
|
||||
#include "mongo/stdx/unordered_set.h"
|
||||
#include "mongo/util/intrusive_counter.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <map>
|
||||
#include <set>
|
||||
|
||||
|
||||
namespace mongo {
|
||||
namespace MONGO_MOD_PUBLIC mongo {
|
||||
|
||||
class DocumentComparator {
|
||||
public:
|
||||
@ -203,4 +204,4 @@ template <typename T>
|
||||
using DocumentUnorderedMap =
|
||||
stdx::unordered_map<Document, T, DocumentComparator::Hasher, DocumentComparator::EqualTo>;
|
||||
|
||||
} // namespace mongo
|
||||
} // namespace MONGO_MOD_PUBLIC mongo
|
||||
|
||||
@ -33,6 +33,7 @@
|
||||
#include "mongo/db/exec/document_value/document_metadata_fields.h"
|
||||
#include "mongo/db/exec/document_value/value.h"
|
||||
#include "mongo/util/intrusive_counter.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
#include <type_traits>
|
||||
|
||||
|
||||
@ -37,6 +37,7 @@
|
||||
#include "mongo/db/record_id.h"
|
||||
#include "mongo/util/assert_util.h"
|
||||
#include "mongo/util/bufreader.h"
|
||||
#include "mongo/util/modules.h"
|
||||
#include "mongo/util/time_support.h"
|
||||
|
||||
#include <bitset>
|
||||
@ -45,7 +46,7 @@
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
namespace mongo {
|
||||
namespace MONGO_MOD_PUBLIC mongo {
|
||||
/**
|
||||
* This class represents the metadata that the query execution engine can associate with a
|
||||
* particular intermediate result (either index key or document) passing between execution stages.
|
||||
@ -559,4 +560,4 @@ using QueryMetadataBitSet = std::bitset<DocumentMetadataFields::MetaType::kNumFi
|
||||
// Prints the metadata's name to the given stream.
|
||||
std::ostream& operator<<(std::ostream& stream, DocumentMetadataFields::MetaType type);
|
||||
StringBuilder& operator<<(StringBuilder& sb, DocumentMetadataFields::MetaType type);
|
||||
} // namespace mongo
|
||||
} // namespace MONGO_MOD_PUBLIC mongo
|
||||
|
||||
@ -47,6 +47,7 @@
|
||||
#include "mongo/util/assert_util.h"
|
||||
#include "mongo/util/bufreader.h"
|
||||
#include "mongo/util/intrusive_counter.h"
|
||||
#include "mongo/util/modules.h"
|
||||
#include "mongo/util/safe_num.h"
|
||||
#include "mongo/util/time_support.h"
|
||||
#include "mongo/util/uuid.h"
|
||||
@ -59,7 +60,7 @@
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
namespace mongo {
|
||||
namespace MONGO_MOD_PUBLIC mongo {
|
||||
class BSONElement;
|
||||
|
||||
/** A variant type that can hold any type of data representable in BSON
|
||||
@ -503,7 +504,7 @@ public:
|
||||
return values;
|
||||
}
|
||||
};
|
||||
} // namespace mongo
|
||||
} // namespace MONGO_MOD_PUBLIC mongo
|
||||
|
||||
/* ======================= INLINED IMPLEMENTATIONS ========================== */
|
||||
|
||||
|
||||
@ -33,6 +33,7 @@
|
||||
#include "mongo/db/exec/document_value/value.h"
|
||||
#include "mongo/stdx/unordered_map.h"
|
||||
#include "mongo/stdx/unordered_set.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <map>
|
||||
@ -41,7 +42,7 @@
|
||||
#include <absl/container/flat_hash_map.h>
|
||||
#include <absl/container/flat_hash_set.h>
|
||||
|
||||
namespace mongo {
|
||||
namespace MONGO_MOD_PUBLIC mongo {
|
||||
|
||||
class ValueComparator {
|
||||
public:
|
||||
@ -241,4 +242,4 @@ template <typename T>
|
||||
using ValueFlatUnorderedMap =
|
||||
absl::flat_hash_map<Value, T, ValueComparator::Hasher, ValueComparator::EqualTo>;
|
||||
|
||||
} // namespace mongo
|
||||
} // namespace MONGO_MOD_PUBLIC mongo
|
||||
|
||||
@ -41,6 +41,7 @@
|
||||
#include "mongo/util/assert_util.h"
|
||||
#include "mongo/util/debug_util.h"
|
||||
#include "mongo/util/intrusive_counter.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cstdlib>
|
||||
|
||||
@ -53,8 +53,10 @@
|
||||
#include "mongo/db/matcher/schema/expression_internal_schema_object_match.h"
|
||||
#include "mongo/db/matcher/schema/expression_internal_schema_root_doc_eq.h"
|
||||
#include "mongo/db/matcher/schema/expression_internal_schema_unique_items.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
namespace mongo {
|
||||
// TODO SERVER-113198: Remove external dependencies on this header.
|
||||
namespace MONGO_MOD_NEEDS_REPLACEMENT mongo {
|
||||
|
||||
namespace exec::matcher {
|
||||
|
||||
@ -500,4 +502,4 @@ BSONElement findFirstDuplicateValue(const InternalSchemaUniqueItemsMatchExpressi
|
||||
bool matchesBSONObj(const InternalSchemaAllowedPropertiesMatchExpression* expr, const BSONObj& obj);
|
||||
|
||||
} // namespace exec::matcher
|
||||
} // namespace mongo
|
||||
} // namespace MONGO_MOD_NEEDS_REPLACEMENT mongo
|
||||
|
||||
@ -30,6 +30,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "mongo/platform/visibility.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
#ifdef MONGO_API_mutable_bson // Compiling mutable_bson API
|
||||
#define MONGO_MUTABLE_BSON_API MONGO_API_EXPORT
|
||||
|
||||
@ -1,249 +0,0 @@
|
||||
/**
|
||||
* Copyright (C) 2018-present MongoDB, Inc.
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the Server Side Public License, version 1,
|
||||
* as published by MongoDB, Inc.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* Server Side Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the Server Side Public License
|
||||
* along with this program. If not, see
|
||||
* <http://www.mongodb.com/licensing/server-side-public-license>.
|
||||
*
|
||||
* As a special exception, the copyright holders give permission to link the
|
||||
* code of portions of this program with the OpenSSL library under certain
|
||||
* conditions as described in each individual source file and distribute
|
||||
* linked combinations including the program with the OpenSSL library. You
|
||||
* must comply with the Server Side Public License in all respects for
|
||||
* all of the code used other than as permitted herein. If you modify file(s)
|
||||
* with this exception, you may extend this exception to your version of the
|
||||
* file(s), but you are not obligated to do so. If you do not wish to do so,
|
||||
* delete this exception statement from your version. If you delete this
|
||||
* exception statement from all source files in the program, then also delete
|
||||
* it in the license file.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace mongo {
|
||||
namespace mutablebson {
|
||||
|
||||
inline ConstElement::ConstElement(const Element& basis) : _basis(basis) {}
|
||||
|
||||
inline ConstElement ConstElement::leftChild() const {
|
||||
return _basis.leftChild();
|
||||
}
|
||||
|
||||
inline ConstElement ConstElement::rightChild() const {
|
||||
return _basis.rightChild();
|
||||
}
|
||||
|
||||
inline bool ConstElement::hasChildren() const {
|
||||
return _basis.hasChildren();
|
||||
}
|
||||
|
||||
inline ConstElement ConstElement::leftSibling(size_t distance) const {
|
||||
return _basis.leftSibling(distance);
|
||||
}
|
||||
|
||||
inline ConstElement ConstElement::rightSibling(size_t distance) const {
|
||||
return _basis.rightSibling(distance);
|
||||
}
|
||||
|
||||
inline ConstElement ConstElement::parent() const {
|
||||
return _basis.parent();
|
||||
}
|
||||
|
||||
inline ConstElement ConstElement::findNthChild(size_t n) const {
|
||||
return _basis.findNthChild(n);
|
||||
}
|
||||
|
||||
inline ConstElement ConstElement::operator[](size_t n) const {
|
||||
return _basis[n];
|
||||
}
|
||||
|
||||
inline ConstElement ConstElement::findFirstChildNamed(StringData name) const {
|
||||
return _basis.findFirstChildNamed(name);
|
||||
}
|
||||
|
||||
inline ConstElement ConstElement::operator[](StringData name) const {
|
||||
return _basis[name];
|
||||
}
|
||||
|
||||
inline ConstElement ConstElement::findElementNamed(StringData name) const {
|
||||
return _basis.findElementNamed(name);
|
||||
}
|
||||
|
||||
inline size_t ConstElement::countSiblingsLeft() const {
|
||||
return _basis.countSiblingsLeft();
|
||||
}
|
||||
|
||||
inline size_t ConstElement::countSiblingsRight() const {
|
||||
return _basis.countSiblingsRight();
|
||||
}
|
||||
|
||||
inline size_t ConstElement::countChildren() const {
|
||||
return _basis.countChildren();
|
||||
}
|
||||
|
||||
inline bool ConstElement::hasValue() const {
|
||||
return _basis.hasValue();
|
||||
}
|
||||
|
||||
inline const BSONElement ConstElement::getValue() const {
|
||||
return _basis.getValue();
|
||||
}
|
||||
|
||||
inline double ConstElement::getValueDouble() const {
|
||||
return _basis.getValueDouble();
|
||||
}
|
||||
|
||||
inline StringData ConstElement::getValueString() const {
|
||||
return _basis.getValueString();
|
||||
}
|
||||
|
||||
inline BSONObj ConstElement::getValueObject() const {
|
||||
return _basis.getValueObject();
|
||||
}
|
||||
|
||||
inline BSONArray ConstElement::getValueArray() const {
|
||||
return _basis.getValueArray();
|
||||
}
|
||||
|
||||
inline bool ConstElement::isValueUndefined() const {
|
||||
return _basis.isValueUndefined();
|
||||
}
|
||||
|
||||
inline OID ConstElement::getValueOID() const {
|
||||
return _basis.getValueOID();
|
||||
}
|
||||
|
||||
inline bool ConstElement::getValueBool() const {
|
||||
return _basis.getValueBool();
|
||||
}
|
||||
|
||||
inline Date_t ConstElement::getValueDate() const {
|
||||
return _basis.getValueDate();
|
||||
}
|
||||
|
||||
inline bool ConstElement::isValueNull() const {
|
||||
return _basis.isValueNull();
|
||||
}
|
||||
|
||||
inline StringData ConstElement::getValueSymbol() const {
|
||||
return _basis.getValueSymbol();
|
||||
}
|
||||
|
||||
inline int32_t ConstElement::getValueInt() const {
|
||||
return _basis.getValueInt();
|
||||
}
|
||||
|
||||
inline Timestamp ConstElement::getValueTimestamp() const {
|
||||
return _basis.getValueTimestamp();
|
||||
}
|
||||
|
||||
inline int64_t ConstElement::getValueLong() const {
|
||||
return _basis.getValueLong();
|
||||
}
|
||||
|
||||
inline Decimal128 ConstElement::getValueDecimal() const {
|
||||
return _basis.getValueDecimal();
|
||||
}
|
||||
|
||||
inline bool ConstElement::isValueMinKey() const {
|
||||
return _basis.isValueMinKey();
|
||||
}
|
||||
|
||||
inline bool ConstElement::isValueMaxKey() const {
|
||||
return _basis.isValueMaxKey();
|
||||
}
|
||||
|
||||
inline SafeNum ConstElement::getValueSafeNum() const {
|
||||
return _basis.getValueSafeNum();
|
||||
}
|
||||
|
||||
inline int ConstElement::compareWithElement(const ConstElement& other,
|
||||
const StringDataComparator* comparator,
|
||||
bool considerFieldName) const {
|
||||
return _basis.compareWithElement(other, comparator, considerFieldName);
|
||||
}
|
||||
|
||||
inline int ConstElement::compareWithBSONElement(const BSONElement& other,
|
||||
const StringDataComparator* comparator,
|
||||
bool considerFieldName) const {
|
||||
return _basis.compareWithBSONElement(other, comparator, considerFieldName);
|
||||
}
|
||||
|
||||
inline int ConstElement::compareWithBSONObj(const BSONObj& other,
|
||||
const StringDataComparator* comparator,
|
||||
bool considerFieldName) const {
|
||||
return _basis.compareWithBSONObj(other, comparator, considerFieldName);
|
||||
}
|
||||
|
||||
inline void ConstElement::writeTo(BSONObjBuilder* builder) const {
|
||||
return _basis.writeTo(builder);
|
||||
}
|
||||
|
||||
inline void ConstElement::writeArrayTo(BSONArrayBuilder* builder) const {
|
||||
return _basis.writeArrayTo(builder);
|
||||
}
|
||||
|
||||
inline bool ConstElement::ok() const {
|
||||
return _basis.ok();
|
||||
}
|
||||
|
||||
inline const Document& ConstElement::getDocument() const {
|
||||
return _basis.getDocument();
|
||||
}
|
||||
|
||||
inline BSONType ConstElement::getType() const {
|
||||
return _basis.getType();
|
||||
}
|
||||
|
||||
inline bool ConstElement::isType(BSONType type) const {
|
||||
return _basis.isType(type);
|
||||
}
|
||||
|
||||
inline StringData ConstElement::getFieldName() const {
|
||||
return _basis.getFieldName();
|
||||
}
|
||||
|
||||
inline Element::RepIdx ConstElement::getIdx() const {
|
||||
return _basis.getIdx();
|
||||
}
|
||||
|
||||
inline std::string ConstElement::toString() const {
|
||||
return _basis.toString();
|
||||
}
|
||||
|
||||
inline bool operator==(const ConstElement& l, const ConstElement& r) {
|
||||
return l._basis == r._basis;
|
||||
}
|
||||
|
||||
inline bool operator!=(const ConstElement& l, const ConstElement& r) {
|
||||
return !(l == r);
|
||||
}
|
||||
|
||||
inline bool operator==(const Element& l, const ConstElement& r) {
|
||||
return ConstElement(l) == r;
|
||||
}
|
||||
|
||||
inline bool operator!=(const Element& l, const ConstElement& r) {
|
||||
return !(l == r);
|
||||
}
|
||||
|
||||
inline bool operator==(const ConstElement& l, const Element& r) {
|
||||
return l == ConstElement(r);
|
||||
}
|
||||
|
||||
inline bool operator!=(const ConstElement& l, const Element& r) {
|
||||
return !(l == r);
|
||||
}
|
||||
|
||||
|
||||
} // namespace mutablebson
|
||||
} // namespace mongo
|
||||
@ -45,6 +45,7 @@
|
||||
#include "mongo/db/query/plan_yield_policy.h"
|
||||
#include "mongo/db/record_id.h"
|
||||
#include "mongo/db/storage/record_store.h"
|
||||
#include "mongo/util/modules.h"
|
||||
#include "mongo/util/string_listset.h"
|
||||
#include "mongo/util/string_map.h"
|
||||
#include "mongo/util/uuid.h"
|
||||
|
||||
@ -30,6 +30,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "mongo/db/exec/sbe/stages/scan.h"
|
||||
#include "mongo/util/modules.h"
|
||||
#include "mongo/util/uuid.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
@ -32,6 +32,7 @@
|
||||
#include "mongo/db/exec/sbe/values/bson.h"
|
||||
#include "mongo/db/exec/sbe/values/slot.h"
|
||||
#include "mongo/db/storage/record_data.h"
|
||||
#include "mongo/util/modules.h"
|
||||
#include "mongo/util/string_listset.h"
|
||||
|
||||
namespace mongo {
|
||||
|
||||
@ -32,6 +32,7 @@ global:
|
||||
cpp_namespace: "mongo"
|
||||
cpp_includes:
|
||||
- "mongo/db/keypattern.h"
|
||||
mod_visibility: public
|
||||
|
||||
types:
|
||||
KeyPattern:
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
#include "mongo/db/pipeline/expression_context_for_test.h"
|
||||
#include "mongo/db/query/compiler/parsers/matcher/expression_parser.h"
|
||||
#include "mongo/unittest/unittest.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
namespace mongo::doc_validation_error {
|
||||
/**
|
||||
|
||||
@ -44,6 +44,7 @@
|
||||
#include "mongo/db/pipeline/variables.h"
|
||||
#include "mongo/db/query/compiler/dependency_analysis/dependencies.h"
|
||||
#include "mongo/db/query/query_shape/serialization_options.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
#include <cstddef>
|
||||
#include <memory>
|
||||
@ -55,7 +56,8 @@
|
||||
#include <boost/optional/optional.hpp>
|
||||
#include <boost/smart_ptr/intrusive_ptr.hpp>
|
||||
|
||||
namespace mongo {
|
||||
// TODO SERVER-116044: Remove external dependencies on this header.
|
||||
namespace MONGO_MOD_NEEDS_REPLACEMENT mongo {
|
||||
|
||||
DEFINE_LITE_PARSED_STAGE_DEFAULT_DERIVED(Unwind);
|
||||
|
||||
@ -167,4 +169,4 @@ private:
|
||||
SbeCompatibility _sbeCompatibility{SbeCompatibility::requiresSbeFull};
|
||||
}; // class DocumentSourceUnwind
|
||||
|
||||
} // namespace mongo
|
||||
} // namespace MONGO_MOD_NEEDS_REPLACEMENT mongo
|
||||
|
||||
@ -30,6 +30,7 @@ global:
|
||||
cpp_namespace: "mongo"
|
||||
cpp_includes:
|
||||
- "mongo/db/exec/document_value/value.h"
|
||||
mod_visibility: public
|
||||
|
||||
types:
|
||||
Value:
|
||||
|
||||
@ -32,6 +32,7 @@
|
||||
#include "mongo/base/status_with.h"
|
||||
#include "mongo/bson/util/builder.h"
|
||||
#include "mongo/db/query/client_cursor/generic_cursor_gen.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
#include <ostream>
|
||||
|
||||
|
||||
@ -31,6 +31,7 @@
|
||||
|
||||
#include "mongo/db/pipeline/aggregation_context_fixture.h"
|
||||
#include "mongo/db/query/compiler/optimizer/join/agg_join_model.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
namespace mongo::join_ordering {
|
||||
class AggJoinModelFixture : public AggregationContextFixture {
|
||||
|
||||
@ -31,6 +31,7 @@
|
||||
|
||||
#include "mongo/db/query/compiler/optimizer/cost_based_ranker/estimates.h"
|
||||
#include "mongo/db/query/compiler/optimizer/join/join_graph.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
namespace mongo::join_ordering {
|
||||
/**
|
||||
|
||||
@ -29,6 +29,7 @@
|
||||
|
||||
#include "mongo/db/matcher/expression.h"
|
||||
#include "mongo/db/pipeline/expression.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
namespace mongo::join_ordering {
|
||||
|
||||
|
||||
@ -37,6 +37,7 @@
|
||||
#include "mongo/db/query/plan_yield_policy.h"
|
||||
#include "mongo/db/query/query_planner.h"
|
||||
#include "mongo/db/query/query_planner_params.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
namespace mongo {
|
||||
namespace plan_ranking {
|
||||
|
||||
@ -35,6 +35,7 @@
|
||||
#include "mongo/db/query/plan_yield_policy.h"
|
||||
#include "mongo/db/query/query_planner.h"
|
||||
#include "mongo/db/query/query_planner_params.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
|
||||
namespace mongo {
|
||||
|
||||
@ -31,6 +31,7 @@
|
||||
#include "mongo/db/exec/runtime_planners/planner_interface.h"
|
||||
#include "mongo/db/namespace_string.h"
|
||||
#include "mongo/db/shard_role/shard_catalog/catalog_test_fixture.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
namespace mongo {
|
||||
namespace plan_ranking {
|
||||
|
||||
@ -31,6 +31,7 @@
|
||||
|
||||
#include "mongo/bson/bsonobj.h"
|
||||
#include "mongo/bson/bsonobjbuilder.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
@ -29,6 +29,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
namespace mongo::abt {
|
||||
|
||||
/**
|
||||
|
||||
@ -31,3 +31,4 @@
|
||||
|
||||
#include "mongo/db/query/stage_builder/sbe/abt/syntax/expr.h"
|
||||
#include "mongo/db/query/stage_builder/sbe/abt/syntax/syntax.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
#include "mongo/db/query/stage_builder/sbe/builder_state.h"
|
||||
#include "mongo/db/query/stage_builder/sbe/gen_abt_helpers.h"
|
||||
#include "mongo/db/query/stage_builder/sbe/sbexpr.h"
|
||||
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
namespace mongo::stage_builder {
|
||||
inline void makeSbExprOptSbSlotVecHelper(SbExprOptSlotVector& result) {}
|
||||
|
||||
@ -29,6 +29,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
#ifndef QUERY_STAGE_MEMORY_LIMITS_KNOBS_PRIVATE_OVERRIDE
|
||||
#error \
|
||||
"mongo/db/query/stage_memory_limit_knobs/stage_memory_limit_knobs_gen.h must not be used directly. Use the interface provided by mongo/db/query/stage_memory_limit_knobs/knobs.h"
|
||||
|
||||
@ -37,3 +37,6 @@ filters:
|
||||
- "timer_stats*":
|
||||
approvers:
|
||||
- 10gen/server-programmability
|
||||
- "counter_ops.h":
|
||||
approvers:
|
||||
- 10gen/server-programmability
|
||||
|
||||
@ -30,10 +30,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "mongo/platform/atomic_word.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
namespace mongo {
|
||||
namespace MONGO_MOD_PUBLIC mongo {
|
||||
|
||||
/**
|
||||
* Helper functions to operate on AtomicWord<long long> and int64_t interchangibly.
|
||||
@ -76,4 +77,4 @@ static void add(AtomicWord<long long>& counter, int64_t value) {
|
||||
}
|
||||
|
||||
}; // namespace counter_ops
|
||||
} // namespace mongo
|
||||
} // namespace MONGO_MOD_PUBLIC mongo
|
||||
|
||||
@ -32,6 +32,7 @@
|
||||
|
||||
global:
|
||||
cpp_namespace: "mongo"
|
||||
mod_visibility: public
|
||||
|
||||
imports:
|
||||
- "mongo/db/basic_types.idl"
|
||||
|
||||
@ -32,6 +32,7 @@
|
||||
|
||||
global:
|
||||
cpp_namespace: "mongo"
|
||||
mod_visibility: public
|
||||
|
||||
imports:
|
||||
- "mongo/client/read_preference.idl"
|
||||
|
||||
@ -31,8 +31,9 @@
|
||||
|
||||
#include "mongo/db/commands.h"
|
||||
#include "mongo/logv2/log_severity_suppressor.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
namespace mongo {
|
||||
namespace MONGO_MOD_PUBLIC mongo {
|
||||
|
||||
/**
|
||||
* A CommandInvocation hooks to track commands directly targeting system.buckets collections.
|
||||
@ -50,4 +51,4 @@ public:
|
||||
Hours{1}, logv2::LogSeverity::Info(), logv2::LogSeverity::Debug(2)};
|
||||
};
|
||||
|
||||
} // namespace mongo
|
||||
} // namespace MONGO_MOD_PUBLIC mongo
|
||||
|
||||
@ -36,6 +36,7 @@
|
||||
#include "mongo/db/update/update_oplog_entry_serialization.h"
|
||||
#include "mongo/db/update/v2_log_builder.h"
|
||||
#include "mongo/unittest/unittest.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
namespace mongo {
|
||||
|
||||
|
||||
@ -47,6 +47,7 @@
|
||||
#include "mongo/s/query/exec/router_stage_merge.h"
|
||||
#include "mongo/stdx/unordered_set.h"
|
||||
#include "mongo/util/duration.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
#include <memory>
|
||||
#include <set>
|
||||
@ -57,7 +58,8 @@
|
||||
#include <boost/optional/optional.hpp>
|
||||
#include <boost/smart_ptr/intrusive_ptr.hpp>
|
||||
|
||||
namespace mongo {
|
||||
// TODO SERVER-111290: Remove 'CheckMetadataConsistencyCmd' dependency on this header.
|
||||
namespace MONGO_MOD_NEEDS_REPLACEMENT mongo {
|
||||
|
||||
DEFINE_LITE_PARSED_STAGE_INTERNAL_DERIVED(MergeCursors);
|
||||
|
||||
@ -194,4 +196,4 @@ private:
|
||||
bool _ownCursors = true;
|
||||
};
|
||||
|
||||
} // namespace mongo
|
||||
} // namespace MONGO_MOD_NEEDS_REPLACEMENT mongo
|
||||
|
||||
@ -32,6 +32,7 @@
|
||||
#include "mongo/db/pipeline/expression_context.h"
|
||||
#include "mongo/db/router_role/routing_cache/catalog_cache.h"
|
||||
#include "mongo/db/sharding_environment/shard_id.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
namespace mongo {
|
||||
|
||||
|
||||
@ -33,6 +33,7 @@
|
||||
#include "mongo/db/commands/query_cmd/bulk_write_crud_op.h"
|
||||
#include "mongo/db/commands/query_cmd/bulk_write_parser.h"
|
||||
#include "mongo/s/write_ops/write_command_ref.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
namespace mongo {
|
||||
namespace write_op_helpers {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user