Skip to content

Commit

Permalink
Updated history and package info
Browse files Browse the repository at this point in the history
  • Loading branch information
christkv committed Jan 29, 2013
1 parent bb3a6d9 commit caa5569
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 3 deletions.
12 changes: 12 additions & 0 deletions HISTORY
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
1.2.11 2013-01-29
-----------------
- Added fixes for handling type 2 binary due to PHP driver (Issue #864)
- Moved callBackStore to Base class to have single unified store (Issue #866)
- Ping strategy now reuses sockets unless they are closed by the server to avoid overhead

1.2.10 2013-01-25
-----------------
- Merged in SSL support for 2.4 supporting certificate validation and presenting certificates to the server.
- Only open a new HA socket when previous one dead (Issue #859, #857)
- Minor fixes

1.2.9 2013-01-15
----------------
- Fixed bug in SSL support for MongoClient/Db.connect when discovering servers (Issue #849)
Expand Down
2 changes: 1 addition & 1 deletion docs/sphinx-docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# The short X.Y version.
version = '1.2'
# The full version, including alpha/beta/rc tags.
release = '1.2.10'
release = '1.2.11'

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion lib/mongodb/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@ Db.prototype.cursorInfo = function(options, callback) {
* @return {null}
* @api public
*/
Db.prototype.dropIndex = function(collectionName, indexName, callback) {
Db.prototype.dropIndex = function(collectionName, indexName, callback) {
this._executeQueryCommand(DbCommand.createDropIndexCommand(this, collectionName, indexName), callback);
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ "name" : "mongodb"
, "description" : "A node.js driver for MongoDB"
, "keywords" : ["mongodb", "mongo", "driver", "db"]
, "version" : "1.2.10"
, "version" : "1.2.11"
, "author" : "Christian Amor Kvalheim <christkv@gmail.com>"
, "contributors" : [ "Aaron Heckmann",
"Christoph Pojer",
Expand Down
13 changes: 13 additions & 0 deletions test/index_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,19 @@ exports['should correctly return error message when applying unique index to dup
});
}

exports['should correctly drop index with no callback'] = function(test) {
var collection = client.collection("should_correctly_drop_index");
collection.insert([{a:1}], {w:1}, function(err, result) {
test.equal(null, err);

collection.ensureIndex({a:1}, {w:1}, function(err, result) {
collection.dropIndex("a_1")

test.done();
});
});
}

/**
* Retrieve the server information for the current
* instance of the db client
Expand Down

0 comments on commit caa5569

Please sign in to comment.