3 ms·
Sorry, I haven’t had my coffee yet. If I am reading this correctly, either someOp() or someOtherOp() may execute first, no? And if you introduce an external dat
by IgorPartola 6y ago
Sorry, I haven’t had my coffee yet. If I am reading this correctly, either someOp() or someOtherOp() may execute first, no? And if you introduce an external database, why do you expect Mongo to handle that rollback? Say someOtherOp() increments a Redis value by 1. If that part executed first since both are asynchronous here, what would a Mongo session have to do with it?
What exactly would invalidating that session object do here? And what would the session object do after it was invalidated?
- deleted 6y ago[deleted]
- waheoo 6y agoIt sounds like the old session object is reused and becomes live again or something.