]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Put a separate transaction around allocate_clear
authorAlan T. DeKok <aland@freeradius.org>
Mon, 25 Nov 2013 15:19:16 +0000 (10:19 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 25 Nov 2013 20:25:15 +0000 (15:25 -0500)
to deal with MySQL issues.  It reduces deadlocks

src/modules/rlm_sqlippool/rlm_sqlippool.c

index b283d8f538ac19bd680c4f63e3c4c05cbb12002f..fb26097fc7152d2048e908e63b8d3800cb52a68f 100644 (file)
@@ -526,6 +526,9 @@ static rlm_rcode_t mod_post_auth(void *instance, REQUEST *request)
 
        DO(allocate_begin);
        DO(allocate_clear);
+       DO(allocate_commit);
+
+       DO(allocate_begin);
 
        allocation_len = sqlippool_query1(allocation, sizeof(allocation),
                                          inst->allocate_find, handle,