diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-09-30 10:29:44 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-09-30 17:52:38 -0400 |
commit | 97128797aa2d5169ca2e7f1cc6795955857803d7 (patch) | |
tree | 966c89761b8711ebf0bd34780a55af9b9a4c2f32 /src/mongo/bson | |
parent | c1547dacbf3f4e70aa7fda94f9a9e71f5119e1d0 (diff) | |
download | mongo-97128797aa2d5169ca2e7f1cc6795955857803d7.tar.gz |
SERVER-20676 Rename global min/maxKey variables to kMin/kMaxBSONKey
Diffstat (limited to 'src/mongo/bson')
-rw-r--r-- | src/mongo/bson/bsontypes.cpp | 4 | ||||
-rw-r--r-- | src/mongo/bson/bsontypes.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/bson/bsontypes.cpp b/src/mongo/bson/bsontypes.cpp index 1e5895c3130..53dd4c685b8 100644 --- a/src/mongo/bson/bsontypes.cpp +++ b/src/mongo/bson/bsontypes.cpp @@ -34,10 +34,10 @@ namespace mongo { const char kMaxKeyData[] = {7, 0, 0, 0, static_cast<char>(MaxKey), 0, 0}; -const BSONObj maxKey(kMaxKeyData); +const BSONObj kMaxBSONKey(kMaxKeyData); const char kMinKeyData[] = {7, 0, 0, 0, static_cast<char>(MinKey), 0, 0}; -const BSONObj minKey(kMinKeyData); +const BSONObj kMinBSONKey(kMinKeyData); /* take a BSONType and return the name of that type as a char* */ const char* typeName(BSONType type) { diff --git a/src/mongo/bson/bsontypes.h b/src/mongo/bson/bsontypes.h index 62fcf5b8ac4..d13bdc0344c 100644 --- a/src/mongo/bson/bsontypes.h +++ b/src/mongo/bson/bsontypes.h @@ -45,8 +45,8 @@ class Ordering; struct BSONArray; // empty subclass of BSONObj useful for overloading struct BSONElementCmpWithoutField; -extern const BSONObj maxKey; -extern const BSONObj minKey; +extern const BSONObj kMaxBSONKey; +extern const BSONObj kMinBSONKey; /** the complete list of valid BSON types |