summaryrefslogtreecommitdiff
path: root/bson
diff options
context:
space:
mode:
authorAlberto Lerner <alerner@10gen.com>2010-07-20 12:29:29 -0400
committerAlberto Lerner <alerner@10gen.com>2010-07-20 12:29:29 -0400
commit67710484c107d2aac4533e87f1376f5e4638f713 (patch)
treee5bd65216fbea8d63fa7a0872c7d60a26fdd4f37 /bson
parent67097550ed52d2536eb9902eda2a15e7b7366841 (diff)
downloadmongo-67710484c107d2aac4533e87f1376f5e4638f713.tar.gz
SERVER-1270 Missed one call in BSONObjBuilder
Diffstat (limited to 'bson')
-rw-r--r--bson/bson_db.h2
-rw-r--r--bson/bsonobjbuilder.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/bson/bson_db.h b/bson/bson_db.h
index 9d0cadc948c..18cd59f9e10 100644
--- a/bson/bson_db.h
+++ b/bson/bson_db.h
@@ -34,7 +34,7 @@ namespace mongo {
Append a timestamp element to the object being ebuilt.
@param time - in millis (but stored in seconds)
*/
- inline BSONObjBuilder& BSONObjBuilder::appendTimestamp( const char *fieldName , unsigned long long time , unsigned int inc ){
+ inline BSONObjBuilder& BSONObjBuilder::appendTimestamp( const StringData& fieldName , unsigned long long time , unsigned int inc ){
OpTime t( (unsigned) (time / 1000) , inc );
appendTimestamp( fieldName , t.asDate() );
return *this;
diff --git a/bson/bsonobjbuilder.h b/bson/bsonobjbuilder.h
index 6634b0b9328..31e3e4f6cd7 100644
--- a/bson/bsonobjbuilder.h
+++ b/bson/bsonobjbuilder.h
@@ -402,7 +402,7 @@ namespace mongo {
Append a timestamp element to the object being ebuilt.
@param time - in millis (but stored in seconds)
*/
- BSONObjBuilder& appendTimestamp( const char *fieldName , unsigned long long time , unsigned int inc );
+ BSONObjBuilder& appendTimestamp( const StringData& fieldName , unsigned long long time , unsigned int inc );
/*
Append an element of the deprecated DBRef type.