1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-17 20:01:25 +02:00

Always flush in navigation because table_status can take long

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@849 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2009-07-16 17:45:07 +00:00
parent 0f29896dfa
commit 4a014a6d69
3 changed files with 4 additions and 6 deletions

View File

@@ -84,6 +84,8 @@ function adminer_message_query($query) {
function adminer_navigation($missing) {
global $SELF;
if (call_adminer('navigation', true, $missing) && $missing != "auth") {
ob_flush();
flush();
$databases = get_databases();
?>
<form action="" method="post">

View File

@@ -201,14 +201,10 @@ function connect() {
return $dbh->error;
}
function get_databases($flush = true) {
function get_databases() {
// SHOW DATABASES can take a very long time so it is cached
$return = &$_SESSION["databases"][$_GET["server"]];
if (!isset($return)) {
if ($flush) {
ob_flush();
flush();
}
$return = get_vals("SHOW DATABASES");
}
return $return;