diff options
Diffstat (limited to 's/cursors.cpp')
-rw-r--r-- | s/cursors.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/s/cursors.cpp b/s/cursors.cpp index bf2fc97f496..32bc7290014 100644 --- a/s/cursors.cpp +++ b/s/cursors.cpp @@ -20,10 +20,7 @@ namespace mongo { _done = false; if ( q.fields.get() ){ - BSONObjBuilder b; - for ( set<string>::iterator i=q.fields->begin(); i!=q.fields->end(); i++) - b.append( i->c_str() , 1 ); - _fields = b.obj(); + _fields = q.fields->getSpec(); } else { _fields = BSONObj(); |