List:Commits« Previous MessageNext Message »
From:lars-erik.bjork Date:August 18 2008 7:16pm
Subject:bzr commit into mysql-6.0-falcon branch (lars-erik.bjork:2787) Bug#38377
View as plain text  
#At file:///home/lb200670/devel/mysql/team-push/

 2787 lars-erik.bjork@stripped	2008-08-18
      A fix for bug#38377 - Options falcon_serial_log_dir does not have any effect
modified:
  storage/falcon/Configuration.cpp
  storage/falcon/ha_falcon.cpp

per-file messages:
  storage/falcon/Configuration.cpp
    Added a print-out to the error log
    Uncommented the throw of the SQLEXCEPTION
    Changed error to FILE_ACCESS_ERROR to prevent recreating the database
  storage/falcon/ha_falcon.cpp
    Fixed some minor layout issues regarding printing out exceptions
=== modified file 'storage/falcon/Configuration.cpp'
--- a/storage/falcon/Configuration.cpp	2008-07-17 13:52:17 +0000
+++ b/storage/falcon/Configuration.cpp	2008-08-18 17:16:30 +0000
@@ -151,8 +151,14 @@ Configuration::Configuration(const char 
 		
 		if (!scanDir.isDirectory())
 			{
-			//throw SQLEXCEPTION (RUNTIME_ERROR, "Invalid serial log directory path \"%s\"",
falcon_serial_log_dir);
-			serialLogDir = "";
+			fprintf(stderr, 
+					"Falcon: The specified serial log directory,\"%s\", "
+					"does not exist.\n"
+					"Falcon: The directory must be created by "
+					"the user before initializing Falcon.\n", 
+					falcon_serial_log_dir
+				);
+			throw SQLEXCEPTION (FILE_ACCESS_ERROR, "Invalid serial log directory path \"%s\"",
falcon_serial_log_dir);
 			}
 		}
 #else

=== modified file 'storage/falcon/ha_falcon.cpp'
--- a/storage/falcon/ha_falcon.cpp	2008-08-14 11:24:18 +0000
+++ b/storage/falcon/ha_falcon.cpp	2008-08-18 17:16:30 +0000
@@ -216,13 +216,13 @@ int StorageInterface::falcon_init(void *
 		}
 	catch(SQLException &e)
 		{
-		sql_print_error("Falcon : exception '%s'during initialization",
+		sql_print_error("Falcon: Exception '%s' during initialization",
 			e.getText());
 		error = true;
 		}
 	catch(...)
 		{
-		sql_print_error(" Falcon : general exception in initialization");
+		sql_print_error(" Falcon: General exception in initialization");
 		error = true;
 		}
 

Thread
bzr commit into mysql-6.0-falcon branch (lars-erik.bjork:2787) Bug#38377lars-erik.bjork18 Aug
  • RE: bzr commit into mysql-6.0-falcon branch (lars-erik.bjork:2787) Bug#38377Vladislav Vaintroub18 Aug
  • Re: bzr commit into mysql-6.0-falcon branch (lars-erik.bjork:2787)Bug#38377Olav Sandstaa19 Aug