SERVER-115662 Change safe_num.h to be a part of the "core" module (#46460)
GitOrigin-RevId: c1949a6554e45b30c71c6949126c32849983034f
This commit is contained in:
parent
0d3db333c4
commit
f2dc89bcbb
@ -241,7 +241,6 @@ query:
|
||||
- src/mongo/s/query/shard_targeting_helpers*
|
||||
- src/mongo/db/namespace_spec.idl # only used by query
|
||||
- src/mongo/s/commands/*document_shard_key_*
|
||||
- src/mongo/util/safe_num*
|
||||
- src/mongo/db/s/*analyze_shard_key*
|
||||
- src/mongo/s/*analyze_shard_key*
|
||||
- src/mongo/s/*query_analyze*
|
||||
|
||||
@ -63,7 +63,6 @@
|
||||
#include "mongo/util/duration.h"
|
||||
#include "mongo/util/fail_point.h"
|
||||
#include "mongo/util/namespace_string_util.h"
|
||||
#include "mongo/util/safe_num.h"
|
||||
#include "mongo/util/static_immortal.h"
|
||||
#include "mongo/util/str.h"
|
||||
#include "mongo/util/string_map.h"
|
||||
|
||||
@ -91,7 +91,6 @@
|
||||
#include "mongo/util/decorable.h"
|
||||
#include "mongo/util/fail_point.h"
|
||||
#include "mongo/util/namespace_string_util.h"
|
||||
#include "mongo/util/safe_num.h"
|
||||
#include "mongo/util/serialization_context.h"
|
||||
#include "mongo/util/str.h"
|
||||
|
||||
|
||||
@ -65,7 +65,6 @@
|
||||
#include "mongo/util/assert_util.h"
|
||||
#include "mongo/util/decorable.h"
|
||||
#include "mongo/util/fail_point.h"
|
||||
#include "mongo/util/safe_num.h"
|
||||
#include "mongo/util/str.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
@ -37,8 +37,6 @@
|
||||
#include "mongo/db/exec/mutable_bson/mutable_bson_test_utils.h"
|
||||
#include "mongo/db/query/collation/collator_interface_mock.h"
|
||||
#include "mongo/unittest/unittest.h"
|
||||
#include "mongo/util/safe_num.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
|
||||
@ -41,7 +41,6 @@
|
||||
#include "mongo/db/pipeline/variables.h"
|
||||
#include "mongo/db/query/query_shape/serialization_options.h"
|
||||
#include "mongo/util/modules.h"
|
||||
#include "mongo/util/safe_num.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
|
||||
@ -43,7 +43,6 @@
|
||||
#include "mongo/idl/server_parameter_test_controller.h"
|
||||
#include "mongo/unittest/unittest.h"
|
||||
#include "mongo/util/assert_util.h"
|
||||
#include "mongo/util/safe_num.h"
|
||||
#include "mongo/util/scopeguard.h"
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
@ -38,7 +38,6 @@
|
||||
#include "mongo/unittest/death_test.h"
|
||||
#include "mongo/unittest/unittest.h"
|
||||
#include "mongo/util/assert_util.h"
|
||||
#include "mongo/util/safe_num.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
@ -38,7 +38,6 @@
|
||||
#include "mongo/db/query/write_ops/write_ops_gen.h"
|
||||
#include "mongo/db/update/update_driver.h"
|
||||
#include "mongo/util/modules.h"
|
||||
#include "mongo/util/safe_num.h"
|
||||
|
||||
#include <boost/optional/optional.hpp>
|
||||
|
||||
|
||||
@ -37,7 +37,6 @@
|
||||
#include "mongo/db/field_ref.h"
|
||||
#include "mongo/unittest/death_test.h"
|
||||
#include "mongo/unittest/unittest.h"
|
||||
#include "mongo/util/safe_num.h"
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
@ -34,6 +34,7 @@
|
||||
#include "mongo/bson/bsonobjbuilder.h"
|
||||
#include "mongo/bson/bsontypes.h"
|
||||
#include "mongo/platform/decimal128.h"
|
||||
#include "mongo/util/modules.h"
|
||||
|
||||
#include <cstdint>
|
||||
#include <iosfwd>
|
||||
@ -73,7 +74,7 @@ class Value;
|
||||
* newValue.toBSON(fieldName, &bsonObjBuilder);
|
||||
*
|
||||
*/
|
||||
class SafeNum {
|
||||
class MONGO_MOD_PUBLIC SafeNum {
|
||||
public:
|
||||
SafeNum();
|
||||
~SafeNum();
|
||||
@ -189,7 +190,7 @@ private:
|
||||
BSONType _type;
|
||||
|
||||
// Value of the safe num. Indeterminate if _type is EOO.
|
||||
union {
|
||||
MONGO_MOD_NEEDS_REPLACEMENT union {
|
||||
int32_t int32Val;
|
||||
int64_t int64Val;
|
||||
double doubleVal;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user