3x-ui/config
root 51f17922fa fix: resolve shared-mode traffic flush blocked by stale inboundId=0 delta
The traffic-pending.json file could contain a stale client traffic delta
with inboundId=0 (created before the InboundId resolution fix). When
flushToDatabase tried to INSERT this into client_traffics, it violated
the foreign key constraint fk_inbounds_client_stats, causing the entire
transaction to roll back and blocking ALL traffic from being written to
MariaDB.

- Skip deltas with InboundID==0 in flushToDatabase with a warning log
- Share a single TrafficPendingStore between XrayTrafficJob and the
  flush loop to eliminate a race condition from dual file instances
- Add test for zero InboundID skip behavior
2026-04-24 02:56:23 +08:00
..
config.go feat: improve mariadb flow, db settings init, and traffic flush 2026-04-15 16:58:49 +08:00
config_test.go feat: improve mariadb flow, db settings init, and traffic flush 2026-04-15 16:58:49 +08:00
name 3x-ui 2023-02-09 22:48:06 +03:30
version fix: resolve shared-mode traffic flush blocked by stale inboundId=0 delta 2026-04-24 02:56:23 +08:00