From: Ivan Kohler Date: Thu, 19 Apr 2018 01:03:10 +0000 (-0700) Subject: ip allocation mutex for high-traffic implementations, RT#79825 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=b6785c0b3eef8cce1d67c53824d00a1afd9cc36a;p=freeside.git ip allocation mutex for high-traffic implementations, RT#79825 --- diff --git a/FS/FS/IP_Mixin.pm b/FS/FS/IP_Mixin.pm index beb41d290..3ec769313 100644 --- a/FS/FS/IP_Mixin.pm +++ b/FS/FS/IP_Mixin.pm @@ -130,6 +130,10 @@ sub assign_ip_addr { my $self = shift; my %opt = @_; + #otherwise we'll get the same assignment for concurrent identical calls + # this will serialize them + $_->lock_table foreach @subclasses; + my @blocks; my $na = $self->NetAddr;