• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ Contributions (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Problem with NFS while using mysql container

Post a bug fix, a new feature, a theme ...

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
1 post • Page 1 of 1

Postby leithoff » Fri Aug 21, 2009 12:22 pm

As you use the mysql - container, you may want to avoid the NFS Locking
problem.
If your data_private_path is located within NFS you still have the same
problem, as the src/proxies/log.class.php tries to log any send, notify and me command to
that log.
This patch avoids the problem, by returning if you use the mysql container,
beforethe attempt of logging takes place.
This turns off logging of the mentioned commands.

[root@mserver epl-trunk]# svn diff phpfreechat/phpfreechat/src/proxies/log.class.php
Index: phpfreechat/phpfreechat/src/proxies/log.class.php
===================================================================
--- phpfreechat/phpfreechat/src/proxies/log.class.php (Revision 1263)
+++ phpfreechat/phpfreechat/src/proxies/log.class.php (Arbeitskopie)
@@ -41,6 +41,8 @@
$recipient = $p["recipient"];
$recipientid = $p["recipientid"];
$c =& pfcGlobalConfig::Instance();
+ // check if the container is mysql. If it is, get out of here, as the reason may be the NFS problem.
+ if ($c->container_type == 'mysql') return $this->next->run($xml_reponse, $p);
$u =& pfcUserConfig::Instance();

$logpath = ($c->proxies_cfg[$this->proxyname]["path"] == "" ? $c->data_private_path."/logs" :
@@ -69,4 +71,4 @@
}
}

-?>
No newline at end of file
+?>
leithoff
New member
 
Posts: 1
Joined: Fri Aug 21, 2009 11:46 am
Top

Post a reply
1 post • Page 1 of 1

Return to Contributions (v1.x)

Who is online

Users browsing this forum: No registered users and 11 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub