Index: library/mongodb/README =================================================================== diff -u -rf25459dce28ff8f1d0f5a567146ffb515e8b405c -re934af71d6cf1335ea45fbaae797f87090b9e365 --- library/mongodb/README (.../README) (revision f25459dce28ff8f1d0f5a567146ffb515e8b405c) +++ library/mongodb/README (.../README) (revision e934af71d6cf1335ea45fbaae797f87090b9e365) @@ -4,11 +4,10 @@ Ingredients: https://github.com/mongodb/mongo https://github.com/mongodb/mongo-c-driver - https://github.com/mongodb/libbson The current version is tested with -- MongoDB v2.4.10 -- mongodb-c-driver 0.94.1 +- MongoDB v2.6.1 +- mongodb-c-driver 0.96 Compile or obtain mongodb (the database). @@ -71,7 +70,7 @@ check the content in MongoDB: % mongo - MongoDB shell version: 2.4.9 + MongoDB shell version: 2.6.1 connecting to: test > use tutorial switched to db tutorial Index: library/mongodb/nsfmongo.c =================================================================== diff -u -rd29a51c38be834fe558f1c85069d8bc500d201d9 -re934af71d6cf1335ea45fbaae797f87090b9e365 --- library/mongodb/nsfmongo.c (.../nsfmongo.c) (revision d29a51c38be834fe558f1c85069d8bc500d201d9) +++ library/mongodb/nsfmongo.c (.../nsfmongo.c) (revision e934af71d6cf1335ea45fbaae797f87090b9e365) @@ -755,7 +755,7 @@ } BsonAppendObjv(interp, queryPtr, objc, objv); - success = mongoc_collection_delete(collectionPtr, deleteFlags, queryPtr, writeConcern, &bsonError); + success = mongoc_collection_remove(collectionPtr, deleteFlags, queryPtr, writeConcern, &bsonError); if (success == 0) { result = NsfPrintError(interp, "mongo::collection::delete: error: %s", bsonError.message); @@ -1406,13 +1406,13 @@ /* Remove the file with the specified id */ bson_init(bsonPtr); bson_append_oid(bsonPtr, "_id", 3, &id); - mongoc_collection_delete(mongoc_gridfs_get_files(gridfsPtr), 0, bsonPtr, NULL, &bsonError); + mongoc_collection_remove(mongoc_gridfs_get_files(gridfsPtr), 0, bsonPtr, NULL, &bsonError); bson_destroy(bsonPtr); /* Remove all chunks from the file with the specified id */ bson_init(bsonPtr); bson_append_oid(bsonPtr, "files_id", 8, &id); - mongoc_collection_delete(mongoc_gridfs_get_chunks(gridfsPtr), 0, bsonPtr, NULL, &bsonError); + mongoc_collection_remove(mongoc_gridfs_get_chunks(gridfsPtr), 0, bsonPtr, NULL, &bsonError); bson_destroy(bsonPtr); }