mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-02 23:45:11 +03:00
fix(nodes): order client pushes outside inbound mutation locks
Reserve node apply turns in database commit order and release the inbound mutation lock before waiting or calling the remote runtime. Keep lifecycle updates and full reconciliation in the same sequence, preserve dirty generations across overlapping writes, and invalidate fingerprints after uncertain or superseded remote state.
This commit is contained in:
@@ -690,6 +690,13 @@ func (r *Remote) ForgetPushedInbound(tag string) {
|
||||
r.mu.Unlock()
|
||||
}
|
||||
|
||||
// ForgetAllPushedInbounds forces a fresh configuration push without discarding tag aliases.
|
||||
func (r *Remote) ForgetAllPushedInbounds() {
|
||||
r.mu.Lock()
|
||||
defer r.mu.Unlock()
|
||||
clear(r.pushedFP)
|
||||
}
|
||||
|
||||
// ForgetInbound drops everything kept under an inbound the node no longer has, in either
|
||||
// tag form: a node rotating tags would otherwise grow these maps without bound.
|
||||
func (r *Remote) ForgetInbound(tag string) {
|
||||
|
||||
Reference in New Issue
Block a user