diff --git a/db/scanandorder.h b/db/scanandorder.h index ee4af2e03d9..e829f65b6ff 100644 --- a/db/scanandorder.h +++ b/db/scanandorder.h @@ -50,7 +50,7 @@ namespace mongo { _ response size limit from runquery; push it up a bit. */ - inline void fillQueryResultFromObj(BufBuilder& bb, Projection *filter, BSONObj& js, DiskLoc* loc=NULL) { + inline void fillQueryResultFromObj(BufBuilder& bb, Projection *filter, const BSONObj& js, DiskLoc* loc=NULL) { if ( filter ) { BSONObjBuilder b( bb ); filter->transform( js , b );