freeradius@duxtel.com wrote:
So my basic question is: Does "authorize_check_query" complete fully before starting the call to "authorize_reply_query"?
To re-phrase your question: Q: What work does the database perform after it's returned an answer from a SELECT? A: Nothing.
If they happen at the same time, then I expect that 'authorize_reply_query' may execute before I get a chance to create the relevant records for the 'guest' user...
I know I can just go ahead and find out my answer by 'empirical method', but I figure that just because it seems to work every time, there is no definite guarantee that it will work *every* time unless I can be certain that these functions execute in sequence :-}
Databases ensure transactional consistency. This is the job of a database. Alan DeKok.