infinitepush: don't force ipv6 while connecting to mysql server
authorPulkit Goyal <7895pulkit@gmail.com>
Sat, 31 Mar 2018 10:13:05 -0700
changeset 37234 c1fac3878196
parent 37233 912f4f64047f
child 37235 7e906d8a825f
infinitepush: don't force ipv6 while connecting to mysql server Facebook internally enforces this but looks like we can't force this for pur users. Differential Revision: https://phab.mercurial-scm.org/D2992
hgext/infinitepush/sqlindexapi.py
--- a/hgext/infinitepush/sqlindexapi.py	Sat Mar 31 14:33:37 2018 +0530
+++ b/hgext/infinitepush/sqlindexapi.py	Sat Mar 31 10:13:05 2018 -0700
@@ -60,8 +60,7 @@
         retry = 3
         while True:
             try:
-                self.sqlconn = mysql.connector.connect(
-                    force_ipv6=True, **self.sqlargs)
+                self.sqlconn = mysql.connector.connect(**self.sqlargs)
 
                 # Code is copy-pasted from hgsql. Bug fixes need to be
                 # back-ported!