Skip to content

Instantly share code, notes, and snippets.

View subchild's full-sized avatar

Alex Kolundzija subchild

View GitHub Profile
@Tug
Tug / code.js
Created December 2, 2012 23:39
issue with node-mongodb-native commit 5fd127e
function openFile(db, filename, callback) {
var gs = new mongodb.GridStore(db, filename, "r");
gs.open(function(err, gs) {
if(err) {
callback(err, gs);
return;
}
callback(null, gs);