Permalink
Browse files

SERVER-1270 Missed one call in BSONObjBuilder

  • Loading branch information...
1 parent 6709755 commit 67710484c107d2aac4533e87f1376f5e4638f713 Alberto Lerner committed Jul 20, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 bson/bson_db.h
  2. +1 −1 bson/bsonobjbuilder.h
View
@@ -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;
@@ -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.

0 comments on commit 6771048

Please sign in to comment.