diff options
author | Mathias Stearn <mathias@10gen.com> | 2010-05-26 16:01:56 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2010-05-26 17:15:27 -0400 |
commit | 4436e111c6b7f1714192d9309e8fe5ff87036be4 (patch) | |
tree | e16110ecd57b1d1673bcf37108950be0ae04779d | |
parent | 16741b0805334116e7fbb6412774a763f0fc0377 (diff) | |
download | mongo-4436e111c6b7f1714192d9309e8fe5ff87036be4.tar.gz |
this should never have compiled
-rw-r--r-- | bson/bsonelement.h | 2 | ||||
-rw-r--r-- | s/chunk.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bson/bsonelement.h b/bson/bsonelement.h index 8d6dfe32085..5248278077b 100644 --- a/bson/bsonelement.h +++ b/bson/bsonelement.h @@ -341,7 +341,7 @@ public: } // If maxLen is specified, don't scan more than maxLen bytes. - BSONElement(const char *d, int maxLen = -1) : data(d) { + explicit BSONElement(const char *d, int maxLen = -1) : data(d) { fieldNameSize_ = -1; if ( eoo() ) fieldNameSize_ = 0; diff --git a/s/chunk.cpp b/s/chunk.cpp index 70bae695a14..e5ec522ccb4 100644 --- a/s/chunk.cpp +++ b/s/chunk.cpp @@ -127,7 +127,7 @@ namespace mongo { //TODO compound support BSONElement key = getMin().firstElement(); BSONObjBuilder b; - b.appendAs("$gt", key); + b.appendAs(key, "$gt"); Query q = QUERY(key.fieldName() << b.obj()); q.sort(_manager->getShardKey().key()); |