Merge remote-tracking branch 'origin/0.5.1' into cluster

This commit is contained in:
barisusakli
2014-09-03 23:43:52 -04:00
3 changed files with 16 additions and 3 deletions

View File

@@ -108,6 +108,12 @@
}
});
db.collection('search').ensureIndex({key: 1, id: 1}, {background: true}, function(err) {
if(err) {
winston.error('Error creating index ' + err.message);
}
});
if(typeof callback === 'function') {
callback();
}