diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-04-02 15:43:53 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-04-02 15:43:53 -0400 |
commit | 1f2bab33e83e23f34630654c4d701a2ad21cb1fb (patch) | |
tree | 9da8f32c8483120b42477bb761dd15b51550d286 /s | |
parent | 662776e8320214d78a1887a6021c17b0aed2c09a (diff) | |
download | mongo-1f2bab33e83e23f34630654c4d701a2ad21cb1fb.tar.gz |
fix BSONObj ownership
Diffstat (limited to 's')
-rw-r--r-- | s/shard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/s/shard.cpp b/s/shard.cpp index f3a295916eb..0ea0e906ca5 100644 --- a/s/shard.cpp +++ b/s/shard.cpp @@ -88,7 +88,7 @@ namespace mongo { ) , result ) ); conn.done(); - return result.getObjectField( "median" ); + return result.getObjectField( "median" ).getOwned(); } Shard * Shard::split(){ |