summaryrefslogtreecommitdiff
path: root/client/gridfs.cpp
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2010-06-09 11:15:34 -0400
committerdwight <dwight@10gen.com>2010-06-09 11:15:34 -0400
commit276e15708faccdca7747217b8cde109d93a02765 (patch)
treef3949aeacc33ac0a7b011cf1c0282e1206d2b39a /client/gridfs.cpp
parent23882959f5f7a66b39524af8710277ee0dfc29bb (diff)
downloadmongo-276e15708faccdca7747217b8cde109d93a02765.tar.gz
compile
Diffstat (limited to 'client/gridfs.cpp')
-rw-r--r--client/gridfs.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/gridfs.cpp b/client/gridfs.cpp
index d3b24bea5f9..e5959a3c510 100644
--- a/client/gridfs.cpp
+++ b/client/gridfs.cpp
@@ -15,7 +15,7 @@
* limitations under the License.
*/
-#include "../pch.h"
+#include "pch.h"
#include <fcntl.h>
#include <utility>
@@ -42,7 +42,7 @@ namespace mongo {
BSONObjBuilder b;
b.appendAs( fileObject["_id"] , "files_id" );
b.append( "n" , chunkNumber );
- b.appendBinDataArray( "data" , data , len );
+ b.appendBinData( "data" , len, BinDataGeneral, data );
_data = b.obj();
}