diff options
Diffstat (limited to 's/config.cpp')
-rw-r--r-- | s/config.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/s/config.cpp b/s/config.cpp index df50c077e64..a113fb22889 100644 --- a/s/config.cpp +++ b/s/config.cpp @@ -101,8 +101,8 @@ namespace mongo { if ( _sharded.size() > 0 ){ BSONObjBuilder a; - for ( map<string,BSONObj>::reverse_iterator i=_sharded.rbegin(); i != _sharded.rend(); i++){ - a.append( i->first.c_str() , i->second ); + for ( map<string,ShardKeyPattern>::reverse_iterator i=_sharded.rbegin(); i != _sharded.rend(); i++){ + a.append( i->first.c_str() , i->second.key() ); } to.appendArray( "sharded" , a.obj() ); } |