tx.selfRepairMode = 'rollback' does not work
I was testing this package by running a loop to insert a 1000 documents in a collection, and wrapped this up in tx.start() ... tx.commit(). If I kill Meteor midway (after it's finished inserting say, 500 documents), and start the app again, the transaction goes back to the beginning and starts inserting a 1000 documents again, and towards the end I have 1500 documents total, instead of 1000.
I tried setting tx.selfRepairMode = 'rollback' after tx.start() (and also in main.js) but this doesn't work either. What am I doing wrong?
Sounds like the package has a bug. Is there a simple repro somewhere I could use to create a failing test?
I've just released 0.7.5 on Atmosphere. It fixes a number of bugs, one of which might be causing this. If this is still not working, let me know and I'll take an in-depth look.