Claire  
		
	
	526332c545 
	
	
	Fix account deletion sometimes failing because of optimistic locks ( #16317 )  
		
			... 
			* Fix account deletion sometimes failing because of optimistic locks
In some rare occasions[1], deleting accounts would fail with a
`StaleObjectError` exception.
Indeed, account deletion manually sets the `AccountStat` values without
handling cases where the optimistic locking on `AccountStat` would fail.
To my knowledge, with the rewrite of account counters in #15913 , the
`DeleteAccountService` is now the only place that changes the counters in
a way that is not atomic.
Since in this specific case, we do not care about the previous values of the
account counters, it appears we don't need locking at all for this table
anymore.
[1]: https://discourse.joinmastodon.org/t/account-cant-be-deleted/3602 
* Bump MAX_SUPPORTED_VERSION in maintenance script 
		
	 
 
		2021-06-02 17:41:25 +02:00 
	 
	
	
	
		  ..
	 
	
	
		
			
			
			
			
			
			2021-04-24 17:01:43 +02:00 
		 
	
		
			
			
			
			
			
			2021-05-05 23:39:02 +02:00 
		 
	
		
			
			
			
			
			
			2021-06-02 17:41:25 +02:00 
		 
	
		
			
			
			
			
			
			2021-04-24 17:01:43 +02:00 
		 
	
		
			
			
			
			
			
			2021-04-15 05:00:25 +02:00 
		 
	
		
			
			
			
			
			
			2020-10-08 00:34:57 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-12 17:09:49 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-15 14:37:58 +02:00 
		 
	
		
			
			
			
			
			
			2019-08-08 23:04:19 +02:00 
		 
	
		
			
			
			
			
			
			2020-12-15 17:23:58 +01:00 
		 
	
		
			
			
			
			
			
			2019-04-10 20:28:43 +02:00 
		 
	
		
			
			
			
			
			
			2021-02-02 14:49:57 +01:00 
		 
	
		
	
		
			
			
			
			
			
			2020-06-30 19:19:50 +02:00 
		 
	
		
	
		
			
			
			
			
			
			2021-06-02 17:41:25 +02:00 
		 
	
		
			
			
			
			
			
			2021-04-24 17:01:43 +02:00 
		 
	
		
			
			
			
			
			
			2021-05-09 10:39:29 +02:00 
		 
	
		
			
			
			
			
			
			2020-03-12 17:57:59 +01:00 
		 
	
		
			
			
			
			
			
			2020-11-04 20:45:01 +01:00 
		 
	
		
			
			
			
			
			
			2021-05-07 19:32:58 +02:00 
		 
	
		
	
		
			
			
			
			
			
			2020-01-23 22:00:13 +01:00 
		 
	
		
			
			
			
			
			
			2020-01-23 22:00:13 +01:00 
		 
	
		
			
			
			
			
			
			2020-01-23 22:00:13 +01:00 
		 
	
		
			
			
			
			
			
			2020-11-04 21:15:22 +01:00 
		 
	
		
			
			
			
			
			
			2019-10-01 01:19:11 +02:00 
		 
	
		
			
			
			
			
			
			2020-01-23 22:00:13 +01:00 
		 
	
		
	
		
			
			
			
			
			
			2020-01-23 22:00:13 +01:00 
		 
	
		
			
			
			
			
			
			2021-04-17 03:14:25 +02:00 
		 
	
		
	
		
	
		
			
			
			
			
			
			2019-07-28 17:47:37 +02:00 
		 
	
		
			
			
			
			
			
			2019-09-09 22:44:17 +02:00 
		 
	
		
			
			
			
			
			
			2020-01-20 15:55:03 +01:00 
		 
	
		
			
			
			
			
			
			2020-04-26 23:29:08 +02:00 
		 
	
		
			
			
			
			
			
			2021-01-10 00:32:01 +01:00 
		 
	
		
			
			
			
			
			
			2020-06-02 19:24:53 +02:00 
		 
	
		
			
			
			
			
			
			2020-12-14 09:06:34 +01:00 
		 
	
		
			
			
			
			
			
			2020-12-18 08:30:41 +01:00 
		 
	
		
			
			
			
			
			
			2020-03-12 22:35:20 +01:00 
		 
	
		
			
			
			
			
			
			2020-07-01 19:05:21 +02:00 
		 
	
		
			
			
			
			
			
			2020-11-19 17:48:13 +01:00 
		 
	
		
			
			
			
			
			
			2020-12-22 17:13:55 +01:00 
		 
	
		
			
			
			
			
			
			2019-08-07 10:00:58 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-12 17:09:49 +02:00 
		 
	
		
			
			
			
			
			
			2021-04-12 12:37:14 +02:00 
		 
	
		
			
			
			
			
			
			2021-04-12 12:37:14 +02:00 
		 
	
		
			
			
			
			
			
			2021-05-09 10:39:29 +02:00 
		 
	
		
			
			
			
			
			
			2021-04-23 22:51:21 +02:00 
		 
	
		
			
			
			
			
			
			2020-12-26 23:52:46 +01:00 
		 
	
		
			
			
			
			
			
			2021-01-07 09:40:55 +01:00 
		 
	
		
			
			
			
			
			
			2018-11-27 13:56:25 +01:00 
		 
	
		
			
			
			
			
			
			2020-12-18 09:18:31 +01:00 
		 
	
		
			
			
			
			
			
			2021-05-05 23:39:02 +02:00 
		 
	
		
			
			
			
			
			
			2021-05-05 23:39:02 +02:00 
		 
	
		
			
			
			
			
			
			2020-01-20 15:55:03 +01:00 
		 
	
		
			
			
			
			
			
			2020-09-15 14:37:58 +02:00 
		 
	
		
			
			
			
			
			
			2020-10-12 16:33:49 +02:00 
		 
	
		
			
			
			
			
			
			2019-11-04 13:02:01 +01:00 
		 
	
		
			
			
			
			
			
			2021-01-07 09:40:55 +01:00 
		 
	
		
			
			
			
			
			
			2020-12-22 23:57:46 +01:00 
		 
	
		
			
			
			
			
			
			2019-09-06 13:55:51 +02:00 
		 
	
		
			
			
			
			
			
			2021-05-05 19:44:01 +02:00 
		 
	
		
			
			
			
			
			
			2018-10-17 17:13:04 +02:00 
		 
	
		
			
			
			
			
			
			2020-06-02 19:24:53 +02:00 
		 
	
		
			
			
			
			
			
			2020-10-13 01:01:14 +02:00 
		 
	
		
			
			
			
			
			
			2021-03-17 10:09:55 +01:00 
		 
	
		
			
			
			
			
			
			2020-06-02 19:24:53 +02:00 
		 
	
		
			
			
			
			
			
			2019-03-06 19:53:57 +01:00 
		 
	
		
			
			
			
			
			
			2021-01-07 09:40:55 +01:00 
		 
	
		
			
			
			
			
			
			2020-09-01 03:04:00 +02:00 
		 
	
		
			
			
			
			
			
			2021-01-07 09:40:55 +01:00 
		 
	
		
			
			
			
			
			
			2020-05-08 20:17:16 +02:00 
		 
	
		
			
			
			
			
			
			2020-04-23 22:04:18 +02:00 
		 
	
		
			
			
			
			
			
			2020-10-08 00:34:57 +02:00 
		 
	
		
			
			
			
			
			
			2020-01-20 15:55:03 +01:00 
		 
	
		
			
			
			
			
			
			2018-12-26 06:38:59 +01:00 
		 
	
		
			
			
			
			
			
			2021-03-24 10:44:31 +01:00 
		 
	
		
			
			
			
			
			
			2021-02-21 19:50:12 +01:00 
		 
	
		
			
			
			
			
			
			2019-01-06 16:38:40 +01:00 
		 
	
		
	
		
			
			
			
			
			
			2021-05-06 14:22:54 +02:00 
		 
	
		
			
			
			
			
			
			2021-01-12 09:27:38 +01:00 
		 
	
		
			
			
			
			
			
			2019-04-01 07:30:46 +02:00 
		 
	
		
	
		
			
			
			
			
			
			2018-10-28 06:42:34 +01:00 
		 
	
		
			
			
			
			
			
			2021-04-24 13:35:39 +02:00 
		 
	
		
			
			
			
			
			
			2020-06-02 19:24:53 +02:00 
		 
	
		
			
			
			
			
			
			2021-01-07 09:40:55 +01:00 
		 
	
		
			
			
			
			
			
			2021-05-07 14:33:43 +02:00 
		 
	
		
			
			
			
			
			
			2021-05-07 14:33:43 +02:00 
		 
	
		
			
			
			
			
			
			2019-05-09 22:03:02 +02:00 
		 
	
		
			
			
			
			
			
			2021-05-07 14:33:43 +02:00 
		 
	
		
			
			
			
			
			
			2020-12-14 09:06:34 +01:00 
		 
	
		
			
			
			
			
			
			2019-04-09 23:06:30 +09:00 
		 
	
		
			
			
			
			
			
			2021-05-06 14:22:54 +02:00 
		 
	
		
	
		
			
			
			
			
			
			2020-09-16 20:16:46 +02:00