]> git.pld-linux.org Git - packages/drupal.git/commitdiff
- work with replication patch
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 15 Aug 2005 13:26:07 +0000 (13:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    drupal-emptypass.patch -> 1.2

drupal-emptypass.patch

index dbacbc316fe84ede559de406c6f66256b66b4d94..c2aa9a87df5245db19f5bc73c121b9cdcee4ce63 100644 (file)
@@ -1,11 +1,23 @@
---- ./includes/database.mysql.inc~     2005-04-14 21:50:23.000000000 +0300
-+++ ./includes/database.mysql.inc      2005-05-18 18:48:24.970031862 +0300
-@@ -28,7 +28,7 @@
-      $url['host'] = $url['host'] .':'. $url['port'];
+# without replication patch:
+#--- ./includes/database.mysql.inc~    2005-04-14 21:50:23.000000000 +0300
+#+++ ./includes/database.mysql.inc     2005-05-18 18:48:24.970031862 +0300
+#@@ -28,7 +28,7 @@
+#      $url['host'] = $url['host'] .':'. $url['port'];
+#   }
+# 
+#-  $connection = mysql_connect($url['host'], $url['user'], $url['pass'], TRUE) or die(mysql_error());
+#+  $connection = mysql_connect($url['host'], $url['user'], @$url['pass'], TRUE) or die(mysql_error());
+#   mysql_select_db(substr($url['path'], 1)) or die('unable to select database');
+# 
+#   return $connection;
+--- ./includes/database.mysql.inc~     2005-08-15 16:11:07.000000000 +0300
++++ ./includes/database.mysql.inc      2005-08-15 16:11:39.000000000 +0300
+@@ -29,7 +29,7 @@
    }
  
--  $connection = mysql_connect($url['host'], $url['user'], $url['pass'], TRUE) or die(mysql_error());
-+  $connection = mysql_connect($url['host'], $url['user'], @$url['pass'], TRUE) or die(mysql_error());
-   mysql_select_db(substr($url['path'], 1)) or die('unable to select database');
-   return $connection;
+   // For replication setups, we will assume that dieing is bad 
+-  $connection = mysql_pconnect($url['host'], $url['user'], $url['pass'], TRUE);
++  $connection = mysql_pconnect($url['host'], $url['user'], @$url['pass'], TRUE);
+   if(!is_resource($connection) && $critical) {
+     die(mysql_error());
+   }
This page took 0.032323 seconds and 4 git commands to generate.