Cancelling last commit related to BT#3023 - after a while, this makes logins impossible. Instead, in MySQL replication, use slave-skip-errors = 1062 in [mysqld] section to avoid locking the slave - see http://alexlurthu.wordpress.com/2008/04/04/skip-duplicate-entries-in-a-slave/ comments #cluster #replication

skala
Yannick Warnier 13 years ago
parent 784759e8aa
commit 60bf53e033
  1. 2
      main/inc/lib/session_handler.class.php

@ -108,7 +108,7 @@ class session_handler {
if ($this->sqlConnect()) {
$result = $this->sqlQuery("INSERT IGNORE INTO ".$this->connection['base'].".php_session(session_id,session_name,session_time,session_start,session_value) VALUES('$sess_id','".$this->session_name."','$time','$time','".addslashes($sess_value)."')", false);
$result = $this->sqlQuery("INSERT INTO ".$this->connection['base'].".php_session(session_id,session_name,session_time,session_start,session_value) VALUES('$sess_id','".$this->session_name."','$time','$time','".addslashes($sess_value)."')", false);
if (!$result) {
$this->sqlQuery("UPDATE ".$this->connection['base'].".php_session SET session_name='".$this->session_name."',session_time='$time',session_value='".addslashes($sess_value)."' WHERE session_id='$sess_id'");

Loading…
Cancel
Save