Created
July 5, 2013 23:50
-
-
Save lefnire/5937919 to your computer and use it in GitHub Desktop.
let itsalive run, terminate manually
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/itsalive.coffee b/itsalive.coffee | |
index e420b55..33bcd60 100644 | |
--- a/itsalive.coffee | |
+++ b/itsalive.coffee | |
@@ -44,8 +44,8 @@ db.collections (err, collections) -> | |
console.error(err) if err | |
if (counter.collections is 0) and (--counter.items is 0) | |
console.log "All done. Processed #{counter.total} collections" | |
- db.close() | |
- process.exit() | |
+ #db.close() | |
+ #process.exit() | |
# Each must be used for large datasets, toArray won't fit in memory: http://mongodb.github.io/node-mongodb-native/api-generated/cursor.html#each | |
names.forEach (name) -> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment