Mutual exclusion is imperative here since other modules/extenions may be simultaneously adding/removing rules, thus putting the value of @next_id at risk of becoming inconsistent.
Mutual exclusion is imperative here since other modules/extenions may be simultaneously adding/removing rules, thus putting the value of @next_id at risk of becoming inconsistent.