dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4b5eeb
)
While coding r58014, I thought that VACUUM on a 0-byte databse results in an error...
author
Max Semenik
<maxsem@users.mediawiki.org>
Thu, 17 Dec 2009 15:48:49 +0000
(15:48 +0000)
committer
Max Semenik
<maxsem@users.mediawiki.org>
Thu, 17 Dec 2009 15:48:49 +0000
(15:48 +0000)
maintenance/sqlite.php
patch
|
blob
|
history
diff --git
a/maintenance/sqlite.php
b/maintenance/sqlite.php
index
681631a
..
46a038c
100644
(file)
--- a/
maintenance/sqlite.php
+++ b/
maintenance/sqlite.php
@@
-49,6
+49,9
@@
class SqliteMaintenance extends Maintenance {
private function vacuum() {
$prevSize = filesize( $this->db->mDatabaseFile );
+ if ( $prevSize == 0 ) {
+ $this->error( "Can't vacuum an empty database.\n", true );
+ }
$this->output( 'VACUUM: ' );
if ( $this->db->query( 'VACUUM' ) ) {