summaryrefslogtreecommitdiff
path: root/db/pdfile.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'db/pdfile.cpp')
-rw-r--r--db/pdfile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/pdfile.cpp b/db/pdfile.cpp
index 3fa39696dc5..3d152299077 100644
--- a/db/pdfile.cpp
+++ b/db/pdfile.cpp
@@ -507,7 +507,7 @@ namespace mongo {
break;
b.append( f );
}
- BSONObj o = b.doneAndDecouple();
+ BSONObj o = b.obj();
assert( !o.isEmpty() );
keys.insert(o);
return;
@@ -536,7 +536,7 @@ namespace mongo {
b.appendAs( e, "" );
}
- BSONObj o = b.doneAndDecouple();
+ BSONObj o = b.obj();
assert( !o.isEmpty() );
keys.insert(o);
}