[prev in list] [next in list] [prev in thread] [next in thread]
List: mysql-internals
Subject: [PATCH] Proposed patch for #22615: MySQL Server incorrectly catogorizes the lost+found directory as
From: Jorge Bernal <koke () amedias ! org>
Date: 2007-05-08 14:25:50
Message-ID: 7A8F68B0-542C-4C45-8510-130A025BB06A () amedias ! org
[Download RAW message or body]
Hi,
here goes a patch for the bug <http://bugs.mysqsl.com/22615>.
Do you think this is enough, or it should be configurable?
Cheers,
Koke
PS: Just in case attachments get lost, they're available at
http://people.warp.es/~koke/patches/
["22615-ignore-lost+found.diff.txt" (22615-ignore-lost+found.diff.txt)]
# HG changeset patch
# User Jorge Bernal <jbernal@warp.es>
# Date 1178666303 -7200
# Node ID 33cacf0e42cf057084d6dba57ebd80ca5665bf4d
# Parent 67963b78daef0bb6e54d4e53e568e76e59a03ea3
Don't interpret lost+found directories in data dir as databases. Fixes #22615
diff -r 67963b78daef -r 33cacf0e42cf sql/sql_show.cc
--- a/sql/sql_show.cc Tue May 08 16:44:50 2007 +0200
+++ b/sql/sql_show.cc Wed May 09 01:18:23 2007 +0200
@@ -528,6 +528,8 @@ find_files(THD *thd, List<char> *files,
((file->name[1] == '.' && file->name[2] == '\0') ||
file->name[1] == '\0')))
continue; /* . or .. */
+ if (!strcmp(file->name,"lost+found"))
+ continue; /* #22615: Ignore lost+found directory */
#ifdef USE_SYMDIR
char *ext;
char buff[FN_REFLEN];
--
Jorge Bernal Ordov=E1s <koke@amedias.org>
http://amedias.org/ [ES]
http://koke.amedias.org/ [EN]
Warp Networks http://www.warp.es/
D. Jaime I 33 3=BA Dcha, 50001 Zaragoza, Spain
--
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe: http://lists.mysql.com/internals?unsub=mysql-internals@progressive-comp.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic