meteor / todos

The example app "Todos", written following the Meteor Guide
Other
535 stars 365 forks source link

How to make security check atomic? #140

Open weilitao opened 8 years ago

weilitao commented 8 years ago

Hello,

Sorry it may be a question not an issue. From the comment of list method source: // XXX the security check above is not atomic, so in theory a race condition could // result in exposing private data

So how to make security check atomic?

gdad-s-river commented 8 years ago

I'm trying to Understand Meteor Todos as well, and I do not know what atomic means, and when there could be a race condition (and of what). I've the same question that @weilitao asked.

AurelienC commented 7 years ago

@gdad-s-river An atomic operation is an operation realized in one time, not paused by another process.