Merge lp:~stewart/drizzle/remove-more-unireg into lp:drizzle

Proposed by Stewart Smith
Status: Merged
Merged at revision: 2629
Proposed branch: lp:~stewart/drizzle/remove-more-unireg
Merge into: lp:drizzle
Diff against target: 789 lines (+94/-95)
5 files modified
drizzled/drizzled.cc (+68/-68)
drizzled/drizzled_abort.h (+10/-11)
drizzled/include.am (+1/-1)
drizzled/main.cc (+11/-11)
drizzled/module/registry.h (+4/-4)
To merge this branch: bzr merge lp:~stewart/drizzle/remove-more-unireg
Reviewer Review Type Date Requested Status
Stewart Smith (community) Approve
Drizzle Trunk Pending
Review via email: mp+150857@code.launchpad.net

Description of the change

unireg.h now has nothing to do with UNIREG. Let's stop confusing people.

To post a comment you must log in.
Revision history for this message
Stewart Smith (stewart) wrote :

discussed (and approved) with Brian over email

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'drizzled/drizzled.cc'
--- drizzled/drizzled.cc 2012-12-13 18:45:19 +0000
+++ drizzled/drizzled.cc 2013-02-27 17:19:19 +0000
@@ -77,7 +77,7 @@
77#include <drizzled/statistics_variables.h>77#include <drizzled/statistics_variables.h>
78#include <drizzled/table/cache.h>78#include <drizzled/table/cache.h>
79#include <drizzled/temporal_format.h> /* For init_temporal_formats() */79#include <drizzled/temporal_format.h> /* For init_temporal_formats() */
80#include <drizzled/unireg.h>80#include <drizzled/drizzled_abort.h>
81#include <plugin/myisam/myisam.h>81#include <plugin/myisam/myisam.h>
82#include <drizzled/typelib.h>82#include <drizzled/typelib.h>
83#include <drizzled/visibility.h>83#include <drizzled/visibility.h>
@@ -437,7 +437,7 @@
437 (void)close(file); /* We can ignore the error, since we are going to error anyway at this point */437 (void)close(file); /* We can ignore the error, since we are going to error anyway at this point */
438 }438 }
439439
440 unireg_abort << "Can't start server, was unable to create PID file: " << pid_file.string();440 drizzled_abort << "Can't start server, was unable to create PID file: " << pid_file.string();
441}441}
442442
443#ifdef DEFINED_O_CLOEXEC443#ifdef DEFINED_O_CLOEXEC
@@ -524,20 +524,20 @@
524 }524 }
525}525}
526526
527static bool unireg_startup_completed= false;527static bool drizzled_startup_completed= false;
528void unireg_startup_finished()528void drizzled_startup_finished()
529{529{
530 unireg_startup_completed= true;530 drizzled_startup_completed= true;
531}531}
532532
533void unireg_exit()533void drizzled_exit()
534{534{
535 internal::my_end();535 internal::my_end();
536 assert(unireg_startup_completed == false);536 assert(drizzled_startup_completed == false);
537 exit(EXIT_SUCCESS);537 exit(EXIT_SUCCESS);
538}538}
539539
540void unireg_actual_abort(const char *file, int line, const char *func, const std::string& message)540void drizzled_actual_abort(const char *file, int line, const char *func, const std::string& message)
541{541{
542 std::stringstream temp;542 std::stringstream temp;
543 temp << _("Aborting:") << "\"" << message << "\"" << ". Abort was called from " << file << ":" << line << " in " << func << "()";543 temp << _("Aborting:") << "\"" << message << "\"" << ". Abort was called from " << file << ":" << line << " in " << func << "()";
@@ -546,7 +546,7 @@
546 clean_up(vm.count("help") == 0);546 clean_up(vm.count("help") == 0);
547 internal::my_end();547 internal::my_end();
548548
549 assert(unireg_startup_completed == false);549 assert(drizzled_startup_completed == false);
550 exit(EXIT_FAILURE);550 exit(EXIT_FAILURE);
551}551}
552552
@@ -607,7 +607,7 @@
607 }607 }
608 if (not user)608 if (not user)
609 {609 {
610 unireg_abort << _("drizzled cannot be run as root, use --user to start drizzled up as another user");610 drizzled_abort << _("drizzled cannot be run as root, use --user to start drizzled up as another user");
611 }611 }
612612
613 if (strcmp(user, "root") == 0)613 if (strcmp(user, "root") == 0)
@@ -635,7 +635,7 @@
635635
636 if (failed)636 if (failed)
637 {637 {
638 unireg_abort << "Fatal error: Can't change to run as user '" << user << "' ; Please check that the user exists!";638 drizzled_abort << "Fatal error: Can't change to run as user '" << user << "' ; Please check that the user exists!";
639639
640#ifdef PR_SET_DUMPABLE640#ifdef PR_SET_DUMPABLE
641 if (getDebug().test(debug::CORE_ON_SIGNAL))641 if (getDebug().test(debug::CORE_ON_SIGNAL))
@@ -657,11 +657,11 @@
657 initgroups(user, user_info_arg->pw_gid);657 initgroups(user, user_info_arg->pw_gid);
658 if (setgid(user_info_arg->pw_gid) == -1)658 if (setgid(user_info_arg->pw_gid) == -1)
659 {659 {
660 unireg_abort << _("Set process group ID failed ") << strerror(errno);660 drizzled_abort << _("Set process group ID failed ") << strerror(errno);
661 }661 }
662 if (setuid(user_info_arg->pw_uid) == -1)662 if (setuid(user_info_arg->pw_uid) == -1)
663 {663 {
664 unireg_abort << _("Set process user ID failed") << strerror(errno);664 drizzled_abort << _("Set process user ID failed") << strerror(errno);
665 }665 }
666}666}
667667
@@ -672,7 +672,7 @@
672{672{
673 if ((chroot(path) == -1) or chdir("/") == 0)673 if ((chroot(path) == -1) or chdir("/") == 0)
674 {674 {
675 unireg_abort << _("Process chroot failed");675 drizzled_abort << _("Process chroot failed");
676 }676 }
677}677}
678678
@@ -771,7 +771,7 @@
771 global_system_variables.auto_increment_increment= 1;771 global_system_variables.auto_increment_increment= 1;
772 if (in_auto_increment_increment < 1 || in_auto_increment_increment > UINT64_MAX)772 if (in_auto_increment_increment < 1 || in_auto_increment_increment > UINT64_MAX)
773 {773 {
774 unireg_abort << _("Invalid Value for auto_increment_increment");774 drizzled_abort << _("Invalid Value for auto_increment_increment");
775 }775 }
776 global_system_variables.auto_increment_increment= in_auto_increment_increment;776 global_system_variables.auto_increment_increment= in_auto_increment_increment;
777}777}
@@ -781,7 +781,7 @@
781 global_system_variables.auto_increment_offset= 1;781 global_system_variables.auto_increment_offset= 1;
782 if (in_auto_increment_offset < 1 || in_auto_increment_offset > UINT64_MAX)782 if (in_auto_increment_offset < 1 || in_auto_increment_offset > UINT64_MAX)
783 {783 {
784 unireg_abort << _("Invalid Value for auto_increment_offset");784 drizzled_abort << _("Invalid Value for auto_increment_offset");
785 }785 }
786 global_system_variables.auto_increment_offset= in_auto_increment_offset;786 global_system_variables.auto_increment_offset= in_auto_increment_offset;
787}787}
@@ -791,7 +791,7 @@
791 global_system_variables.completion_type= 0;791 global_system_variables.completion_type= 0;
792 if (in_completion_type > 2)792 if (in_completion_type > 2)
793 {793 {
794 unireg_abort << _("Invalid Value for completion_type");794 drizzled_abort << _("Invalid Value for completion_type");
795 }795 }
796 global_system_variables.completion_type= in_completion_type;796 global_system_variables.completion_type= in_completion_type;
797}797}
@@ -802,7 +802,7 @@
802 global_system_variables.div_precincrement= 4;802 global_system_variables.div_precincrement= 4;
803 if (in_div_precincrement > DECIMAL_MAX_SCALE)803 if (in_div_precincrement > DECIMAL_MAX_SCALE)
804 {804 {
805 unireg_abort << _("Invalid Value for div-precision-increment");805 drizzled_abort << _("Invalid Value for div-precision-increment");
806 }806 }
807 global_system_variables.div_precincrement= in_div_precincrement;807 global_system_variables.div_precincrement= in_div_precincrement;
808}808}
@@ -812,7 +812,7 @@
812 global_system_variables.group_concat_max_len= 1024;812 global_system_variables.group_concat_max_len= 1024;
813 if (in_group_concat_max_len > ULONG_MAX || in_group_concat_max_len < 4)813 if (in_group_concat_max_len > ULONG_MAX || in_group_concat_max_len < 4)
814 {814 {
815 unireg_abort << _("Invalid Value for group_concat_max_len");815 drizzled_abort << _("Invalid Value for group_concat_max_len");
816 }816 }
817 global_system_variables.group_concat_max_len= in_group_concat_max_len;817 global_system_variables.group_concat_max_len= in_group_concat_max_len;
818}818}
@@ -822,7 +822,7 @@
822 global_system_variables.join_buff_size= (128*1024L);822 global_system_variables.join_buff_size= (128*1024L);
823 if (in_join_buffer_size < IO_SIZE*2 || in_join_buffer_size > ULONG_MAX)823 if (in_join_buffer_size < IO_SIZE*2 || in_join_buffer_size > ULONG_MAX)
824 {824 {
825 unireg_abort << _("Invalid Value for join_buffer_size");825 drizzled_abort << _("Invalid Value for join_buffer_size");
826 }826 }
827 in_join_buffer_size-= in_join_buffer_size % IO_SIZE;827 in_join_buffer_size-= in_join_buffer_size % IO_SIZE;
828 global_system_variables.join_buff_size= in_join_buffer_size;828 global_system_variables.join_buff_size= in_join_buffer_size;
@@ -833,7 +833,7 @@
833 global_system_variables.max_allowed_packet= (64*1024*1024L);833 global_system_variables.max_allowed_packet= (64*1024*1024L);
834 if (in_max_allowed_packet < 1024 || in_max_allowed_packet > 1024*1024L*1024L)834 if (in_max_allowed_packet < 1024 || in_max_allowed_packet > 1024*1024L*1024L)
835 {835 {
836 unireg_abort << _("Invalid Value for max_allowed_packet");836 drizzled_abort << _("Invalid Value for max_allowed_packet");
837 }837 }
838 in_max_allowed_packet-= in_max_allowed_packet % 1024;838 in_max_allowed_packet-= in_max_allowed_packet % 1024;
839 global_system_variables.max_allowed_packet= in_max_allowed_packet;839 global_system_variables.max_allowed_packet= in_max_allowed_packet;
@@ -844,7 +844,7 @@
844 global_system_variables.max_error_count= DEFAULT_ERROR_COUNT;844 global_system_variables.max_error_count= DEFAULT_ERROR_COUNT;
845 if (in_max_error_count > 65535)845 if (in_max_error_count > 65535)
846 {846 {
847 unireg_abort << _("Invalid Value for max_error_count");847 drizzled_abort << _("Invalid Value for max_error_count");
848 }848 }
849 global_system_variables.max_error_count= in_max_error_count;849 global_system_variables.max_error_count= in_max_error_count;
850}850}
@@ -854,7 +854,7 @@
854 global_system_variables.max_heap_table_size= (16*1024*1024L);854 global_system_variables.max_heap_table_size= (16*1024*1024L);
855 if (in_max_heap_table_size < 16384 || in_max_heap_table_size > MAX_MEM_TABLE_SIZE)855 if (in_max_heap_table_size < 16384 || in_max_heap_table_size > MAX_MEM_TABLE_SIZE)
856 {856 {
857 unireg_abort << _("Invalid Value for max_heap_table_size");857 drizzled_abort << _("Invalid Value for max_heap_table_size");
858 }858 }
859 in_max_heap_table_size-= in_max_heap_table_size % 1024;859 in_max_heap_table_size-= in_max_heap_table_size % 1024;
860 global_system_variables.max_heap_table_size= in_max_heap_table_size;860 global_system_variables.max_heap_table_size= in_max_heap_table_size;
@@ -865,7 +865,7 @@
865 global_system_variables.min_examined_row_limit= 0;865 global_system_variables.min_examined_row_limit= 0;
866 if (in_min_examined_row_limit > ULONG_MAX)866 if (in_min_examined_row_limit > ULONG_MAX)
867 {867 {
868 unireg_abort << _("Invalid Value for min_examined_row_limit");868 drizzled_abort << _("Invalid Value for min_examined_row_limit");
869 }869 }
870 global_system_variables.min_examined_row_limit= in_min_examined_row_limit;870 global_system_variables.min_examined_row_limit= in_min_examined_row_limit;
871}871}
@@ -875,7 +875,7 @@
875 global_system_variables.max_join_size= INT32_MAX;875 global_system_variables.max_join_size= INT32_MAX;
876 if ((uint64_t)in_max_join_size < 1 || (uint64_t)in_max_join_size > INT32_MAX)876 if ((uint64_t)in_max_join_size < 1 || (uint64_t)in_max_join_size > INT32_MAX)
877 {877 {
878 unireg_abort << _("Invalid Value for max_join_size");878 drizzled_abort << _("Invalid Value for max_join_size");
879 }879 }
880 global_system_variables.max_join_size= in_max_join_size;880 global_system_variables.max_join_size= in_max_join_size;
881}881}
@@ -885,7 +885,7 @@
885 global_system_variables.max_length_for_sort_data= 1024;885 global_system_variables.max_length_for_sort_data= 1024;
886 if (in_max_length_for_sort_data < 4 || in_max_length_for_sort_data > 8192*1024L)886 if (in_max_length_for_sort_data < 4 || in_max_length_for_sort_data > 8192*1024L)
887 {887 {
888 unireg_abort << _("Invalid Value for max_length_for_sort_data");888 drizzled_abort << _("Invalid Value for max_length_for_sort_data");
889 }889 }
890 global_system_variables.max_length_for_sort_data= in_max_length_for_sort_data;890 global_system_variables.max_length_for_sort_data= in_max_length_for_sort_data;
891}891}
@@ -895,7 +895,7 @@
895 global_system_variables.max_seeks_for_key= ULONG_MAX;895 global_system_variables.max_seeks_for_key= ULONG_MAX;
896 if (in_max_seeks_for_key < 1 || in_max_seeks_for_key > ULONG_MAX)896 if (in_max_seeks_for_key < 1 || in_max_seeks_for_key > ULONG_MAX)
897 {897 {
898 unireg_abort << _("Invalid Value for max_seeks_for_key");898 drizzled_abort << _("Invalid Value for max_seeks_for_key");
899 }899 }
900 global_system_variables.max_seeks_for_key= in_max_seeks_for_key;900 global_system_variables.max_seeks_for_key= in_max_seeks_for_key;
901}901}
@@ -905,7 +905,7 @@
905 global_system_variables.max_sort_length= 1024;905 global_system_variables.max_sort_length= 1024;
906 if ((int64_t)in_max_sort_length < 4 || (int64_t)in_max_sort_length > 8192*1024L)906 if ((int64_t)in_max_sort_length < 4 || (int64_t)in_max_sort_length > 8192*1024L)
907 {907 {
908 unireg_abort << _("Invalid Value for max_sort_length");908 drizzled_abort << _("Invalid Value for max_sort_length");
909 }909 }
910 global_system_variables.max_sort_length= in_max_sort_length;910 global_system_variables.max_sort_length= in_max_sort_length;
911}911}
@@ -915,7 +915,7 @@
915 global_system_variables.optimizer_search_depth= 0;915 global_system_variables.optimizer_search_depth= 0;
916 if (in_optimizer_search_depth > MAX_TABLES + 2)916 if (in_optimizer_search_depth > MAX_TABLES + 2)
917 {917 {
918 unireg_abort << _("Invalid Value for optimizer_search_depth");918 drizzled_abort << _("Invalid Value for optimizer_search_depth");
919 }919 }
920 global_system_variables.optimizer_search_depth= in_optimizer_search_depth;920 global_system_variables.optimizer_search_depth= in_optimizer_search_depth;
921}921}
@@ -925,7 +925,7 @@
925 global_system_variables.preload_buff_size= (32*1024L);925 global_system_variables.preload_buff_size= (32*1024L);
926 if (in_preload_buff_size < 1024 || in_preload_buff_size > 1024*1024*1024L)926 if (in_preload_buff_size < 1024 || in_preload_buff_size > 1024*1024*1024L)
927 {927 {
928 unireg_abort << _("Invalid Value for preload_buff_size");928 drizzled_abort << _("Invalid Value for preload_buff_size");
929 }929 }
930 global_system_variables.preload_buff_size= in_preload_buff_size;930 global_system_variables.preload_buff_size= in_preload_buff_size;
931}931}
@@ -935,7 +935,7 @@
935 global_system_variables.query_alloc_block_size= QUERY_ALLOC_BLOCK_SIZE;935 global_system_variables.query_alloc_block_size= QUERY_ALLOC_BLOCK_SIZE;
936 if (in_query_alloc_block_size < 1024)936 if (in_query_alloc_block_size < 1024)
937 {937 {
938 unireg_abort << _("Invalid Value for query_alloc_block_size");938 drizzled_abort << _("Invalid Value for query_alloc_block_size");
939 }939 }
940 in_query_alloc_block_size-= in_query_alloc_block_size % 1024;940 in_query_alloc_block_size-= in_query_alloc_block_size % 1024;
941 global_system_variables.query_alloc_block_size= in_query_alloc_block_size;941 global_system_variables.query_alloc_block_size= in_query_alloc_block_size;
@@ -946,7 +946,7 @@
946 global_system_variables.query_prealloc_size= QUERY_ALLOC_PREALLOC_SIZE;946 global_system_variables.query_prealloc_size= QUERY_ALLOC_PREALLOC_SIZE;
947 if (in_query_prealloc_size < QUERY_ALLOC_PREALLOC_SIZE)947 if (in_query_prealloc_size < QUERY_ALLOC_PREALLOC_SIZE)
948 {948 {
949 unireg_abort << _("Invalid Value for query_prealloc_size");949 drizzled_abort << _("Invalid Value for query_prealloc_size");
950 }950 }
951 in_query_prealloc_size-= in_query_prealloc_size % 1024;951 in_query_prealloc_size-= in_query_prealloc_size % 1024;
952 global_system_variables.query_prealloc_size= in_query_prealloc_size;952 global_system_variables.query_prealloc_size= in_query_prealloc_size;
@@ -957,7 +957,7 @@
957 global_system_variables.range_alloc_block_size= RANGE_ALLOC_BLOCK_SIZE;957 global_system_variables.range_alloc_block_size= RANGE_ALLOC_BLOCK_SIZE;
958 if (in_range_alloc_block_size < RANGE_ALLOC_BLOCK_SIZE)958 if (in_range_alloc_block_size < RANGE_ALLOC_BLOCK_SIZE)
959 {959 {
960 unireg_abort << _("Invalid Value for range_alloc_block_size");960 drizzled_abort << _("Invalid Value for range_alloc_block_size");
961 }961 }
962 in_range_alloc_block_size-= in_range_alloc_block_size % 1024;962 in_range_alloc_block_size-= in_range_alloc_block_size % 1024;
963 global_system_variables.range_alloc_block_size= in_range_alloc_block_size;963 global_system_variables.range_alloc_block_size= in_range_alloc_block_size;
@@ -968,7 +968,7 @@
968 global_system_variables.read_buff_size= (128*1024L);968 global_system_variables.read_buff_size= (128*1024L);
969 if (in_read_buff_size < IO_SIZE*2 || in_read_buff_size > INT32_MAX)969 if (in_read_buff_size < IO_SIZE*2 || in_read_buff_size > INT32_MAX)
970 {970 {
971 unireg_abort << _("Invalid Value for read_buff_size");971 drizzled_abort << _("Invalid Value for read_buff_size");
972 }972 }
973 in_read_buff_size-= in_read_buff_size % IO_SIZE;973 in_read_buff_size-= in_read_buff_size % IO_SIZE;
974 global_system_variables.read_buff_size= in_read_buff_size;974 global_system_variables.read_buff_size= in_read_buff_size;
@@ -979,7 +979,7 @@
979 global_system_variables.read_rnd_buff_size= (256*1024L);979 global_system_variables.read_rnd_buff_size= (256*1024L);
980 if (in_read_rnd_buff_size < 64 || in_read_rnd_buff_size > UINT32_MAX)980 if (in_read_rnd_buff_size < 64 || in_read_rnd_buff_size > UINT32_MAX)
981 {981 {
982 unireg_abort << _("Invalid Value for read_rnd_buff_size");982 drizzled_abort << _("Invalid Value for read_rnd_buff_size");
983 }983 }
984 global_system_variables.read_rnd_buff_size= in_read_rnd_buff_size;984 global_system_variables.read_rnd_buff_size= in_read_rnd_buff_size;
985}985}
@@ -989,7 +989,7 @@
989 global_system_variables.sortbuff_size= MAX_SORT_MEMORY;989 global_system_variables.sortbuff_size= MAX_SORT_MEMORY;
990 if ((uint32_t)in_sortbuff_size < MIN_SORT_MEMORY)990 if ((uint32_t)in_sortbuff_size < MIN_SORT_MEMORY)
991 {991 {
992 unireg_abort << _("Invalid Value for sort_buff_size");992 drizzled_abort << _("Invalid Value for sort_buff_size");
993 }993 }
994 global_system_variables.sortbuff_size= in_sortbuff_size;994 global_system_variables.sortbuff_size= in_sortbuff_size;
995}995}
@@ -999,7 +999,7 @@
999 table_def_size= 128;999 table_def_size= 128;
1000 if (in_table_def_size < 1 || in_table_def_size > 512*1024L)1000 if (in_table_def_size < 1 || in_table_def_size > 512*1024L)
1001 {1001 {
1002 unireg_abort << _("Invalid Value for table_def_size");1002 drizzled_abort << _("Invalid Value for table_def_size");
1003 }1003 }
1004 table_def_size= in_table_def_size;1004 table_def_size= in_table_def_size;
1005}1005}
@@ -1009,7 +1009,7 @@
1009 table_cache_size= TABLE_OPEN_CACHE_DEFAULT;1009 table_cache_size= TABLE_OPEN_CACHE_DEFAULT;
1010 if (in_table_cache_size < TABLE_OPEN_CACHE_MIN || in_table_cache_size > 512*1024L)1010 if (in_table_cache_size < TABLE_OPEN_CACHE_MIN || in_table_cache_size > 512*1024L)
1011 {1011 {
1012 unireg_abort << _("Invalid Value for table_cache_size");1012 drizzled_abort << _("Invalid Value for table_cache_size");
1013 }1013 }
1014 table_cache_size= in_table_cache_size;1014 table_cache_size= in_table_cache_size;
1015}1015}
@@ -1019,7 +1019,7 @@
1019 table_lock_wait_timeout= 50;1019 table_lock_wait_timeout= 50;
1020 if (in_table_lock_wait_timeout < 1 || in_table_lock_wait_timeout > 1024*1024*1024)1020 if (in_table_lock_wait_timeout < 1 || in_table_lock_wait_timeout > 1024*1024*1024)
1021 {1021 {
1022 unireg_abort << _("Invalid Value for table_lock_wait_timeout");1022 drizzled_abort << _("Invalid Value for table_lock_wait_timeout");
1023 }1023 }
1024 table_lock_wait_timeout= in_table_lock_wait_timeout;1024 table_lock_wait_timeout= in_table_lock_wait_timeout;
1025}1025}
@@ -1034,7 +1034,7 @@
1034 global_system_variables.tmp_table_size= 16*1024*1024L;1034 global_system_variables.tmp_table_size= 16*1024*1024L;
1035 if (in_tmp_table_size < 1024 || in_tmp_table_size > MAX_MEM_TABLE_SIZE)1035 if (in_tmp_table_size < 1024 || in_tmp_table_size > MAX_MEM_TABLE_SIZE)
1036 {1036 {
1037 unireg_abort << _("Invalid Value for table_lock_wait_timeout");1037 drizzled_abort << _("Invalid Value for table_lock_wait_timeout");
1038 }1038 }
1039 global_system_variables.tmp_table_size= in_tmp_table_size;1039 global_system_variables.tmp_table_size= in_tmp_table_size;
1040}1040}
@@ -1044,7 +1044,7 @@
1044 transaction_message_threshold= 1024*1024;1044 transaction_message_threshold= 1024*1024;
1045 if ((int64_t) in_transaction_message_threshold < 128*1024 || (int64_t)in_transaction_message_threshold > 1024*1024)1045 if ((int64_t) in_transaction_message_threshold < 128*1024 || (int64_t)in_transaction_message_threshold > 1024*1024)
1046 {1046 {
1047 unireg_abort << _("Invalid Value for transaction_message_threshold valid values are between 131072 - 1048576 bytes");1047 drizzled_abort << _("Invalid Value for transaction_message_threshold valid values are between 131072 - 1048576 bytes");
1048 }1048 }
1049 transaction_message_threshold= in_transaction_message_threshold;1049 transaction_message_threshold= in_transaction_message_threshold;
1050}1050}
@@ -1092,7 +1092,7 @@
1092 }1092 }
1093 else1093 else
1094 {1094 {
1095 unireg_abort << "Defaults file '" << it << "' not found";1095 drizzled_abort << "Defaults file '" << it << "' not found";
1096 }1096 }
1097 }1097 }
1098}1098}
@@ -1347,7 +1347,7 @@
1347 }1347 }
1348 catch (std::exception&)1348 catch (std::exception&)
1349 {1349 {
1350 unireg_abort << _("Duplicate entry for command line option");1350 drizzled_abort << _("Duplicate entry for command line option");
1351 }1351 }
13521352
1353 /* TODO: here is where we should add a process_env_vars */1353 /* TODO: here is where we should add a process_env_vars */
@@ -1359,13 +1359,13 @@
1359 }1359 }
1360 catch (po::validation_error &err)1360 catch (po::validation_error &err)
1361 {1361 {
1362 unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";1362 drizzled_abort << err.what() << ". " << "Use --help to get a list of available options. ";
1363 }1363 }
13641364
1365 if (vm.count("version"))1365 if (vm.count("version"))
1366 {1366 {
1367 print_version();1367 print_version();
1368 unireg_exit();1368 drizzled_exit();
1369 }1369 }
13701370
1371 if (!vm["no-defaults"].as<bool>())1371 if (!vm["no-defaults"].as<bool>())
@@ -1400,13 +1400,13 @@
1400 }1400 }
1401 catch (po::validation_error &err)1401 catch (po::validation_error &err)
1402 {1402 {
1403 unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";1403 drizzled_abort << err.what() << ". " << "Use --help to get a list of available options. ";
1404 }1404 }
14051405
1406 return true;1406 return true;
1407}1407}
14081408
1409// Return failure if we can't pass this, unireg_abort() will then be called1409// Return failure if we can't pass this, drizzled_abort() will then be called
1410// by the caller.1410// by the caller.
1411bool init_variables_after_daemonizing(module::Registry &plugins)1411bool init_variables_after_daemonizing(module::Registry &plugins)
1412{1412{
@@ -1420,7 +1420,7 @@
14201420
1421 if (plugin_init(plugins, plugin_options))1421 if (plugin_init(plugins, plugin_options))
1422 {1422 {
1423 unireg_abort << _("Failed to initialize plugins");1423 drizzled_abort << _("Failed to initialize plugins");
1424 }1424 }
14251425
1426 full_options.add(plugin_options);1426 full_options.add(plugin_options);
@@ -1446,15 +1446,15 @@
1446 }1446 }
1447 catch (po::validation_error &err)1447 catch (po::validation_error &err)
1448 {1448 {
1449 unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";1449 drizzled_abort << err.what() << ". " << "Use --help to get a list of available options. ";
1450 }1450 }
1451 catch (po::invalid_command_line_syntax &err)1451 catch (po::invalid_command_line_syntax &err)
1452 {1452 {
1453 unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";1453 drizzled_abort << err.what() << ". " << "Use --help to get a list of available options. ";
1454 }1454 }
1455 catch (po::unknown_option &err)1455 catch (po::unknown_option &err)
1456 {1456 {
1457 unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";1457 drizzled_abort << err.what() << ". " << "Use --help to get a list of available options. ";
1458 }1458 }
14591459
1460 try1460 try
@@ -1463,7 +1463,7 @@
1463 }1463 }
1464 catch (po::validation_error &err)1464 catch (po::validation_error &err)
1465 {1465 {
1466 unireg_abort << err.what() << ". " << "Use --help to get a list of available options. ";1466 drizzled_abort << err.what() << ". " << "Use --help to get a list of available options. ";
1467 }1467 }
14681468
1469 get_options();1469 get_options();
@@ -1546,7 +1546,7 @@
15461546
1547 /*1547 /*
1548 We need to call each of these following functions to ensure that1548 We need to call each of these following functions to ensure that
1549 all things are initialized so that unireg_abort() doesn't fail1549 all things are initialized so that drizzled_abort() doesn't fail
1550 */1550 */
15511551
1552 // Resize the definition Cache at startup1552 // Resize the definition Cache at startup
@@ -1561,12 +1561,12 @@
15611561
1562 if (plugin_finalize(plugins))1562 if (plugin_finalize(plugins))
1563 {1563 {
1564 unireg_abort << "plugin_finalize() failed";1564 drizzled_abort << "plugin_finalize() failed";
1565 }1565 }
15661566
1567 if (plugin::Scheduler::setPlugin(opt_scheduler))1567 if (plugin::Scheduler::setPlugin(opt_scheduler))
1568 {1568 {
1569 unireg_abort << _("No scheduler found");1569 drizzled_abort << _("No scheduler found");
1570 }1570 }
15711571
1572 /*1572 /*
@@ -1584,7 +1584,7 @@
1584 plugin::StorageEngine *engine= plugin::StorageEngine::findByName(default_storage_engine_str);1584 plugin::StorageEngine *engine= plugin::StorageEngine::findByName(default_storage_engine_str);
1585 if (engine == NULL)1585 if (engine == NULL)
1586 {1586 {
1587 unireg_abort << _("Unknown/unsupported storage engine: ") << default_storage_engine_str;1587 drizzled_abort << _("Unknown/unsupported storage engine: ") << default_storage_engine_str;
1588 }1588 }
1589 global_system_variables.storage_engine= engine;1589 global_system_variables.storage_engine= engine;
1590 }1590 }
@@ -1592,7 +1592,7 @@
1592 if (plugin::XaResourceManager::recoverAllXids())1592 if (plugin::XaResourceManager::recoverAllXids())
1593 {1593 {
1594 /* This function alredy generates error messages */1594 /* This function alredy generates error messages */
1595 unireg_abort << "plugin::XaResourceManager::recoverAllXids() failed";1595 drizzled_abort << "plugin::XaResourceManager::recoverAllXids() failed";
1596 }1596 }
15971597
1598 init_update_queries();1598 init_update_queries();
@@ -1949,7 +1949,7 @@
1949{1949{
1950 if ((default_charset_info= get_charset_by_csname(default_character_set_name, MY_CS_PRIMARY)) == NULL)1950 if ((default_charset_info= get_charset_by_csname(default_character_set_name, MY_CS_PRIMARY)) == NULL)
1951 {1951 {
1952 unireg_abort << "Failed to load default_charset_info:" << default_character_set_name;1952 drizzled_abort << "Failed to load default_charset_info:" << default_character_set_name;
1953 }1953 }
19541954
1955 if (default_collation_name == NULL)1955 if (default_collation_name == NULL)
@@ -1975,7 +1975,7 @@
1975 all_options.add(plugin_options);1975 all_options.add(plugin_options);
1976 cout << all_options << endl;1976 cout << all_options << endl;
19771977
1978 unireg_exit();1978 drizzled_exit();
1979}1979}
19801980
1981/**1981/**
@@ -2087,7 +2087,7 @@
2087 if ((vm["sort-heap-threshold"].as<uint64_t>() > 0) and2087 if ((vm["sort-heap-threshold"].as<uint64_t>() > 0) and
2088 (vm["sort-heap-threshold"].as<uint64_t>() < global_system_variables.sortbuff_size))2088 (vm["sort-heap-threshold"].as<uint64_t>() < global_system_variables.sortbuff_size))
2089 {2089 {
2090 unireg_abort << _("sort-heap-threshold cannot be less than sort-buffer-size");2090 drizzled_abort << _("sort-heap-threshold cannot be less than sort-buffer-size");
2091 }2091 }
20922092
2093 global_sort_buffer.setMaxSize(vm["sort-heap-threshold"].as<uint64_t>());2093 global_sort_buffer.setMaxSize(vm["sort-heap-threshold"].as<uint64_t>());
@@ -2098,7 +2098,7 @@
2098 if ((vm["join-heap-threshold"].as<uint64_t>() > 0) and2098 if ((vm["join-heap-threshold"].as<uint64_t>() > 0) and
2099 (vm["join-heap-threshold"].as<uint64_t>() < global_system_variables.join_buff_size))2099 (vm["join-heap-threshold"].as<uint64_t>() < global_system_variables.join_buff_size))
2100 {2100 {
2101 unireg_abort << _("join-heap-threshold cannot be less than join-buffer-size");2101 drizzled_abort << _("join-heap-threshold cannot be less than join-buffer-size");
2102 }2102 }
21032103
2104 global_join_buffer.setMaxSize(vm["join-heap-threshold"].as<uint64_t>());2104 global_join_buffer.setMaxSize(vm["join-heap-threshold"].as<uint64_t>());
@@ -2109,7 +2109,7 @@
2109 if ((vm["read-rnd-threshold"].as<uint64_t>() > 0) and2109 if ((vm["read-rnd-threshold"].as<uint64_t>() > 0) and
2110 (vm["read-rnd-threshold"].as<uint64_t>() < global_system_variables.read_rnd_buff_size))2110 (vm["read-rnd-threshold"].as<uint64_t>() < global_system_variables.read_rnd_buff_size))
2111 {2111 {
2112 unireg_abort << _("read-rnd-threshold cannot be less than read-rnd-buffer-size");2112 drizzled_abort << _("read-rnd-threshold cannot be less than read-rnd-buffer-size");
2113 }2113 }
21142114
2115 global_read_rnd_buffer.setMaxSize(vm["read-rnd-threshold"].as<uint64_t>());2115 global_read_rnd_buffer.setMaxSize(vm["read-rnd-threshold"].as<uint64_t>());
@@ -2120,7 +2120,7 @@
2120 if ((vm["read-buffer-threshold"].as<uint64_t>() > 0) and2120 if ((vm["read-buffer-threshold"].as<uint64_t>() > 0) and
2121 (vm["read-buffer-threshold"].as<uint64_t>() < global_system_variables.read_buff_size))2121 (vm["read-buffer-threshold"].as<uint64_t>() < global_system_variables.read_buff_size))
2122 {2122 {
2123 unireg_abort << _("read-buffer-threshold cannot be less than read-buffer-size");2123 drizzled_abort << _("read-buffer-threshold cannot be less than read-buffer-size");
2124 }2124 }
21252125
2126 global_read_buffer.setMaxSize(vm["read-buffer-threshold"].as<uint64_t>());2126 global_read_buffer.setMaxSize(vm["read-buffer-threshold"].as<uint64_t>());
@@ -2154,12 +2154,12 @@
2154 const charset_info_st * const default_collation= get_charset_by_name(vm["collation-server"].as<string>().c_str());2154 const charset_info_st * const default_collation= get_charset_by_name(vm["collation-server"].as<string>().c_str());
2155 if (not default_collation)2155 if (not default_collation)
2156 {2156 {
2157 unireg_abort << "Unknown collation: " << default_collation_name;2157 drizzled_abort << "Unknown collation: " << default_collation_name;
2158 }2158 }
21592159
2160 if (not my_charset_same(default_charset_info, default_collation))2160 if (not my_charset_same(default_charset_info, default_collation))
2161 {2161 {
2162 unireg_abort << "COLLATION '" << default_collation_name << "' is not valid for CHARACTER SET '" << default_charset_info->csname << "'";2162 drizzled_abort << "COLLATION '" << default_collation_name << "' is not valid for CHARACTER SET '" << default_charset_info->csname << "'";
2163 }2163 }
2164 default_charset_info= default_collation;2164 default_charset_info= default_collation;
2165 }2165 }
@@ -2252,14 +2252,14 @@
2252 assert(getuid() != 0 and geteuid() != 0);2252 assert(getuid() != 0 and geteuid() != 0);
2253 if (getuid() == 0 or geteuid() == 0)2253 if (getuid() == 0 or geteuid() == 0)
2254 {2254 {
2255 unireg_abort << "Drizzle cannot be run as root, please see the Security piece of the manual for more information.";2255 drizzled_abort << "Drizzle cannot be run as root, please see the Security piece of the manual for more information.";
2256 }2256 }
22572257
2258 if (mkdir(drizzle_tmpdir.c_str(), 0777) == -1)2258 if (mkdir(drizzle_tmpdir.c_str(), 0777) == -1)
2259 {2259 {
2260 if (errno != EEXIST)2260 if (errno != EEXIST)
2261 {2261 {
2262 unireg_abort << "There was an error creating the '"2262 drizzled_abort << "There was an error creating the '"
2263 << fs::path(drizzle_tmpdir).leaf()2263 << fs::path(drizzle_tmpdir).leaf()
2264 << "' part of the path '"2264 << "' part of the path '"
2265 << drizzle_tmpdir2265 << drizzle_tmpdir
@@ -2269,7 +2269,7 @@
22692269
2270 if (stat(drizzle_tmpdir.c_str(), &buf) || not S_ISDIR(buf.st_mode))2270 if (stat(drizzle_tmpdir.c_str(), &buf) || not S_ISDIR(buf.st_mode))
2271 {2271 {
2272 unireg_abort << "There was an error opening the path '" << drizzle_tmpdir << "', please check the path exists and is writable.";2272 drizzled_abort << "There was an error opening the path '" << drizzle_tmpdir << "', please check the path exists and is writable.";
2273 }2273 }
2274}2274}
22752275
22762276
=== renamed file 'drizzled/unireg.h' => 'drizzled/drizzled_abort.h'
--- drizzled/unireg.h 2011-07-19 02:02:52 +0000
+++ drizzled/drizzled_abort.h 2013-02-27 17:19:19 +0000
@@ -2,6 +2,8 @@
2 * vim:expandtab:shiftwidth=2:tabstop=2:smarttab:2 * vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3 *3 *
4 * Copyright (C) 2008 Sun Microsystems, Inc.4 * Copyright (C) 2008 Sun Microsystems, Inc.
5 * Copyright (C) 2011 Brian Aker
6 * Copyright (C) 2013 Stewart Smith
5 *7 *
6 * This program is free software; you can redistribute it and/or modify8 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by9 * it under the terms of the GNU General Public License as published by
@@ -17,9 +19,6 @@
17 * along with this program; if not, write to the Free Software19 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19 */21 */
20
21/* Extra functions used by unireg library */
22
23#pragma once22#pragma once
2423
25#include <drizzled/visibility.h>24#include <drizzled/visibility.h>
@@ -28,16 +27,16 @@
28namespace drizzled27namespace drizzled
29{28{
3029
31void unireg_exit() __attribute__((noreturn));30void drizzled_exit() __attribute__((noreturn));
32DRIZZLED_API void unireg_actual_abort(const char *file, int line, const char *func, const std::string& message) __attribute__((noreturn));31DRIZZLED_API void drizzled_actual_abort(const char *file, int line, const char *func, const std::string& message) __attribute__((noreturn));
33void unireg_startup_finished();32void drizzled_startup_finished();
3433
35namespace stream {34namespace stream {
3635
37namespace detail {36namespace detail {
3837
39template<class Ch, class Tr, class A>38template<class Ch, class Tr, class A>
40 class _unireg {39 class _drizzled_abort_log {
41 private:40 private:
4241
43 public:42 public:
@@ -46,7 +45,7 @@
46 public:45 public:
47 void operator()(const stream_buffer &s, const char *filename, int line, const char *func)46 void operator()(const stream_buffer &s, const char *filename, int line, const char *func)
48 {47 {
49 unireg_actual_abort(filename, line, func, s.str());48 drizzled_actual_abort(filename, line, func, s.str());
50 }49 }
51 };50 };
5251
@@ -90,9 +89,9 @@
90 };89 };
91} // namespace detail90} // namespace detail
9291
93class _unireg : public detail::log<detail::_unireg> {92class _drizzled_abort_log : public detail::log<detail::_drizzled_abort_log> {
94public:93public:
95 _unireg(const char *filename, int line_number, const char *func)94 _drizzled_abort_log(const char *filename, int line_number, const char *func)
96 {95 {
97 set_filename(filename, line_number, func);96 set_filename(filename, line_number, func);
98 }97 }
@@ -100,6 +99,6 @@
10099
101} // namespace stream100} // namespace stream
102101
103#define unireg_abort stream::_unireg(__FILE__, __LINE__, __func__)102#define drizzled_abort stream::_drizzled_abort_log(__FILE__, __LINE__, __func__)
104103
105} /* namespace drizzled */104} /* namespace drizzled */
106105
=== modified file 'drizzled/include.am'
--- drizzled/include.am 2013-01-20 11:22:10 +0000
+++ drizzled/include.am 2013-02-27 17:19:19 +0000
@@ -83,6 +83,7 @@
83 drizzled/discrete_interval.h \83 drizzled/discrete_interval.h \
84 drizzled/display.h \84 drizzled/display.h \
85 drizzled/drizzled.h \85 drizzled/drizzled.h \
86 drizzled/drizzled_abort.h \
86 drizzled/dtcollation.h \87 drizzled/dtcollation.h \
87 drizzled/dynamic_array.h \88 drizzled/dynamic_array.h \
88 drizzled/enum.h \89 drizzled/enum.h \
@@ -512,7 +513,6 @@
512 drizzled/type/ipv6.h \513 drizzled/type/ipv6.h \
513 drizzled/typelib.h \514 drizzled/typelib.h \
514 drizzled/unique.h \515 drizzled/unique.h \
515 drizzled/unireg.h \
516 drizzled/user_var_entry.h \516 drizzled/user_var_entry.h \
517 drizzled/utf8/checked.h \517 drizzled/utf8/checked.h \
518 drizzled/utf8/core.h \518 drizzled/utf8/core.h \
519519
=== modified file 'drizzled/main.cc'
--- drizzled/main.cc 2012-10-20 23:08:23 +0000
+++ drizzled/main.cc 2013-02-27 17:19:19 +0000
@@ -63,7 +63,7 @@
63#include <drizzled/session/cache.h>63#include <drizzled/session/cache.h>
64#include <drizzled/signal_handler.h>64#include <drizzled/signal_handler.h>
65#include <drizzled/transaction_services.h>65#include <drizzled/transaction_services.h>
66#include <drizzled/unireg.h>66#include <drizzled/drizzled_abort.h>
67#include <drizzled/util/backtrace.h>67#include <drizzled/util/backtrace.h>
68#include <drizzled/current_session.h>68#include <drizzled/current_session.h>
69#include <drizzled/daemon.h>69#include <drizzled/daemon.h>
@@ -272,7 +272,7 @@
272 /* init_common_variables must get basic settings such as data_home_dir and plugin_load_list. */272 /* init_common_variables must get basic settings such as data_home_dir and plugin_load_list. */
273 if (init_variables_before_daemonizing(argc, argv) == false)273 if (init_variables_before_daemonizing(argc, argv) == false)
274 {274 {
275 unireg_abort << "init_variables_before_daemonizing() failed"; // Will do exit275 drizzled_abort << "init_variables_before_daemonizing() failed"; // Will do exit
276 }276 }
277277
278 if (opt_daemon and was_help_requested() == false)278 if (opt_daemon and was_help_requested() == false)
@@ -284,18 +284,18 @@
284284
285 if (daemonize())285 if (daemonize())
286 {286 {
287 unireg_abort << "--daemon failed";287 drizzled_abort << "--daemon failed";
288 }288 }
289 }289 }
290290
291 if (init_variables_after_daemonizing(modules) == false)291 if (init_variables_after_daemonizing(modules) == false)
292 {292 {
293 unireg_abort << "init_variables_after_daemonizing() failed"; // Will do exit293 drizzled_abort << "init_variables_after_daemonizing() failed"; // Will do exit
294 }294 }
295295
296 /*296 /*
297 init signals & alarm297 init signals & alarm
298 After this we can't quit by a simple unireg_abort298 After this we can't quit by a simple drizzled_abort
299 */299 */
300300
301 init_signals();301 init_signals();
@@ -307,7 +307,7 @@
307 {307 {
308 if (chdir(getDataHome().string().c_str()))308 if (chdir(getDataHome().string().c_str()))
309 {309 {
310 unireg_abort << "Data directory " << getDataHome().string() << " does not exist";310 drizzled_abort << "Data directory " << getDataHome().string() << " does not exist";
311 }311 }
312312
313 ifstream old_uuid_file ("server.uuid");313 ifstream old_uuid_file ("server.uuid");
@@ -338,13 +338,13 @@
338 case EACCES:338 case EACCES:
339 {339 {
340 char cwd[1024];340 char cwd[1024];
341 unireg_abort << "Could not create local catalog, permission denied in directory:" << getcwd(cwd, sizeof(cwd));341 drizzled_abort << "Could not create local catalog, permission denied in directory:" << getcwd(cwd, sizeof(cwd));
342 }342 }
343343
344 default:344 default:
345 {345 {
346 char cwd[1024];346 char cwd[1024];
347 unireg_abort << "Could not create local catalog, in directory:" << getcwd(cwd, sizeof(cwd)) << " system error was:" << strerror(errno);347 drizzled_abort << "Could not create local catalog, in directory:" << getcwd(cwd, sizeof(cwd)) << " system error was:" << strerror(errno);
348 }348 }
349 }349 }
350 }350 }
@@ -370,7 +370,7 @@
370 cout << _("In File: ") << *::boost::get_error_info<boost::throw_file>(ex) << endl;370 cout << _("In File: ") << *::boost::get_error_info<boost::throw_file>(ex) << endl;
371 cout << _("On Line: ") << *::boost::get_error_info<boost::throw_line>(ex) << endl;371 cout << _("On Line: ") << *::boost::get_error_info<boost::throw_line>(ex) << endl;
372#endif372#endif
373 unireg_abort << "init_server_components() failed";373 drizzled_abort << "init_server_components() failed";
374 }374 }
375375
376376
@@ -383,13 +383,13 @@
383 *383 *
384 * @todo384 * @todo
385 *385 *
386 * not checking return since unireg_abort() hangs386 * not checking return since drizzled_abort() hangs
387 */387 */
388 (void) ReplicationServices::evaluateRegisteredPlugins();388 (void) ReplicationServices::evaluateRegisteredPlugins();
389389
390 if (plugin::Listen::setup())390 if (plugin::Listen::setup())
391 {391 {
392 unireg_abort << "Failed plugin::Listen::setup()";392 drizzled_abort << "Failed plugin::Listen::setup()";
393 }393 }
394394
395 assert(plugin::num_trx_monitored_objects > 0);395 assert(plugin::num_trx_monitored_objects > 0);
396396
=== modified file 'drizzled/module/registry.h'
--- drizzled/module/registry.h 2011-08-16 01:07:54 +0000
+++ drizzled/module/registry.h 2013-02-27 17:19:19 +0000
@@ -29,7 +29,7 @@
29#include <boost/scoped_ptr.hpp>29#include <boost/scoped_ptr.hpp>
3030
31#include <drizzled/gettext.h>31#include <drizzled/gettext.h>
32#include <drizzled/unireg.h>32#include <drizzled/drizzled_abort.h>
33#include <drizzled/errmsg_print.h>33#include <drizzled/errmsg_print.h>
34#include <drizzled/plugin/plugin.h>34#include <drizzled/plugin/plugin.h>
35#include <drizzled/util/find_ptr.h>35#include <drizzled/util/find_ptr.h>
@@ -102,7 +102,7 @@
102 error_message+= plugin->getTypeName();102 error_message+= plugin->getTypeName();
103 error_message+= ":";103 error_message+= ":";
104 error_message+= plugin->getName();104 error_message+= plugin->getName();
105 unireg_actual_abort(__FILE__, __LINE__, __func__, error_message);105 drizzled_actual_abort(__FILE__, __LINE__, __func__, error_message);
106 }106 }
107107
108 if (T::addPlugin(plugin))108 if (T::addPlugin(plugin))
@@ -112,12 +112,12 @@
112 error_message+= plugin->getTypeName();112 error_message+= plugin->getTypeName();
113 error_message+= ":";113 error_message+= ":";
114 error_message+= plugin->getName();114 error_message+= plugin->getName();
115 unireg_actual_abort(__FILE__, __LINE__, __func__, error_message);115 drizzled_actual_abort(__FILE__, __LINE__, __func__, error_message);
116 }116 }
117117
118 if (failed)118 if (failed)
119 {119 {
120 unireg_abort << _("Fatal error: Failed initializing: ") << plugin->getTypeName() << ":" << plugin->getName();120 drizzled_abort << _("Fatal error: Failed initializing: ") << plugin->getTypeName() << ":" << plugin->getName();
121 }121 }
122 plugin_registry.insert(std::make_pair(std::make_pair(plugin_type, plugin_name), plugin));122 plugin_registry.insert(std::make_pair(std::make_pair(plugin_type, plugin_name), plugin));
123 }123 }

Subscribers

People subscribed via source and target branches

to all changes: