Changeset 2478
- Timestamp:
- 02/27/09 01:31:59 (4 years ago)
- Location:
- alternc/trunk
- Files:
-
- 3 edited
-
bureau/admin/sql_list.php (modified) (1 diff)
-
bureau/class/m_mysql.php (modified) (2 diffs)
-
debian/changelog (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
alternc/trunk/bureau/admin/sql_list.php
r802 r2478 57 57 for($i=0;$i<count($r);$i++) { 58 58 $val=$r[$i]; 59 $val['size'] = $mysql->get_db_size($val['db']); 59 60 $col=3-$col; 60 61 ?> -
alternc/trunk/bureau/class/m_mysql.php
r2076 r2478 61 61 * "db" => database name "bck" => backup mode for this db 62 62 * "dir" => Backup folder. 63 * "size" => Size of the database (in bytes)64 63 * Returns FALSE if the user has no database. 65 64 */ … … 76 75 list($dbu,$dbn)=split_mysql_database_name($db->f("db")); 77 76 $c[]=array("db"=>$db->f("db"), "name"=>$dbn,"bck"=>$db->f("bck_mode"), "dir"=>$db->f("bck_dir"), "login"=>$db->f("login"), "pass"=>$db->f("pass")); 78 }79 80 /* find the size of each database */81 foreach ($c as $key => $val) {82 $c[$key]['size'] = $this->get_db_size($c[$key]['db']);83 77 } 84 78 return $c; -
alternc/trunk/debian/changelog
r2454 r2478 17 17 * send an email on new account creation. the actual email needs to be 18 18 configured through the AlternC variables for this to work. 19 * API changes 20 * m_mysql->get_db_list() doesn't include size anymore because this 21 is a major performance hit on MySQL < 5.1.22 if there are > 1000 22 databases on the system. This speeds up the AlternC login by about 23 30 seconds on Koumbit.org. 19 24 20 25 -- Antoine Beaupré <anarcat@koumbit.org> Wed, 28 Jan 2009 19:52:46 -0500
Note: See TracChangeset
for help on using the changeset viewer.
