Current time: 12-24-2024, 05:47 AM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] MySQL on external server - no quota?
Author Message
FeG Offline
Banned

Posts: 222
Joined: Aug 2007
Post: #12
RE: MySQL on external server - no quota?
Hi,

Thanks, zmediaguru, for your response.. there is an index error in the ispcp-dsk-quota script .. so we were both right Wink .. no conversion is needed, but the current script gives the wrong output.

The script uses the indices 5 and 7, but it has to be 6 and 8, so the patch for this file looks like this:

Code:
Index: ispcp-dsk-quota
===================================================================
--- ispcp-dsk-quota     (Revision 1365)
+++ ispcp-dsk-quota     (Arbeitskopie)
@@ -207,9 +207,9 @@

                        foreach(@$ref)
                        {
-                           my $data_length   = @$_[5];
+                           my $data_length   = @$_[6];

-                       my $index_length  = @$_[7];
+                       my $index_length  = @$_[8];

                                $size += $data_length + $index_length;
                        }
@@ -379,7 +379,7 @@
}


-$rs = mysqldb_quota_by_dir_engine();
+$rs = mysqldb_quota_by_mysql_engine();

if ($rs != 0) {

Thanks again for insisting on that Smile I've uploaded the corrected patch to ticket 1554.

Regards
FeG
(This post was last modified: 10-09-2008 06:52 PM by FeG.)
10-09-2008 06:46 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: MySQL on external server - no quota? - FeG - 10-09-2008 06:46 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)