Skip to content

Commit 71f8c8c

Browse files
Adds using to authenticate rollback call
1 parent d6ea542 commit 71f8c8c

File tree

1 file changed

+1
-1
lines changed
  • src/sentry/services/hybrid_cloud/auth

1 file changed

+1
-1
lines changed

src/sentry/services/hybrid_cloud/auth/impl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def authenticate(self, *, request: AuthenticationRequest) -> MiddlewareAuthentic
193193
elif fake_request.user is not None and not fake_request.user.is_anonymous:
194194
with transaction.atomic(using=router.db_for_read(User)):
195195
result.user = self._load_auth_user(fake_request.user)
196-
transaction.set_rollback(True)
196+
transaction.set_rollback(True, using=router.db_for_read(User))
197197
if SiloMode.single_process_silo_mode():
198198
connections.close_all()
199199

0 commit comments

Comments
 (0)