﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34006	close_old_connections() unconditionally closes connections inside atomic blocks if default autocommit = 1	Didier Frick	nobody	"This problem has already been reported in https://code.djangoproject.com/ticket/30448 and the fix is in https://github.com/django/django/pull/11769 but somehow never made it to the repo.

Currently, without this patch, IIUC, if default autocommit is on, then close_old_connections will yank the connection from underneath any code that happens to be running inside an atomic block at the time (because atomic blocks set autocommit to 0, which is different from the default).

The fix is to merge https://github.com/django/django/pull/11769  
"	Bug	closed	Database layer (models, ORM)		Normal	duplicate			Unreviewed	0	0	0	0	0	0
