Merge lp:~mordred/drizzle/split-session-header into lp:drizzle/7.0

Proposed by Monty Taylor
Status: Work in progress
Proposed branch: lp:~mordred/drizzle/split-session-header
Merge into: lp:drizzle/7.0
Prerequisite: lp:~mordred/drizzle/give-in-to-pkg-config
Diff against target: 1205 lines (+455/-118) (has conflicts)
48 files modified
drizzled/base.h (+1/-1)
drizzled/common.h (+0/-1)
drizzled/copy_info.h (+121/-0)
drizzled/daemon.cc (+5/-0)
drizzled/definitions.h (+1/-4)
drizzled/filesort.cc (+1/-0)
drizzled/function/get_user_var.cc (+1/-0)
drizzled/function/set_user_var.cc (+1/-0)
drizzled/function/user_var_as_out_param.cc (+1/-0)
drizzled/identifier/catalog.cc (+1/-0)
drizzled/identifier/schema.cc (+1/-0)
drizzled/include.am (+6/-1)
drizzled/item/subselect.cc (+7/-0)
drizzled/item/sum.cc (+2/-0)
drizzled/join.h (+1/-0)
drizzled/lex_column.h (+2/-0)
drizzled/main.cc (+19/-16)
drizzled/module/loader.cc (+0/-2)
drizzled/optimizer/quick_index_merge_select.cc (+1/-0)
drizzled/optimizer/range.cc (+1/-0)
drizzled/select_create.h (+2/-0)
drizzled/select_dump.h (+2/-0)
drizzled/select_dumpvar.h (+1/-0)
drizzled/select_singlerow_subselect.h (+2/-0)
drizzled/session.cc (+17/-0)
drizzled/session.h (+30/-89)
drizzled/set_var.cc (+2/-0)
drizzled/set_var.h (+0/-1)
drizzled/show.cc (+2/-0)
drizzled/sort_field.h (+70/-0)
drizzled/sql_derived.cc (+1/-0)
drizzled/sql_insert.cc (+2/-0)
drizzled/sql_lex.h (+1/-0)
drizzled/sql_parse.cc (+1/-0)
drizzled/sql_select.cc (+1/-0)
drizzled/sql_union.cc (+1/-0)
drizzled/sql_yacc.yy (+6/-0)
drizzled/statement/create_table.cc (+5/-0)
drizzled/statement/insert_select.cc (+1/-0)
drizzled/statement/replace_select.cc (+2/-0)
drizzled/sys_var.h (+1/-1)
drizzled/system_variables.h (+115/-0)
drizzled/unique.cc (+1/-0)
drizzled/user_var_entry.cc (+1/-0)
drizzled/user_var_entry.h (+10/-1)
plugin/logging_stats/user_commands.cc (+1/-0)
plugin/mysql_protocol/mysql_protocol.cc (+3/-1)
plugin/session_dictionary/variables.cc (+1/-0)
Conflict adding file drizzled/copy_info.h.  Moved existing file to drizzled/copy_info.h.moved.
Text conflict in drizzled/cursor.cc
Text conflict in drizzled/drizzled.cc
Text conflict in drizzled/field.h
Text conflict in drizzled/function/cast/boolean.cc
Text conflict in drizzled/function/cast/boolean.h
Text conflict in drizzled/function/cast/signed.cc
Text conflict in drizzled/function/cast/unsigned.cc
Text conflict in drizzled/function/func.h
Text conflict in drizzled/generator.h
Text conflict in drizzled/generator/table.h
Text conflict in drizzled/handler_structs.h
Text conflict in drizzled/hybrid_type_traits.cc
Text conflict in drizzled/hybrid_type_traits_decimal.cc
Text conflict in drizzled/hybrid_type_traits_integer.cc
Text conflict in drizzled/include.am
Text conflict in drizzled/item.h
Text conflict in drizzled/item/cache.h
Text conflict in drizzled/item/cmpfunc.h
Text conflict in drizzled/item/int.cc
Text conflict in drizzled/item/null.h
Text conflict in drizzled/item/num.h
Text conflict in drizzled/item/subselect.cc
Text conflict in drizzled/item/sum.h
Text conflict in drizzled/join.cc
Text conflict in drizzled/join.h
Text conflict in drizzled/key.cc
Text conflict in drizzled/locking/global.cc
Text conflict in drizzled/main.cc
Text conflict in drizzled/open_tables_state.h
Text conflict in drizzled/optimizer/quick_index_merge_select.h
Text conflict in drizzled/optimizer/range.cc
Text conflict in drizzled/optimizer/range.h
Text conflict in drizzled/optimizer/sum.cc
Text conflict in drizzled/plugin/client.cc
Text conflict in drizzled/plugin/function.h
Text conflict in drizzled/plugin/query_rewrite.h
Text conflict in drizzled/plugin/storage_engine.h
Text conflict in drizzled/plugin/table_function.cc
Text conflict in drizzled/records.cc
Text conflict in drizzled/session.cc
Text conflict in drizzled/session.h
Text conflict in drizzled/session/cache.cc
Text conflict in drizzled/session/cache.h
Text conflict in drizzled/show.cc
Text conflict in drizzled/show.h
Text conflict in drizzled/sql_base.cc
Text conflict in drizzled/sql_parse.cc
Text conflict in drizzled/sql_select.cc
Text conflict in drizzled/sql_select.h
Text conflict in drizzled/sql_table.cc
Text conflict in drizzled/sql_update.cc
Text conflict in drizzled/statement/alter_table.cc
Text conflict in drizzled/statement/create_index.cc
Text conflict in drizzled/statement/create_table.cc
Text conflict in drizzled/statement/drop_index.cc
Text conflict in drizzled/statement/flush.cc
Text conflict in drizzled/statement/rename_table.cc
Text conflict in drizzled/sys_var.cc
Conflict adding file drizzled/system_variables.h.  Moved existing file to drizzled/system_variables.h.moved.
Text conflict in drizzled/table.cc
Text conflict in drizzled/table/instance/base.cc
Text conflict in drizzled/table_ident.h
Text conflict in drizzled/table_proto_write.cc
Text conflict in drizzled/temporal_interval.h
Text conflict in drizzled/tztime.h
Text conflict in plugin/blackhole/ha_blackhole.cc
Text conflict in plugin/hex_functions/hex_functions.cc
Text conflict in plugin/information_schema_dictionary/domains.cc
Text conflict in plugin/innobase/handler/replication_dictionary.cc
Text conflict in plugin/md5/md5.cc
Text conflict in plugin/memory/ha_heap.cc
Text conflict in plugin/show_schema_proto/show_schema_proto.cc
Text conflict in plugin/signal_handler/signal_handler.cc
Text conflict in plugin/string_functions/functions.cc
Text conflict in plugin/string_functions/functions.h
Text conflict in plugin/tableprototester/tableprototester.cc
Text conflict in plugin/transaction_log/hexdump_transaction_message.cc
Text conflict in plugin/transaction_log/print_transaction_message.cc
Text conflict in plugin/utility_functions/functions.cc
To merge this branch: bzr merge lp:~mordred/drizzle/split-session-header
Reviewer Review Type Date Requested Status
Drizzle Developers Pending
Review via email: mp+49520@code.launchpad.net

Description of the change

Split up session.h into a few different files, cleaned up where things where including things and got rid of the bits of session.h that required files to be included in the middle of the file.

To post a comment you must log in.
Revision history for this message
Brian Aker (brianaker) wrote :

I just did this :)

We will need to merge it.

Unmerged revisions

2161. By Monty Taylor

Split apart session.h into smaller headers, which also removed the need for
us to have include statements in the middle of the file. While I was at it,
I converted daemon.c to c++.

2160. By Monty Taylor

Be consistent about include usage.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'drizzled/base.h'
--- drizzled/base.h 2011-01-11 22:30:08 +0000
+++ drizzled/base.h 2011-02-12 21:09:18 +0000
@@ -25,7 +25,7 @@
25 * @TODO Convert HA_XXX defines into enums and/or bitmaps25 * @TODO Convert HA_XXX defines into enums and/or bitmaps
26 */26 */
2727
28#include "definitions.h"28#include <drizzled/definitions.h>
2929
30#ifndef DRIZZLED_BASE_H30#ifndef DRIZZLED_BASE_H
31#define DRIZZLED_BASE_H31#define DRIZZLED_BASE_H
3232
=== modified file 'drizzled/common.h'
--- drizzled/common.h 2011-01-04 04:05:27 +0000
+++ drizzled/common.h 2011-02-12 21:09:18 +0000
@@ -25,7 +25,6 @@
25#define DRIZZLED_COMMON_H25#define DRIZZLED_COMMON_H
2626
27#include <unistd.h>27#include <unistd.h>
28#include <stdint.h>
29#include <drizzled/korr.h>28#include <drizzled/korr.h>
3029
31/*30/*
3231
=== added file 'drizzled/copy_info.h'
--- drizzled/copy_info.h 1970-01-01 00:00:00 +0000
+++ drizzled/copy_info.h 2011-02-12 21:09:18 +0000
@@ -0,0 +1,121 @@
1/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3 *
4 * Copyright (C) 2008 Sun Microsystems, Inc.
5 *
6 * 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 by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef DRIZZLED_COPY_INFO_H
21#define DRIZZLED_COPY_INFO_H
22
23
24namespace drizzled
25{
26
27namespace plugin
28{
29class Client;
30class Scheduler;
31class EventObserverList;
32}
33
34namespace message
35{
36class Transaction;
37class Statement;
38class Resultset;
39}
40
41namespace internal
42{
43struct st_my_thread_var;
44}
45
46namespace table
47{
48class Placeholder;
49}
50
51class Lex_input_stream;
52class user_var_entry;
53class CopyField;
54class Table_ident;
55
56class TableShareInstance;
57
58extern char internal_table_name[2];
59extern char empty_c_string[1];
60extern const char **errmesg;
61
62#define TC_HEURISTIC_RECOVER_COMMIT 1
63#define TC_HEURISTIC_RECOVER_ROLLBACK 2
64extern uint32_t tc_heuristic_recover;
65
66/**
67 @brief
68 Local storage for proto that are tmp table. This should be enlarged
69 to hande the entire table-share for a local table. Once Hash is done,
70 we should consider exchanging the map for it.
71*/
72typedef std::map <std::string, message::Table> ProtoCache;
73
74/**
75 The COPY_INFO structure is used by INSERT/REPLACE code.
76 The schema of the row counting by the INSERT/INSERT ... ON DUPLICATE KEY
77 UPDATE code:
78 If a row is inserted then the copied variable is incremented.
79 If a row is updated by the INSERT ... ON DUPLICATE KEY UPDATE and the
80 new data differs from the old one then the copied and the updated
81 variables are incremented.
82 The touched variable is incremented if a row was touched by the update part
83 of the INSERT ... ON DUPLICATE KEY UPDATE no matter whether the row
84 was actually changed or not.
85*/
86class CopyInfo
87{
88public:
89 ha_rows records; /**< Number of processed records */
90 ha_rows deleted; /**< Number of deleted records */
91 ha_rows updated; /**< Number of updated records */
92 ha_rows copied; /**< Number of copied records */
93 ha_rows error_count;
94 ha_rows touched; /* Number of touched records */
95 enum enum_duplicates handle_duplicates;
96 int escape_char, last_errno;
97 bool ignore;
98 /* for INSERT ... UPDATE */
99 List<Item> *update_fields;
100 List<Item> *update_values;
101 /* for VIEW ... WITH CHECK OPTION */
102
103 CopyInfo() :
104 records(0),
105 deleted(0),
106 updated(0),
107 copied(0),
108 error_count(0),
109 touched(0),
110 escape_char(0),
111 last_errno(0),
112 ignore(0),
113 update_fields(0),
114 update_values(0)
115 { }
116
117};
118
119} /* namespace drizzled */
120
121#endif /* DRIZZLED_COPY_INFO_H */
0122
=== renamed file 'drizzled/copy_info.h' => 'drizzled/copy_info.h.moved'
=== renamed file 'drizzled/daemon.c' => 'drizzled/daemon.cc'
--- drizzled/daemon.c 2011-02-02 02:49:45 +0000
+++ drizzled/daemon.cc 2011-02-12 21:09:18 +0000
@@ -45,6 +45,9 @@
45#include <unistd.h>45#include <unistd.h>
46#include <sys/select.h>46#include <sys/select.h>
4747
48namespace drizzled
49{
50
48int daemonize(int nochdir, int noclose, int wait_sigusr1);51int daemonize(int nochdir, int noclose, int wait_sigusr1);
49int daemon_is_ready(void);52int daemon_is_ready(void);
50void sigusr1_handler(int sig);53void sigusr1_handler(int sig);
@@ -136,3 +139,5 @@
136 }139 }
137 return (0);140 return (0);
138}141}
142
143} /* namespace drizzled */
139144
=== modified file 'drizzled/definitions.h'
--- drizzled/definitions.h 2011-01-24 05:33:52 +0000
+++ drizzled/definitions.h 2011-02-12 21:09:18 +0000
@@ -27,10 +27,7 @@
27#define DRIZZLED_DEFINITIONS_H27#define DRIZZLED_DEFINITIONS_H
2828
29#include <drizzled/enum.h>29#include <drizzled/enum.h>
3030#include <drizzled/common.h>
31#include <stdint.h>
32
33#include "common.h"
3431
35namespace drizzled32namespace drizzled
36{33{
3734
=== modified file 'drizzled/filesort.cc'
--- drizzled/filesort.cc 2011-02-12 21:09:14 +0000
+++ drizzled/filesort.cc 2011-02-12 21:09:18 +0000
@@ -47,6 +47,7 @@
47#include <drizzled/atomics.h>47#include <drizzled/atomics.h>
48#include <drizzled/global_buffer.h>48#include <drizzled/global_buffer.h>
4949
50#include <drizzled/sort_field.h>
5051
51using namespace std;52using namespace std;
5253
5354
=== modified file 'drizzled/function/get_user_var.cc'
--- drizzled/function/get_user_var.cc 2010-12-25 01:27:46 +0000
+++ drizzled/function/get_user_var.cc 2011-02-12 21:09:18 +0000
@@ -25,6 +25,7 @@
25#include <drizzled/item/null.h>25#include <drizzled/item/null.h>
26#include <drizzled/sql_parse.h>26#include <drizzled/sql_parse.h>
27#include <drizzled/session.h>27#include <drizzled/session.h>
28#include <drizzled/user_var_entry.h>
2829
29namespace drizzled30namespace drizzled
30{31{
3132
=== modified file 'drizzled/function/set_user_var.cc'
--- drizzled/function/set_user_var.cc 2010-12-25 01:27:46 +0000
+++ drizzled/function/set_user_var.cc 2011-02-12 21:09:18 +0000
@@ -23,6 +23,7 @@
23#include <drizzled/field/num.h>23#include <drizzled/field/num.h>
24#include <drizzled/session.h>24#include <drizzled/session.h>
25#include <drizzled/plugin/client.h>25#include <drizzled/plugin/client.h>
26#include <drizzled/user_var_entry.h>
2627
27namespace drizzled28namespace drizzled
28{29{
2930
=== modified file 'drizzled/function/user_var_as_out_param.cc'
--- drizzled/function/user_var_as_out_param.cc 2010-12-25 01:27:46 +0000
+++ drizzled/function/user_var_as_out_param.cc 2011-02-12 21:09:18 +0000
@@ -23,6 +23,7 @@
2323
24#include <drizzled/function/user_var_as_out_param.h>24#include <drizzled/function/user_var_as_out_param.h>
25#include <drizzled/session.h>25#include <drizzled/session.h>
26#include <drizzled/user_var_entry.h>
2627
27namespace drizzled28namespace drizzled
28{29{
2930
=== modified file 'drizzled/identifier/catalog.cc'
--- drizzled/identifier/catalog.cc 2011-02-12 21:09:14 +0000
+++ drizzled/identifier/catalog.cc 2011-02-12 21:09:18 +0000
@@ -24,6 +24,7 @@
2424
25#include <drizzled/identifier.h>25#include <drizzled/identifier.h>
26#include <drizzled/session.h>26#include <drizzled/session.h>
27#include <drizzled/current_session.h>
27#include <drizzled/internal/my_sys.h>28#include <drizzled/internal/my_sys.h>
2829
29#include <drizzled/util/tablename_to_filename.h>30#include <drizzled/util/tablename_to_filename.h>
3031
=== modified file 'drizzled/identifier/schema.cc'
--- drizzled/identifier/schema.cc 2011-02-12 21:09:14 +0000
+++ drizzled/identifier/schema.cc 2011-02-12 21:09:18 +0000
@@ -24,6 +24,7 @@
2424
25#include <drizzled/identifier.h>25#include <drizzled/identifier.h>
26#include <drizzled/session.h>26#include <drizzled/session.h>
27#include <drizzled/current_session.h>
27#include <drizzled/internal/my_sys.h>28#include <drizzled/internal/my_sys.h>
2829
29#include <drizzled/util/tablename_to_filename.h>30#include <drizzled/util/tablename_to_filename.h>
3031
=== modified file 'drizzled/include.am'
--- drizzled/include.am 2011-02-12 21:09:14 +0000
+++ drizzled/include.am 2011-02-12 21:09:18 +0000
@@ -64,8 +64,12 @@
64 drizzled/common.h \64 drizzled/common.h \
65 drizzled/comp_creator.h \65 drizzled/comp_creator.h \
66 drizzled/constrained_value.h \66 drizzled/constrained_value.h \
67<<<<<<< TREE
67 drizzled/copy_field.h \68 drizzled/copy_field.h \
68 drizzled/copy_info.h \69 drizzled/copy_info.h \
70=======
71 drizzled/copy_info.h \
72>>>>>>> MERGE-SOURCE
69 drizzled/create_field.h \73 drizzled/create_field.h \
70 drizzled/current_session.h \74 drizzled/current_session.h \
71 drizzled/cursor.h \75 drizzled/cursor.h \
@@ -406,6 +410,7 @@
406 drizzled/show.h \410 drizzled/show.h \
407 drizzled/show_type.h \411 drizzled/show_type.h \
408 drizzled/signal_handler.h \412 drizzled/signal_handler.h \
413 drizzled/sort_field.h \
409 drizzled/sql_base.h \414 drizzled/sql_base.h \
410 drizzled/sql_error.h \415 drizzled/sql_error.h \
411 drizzled/sql_lex.h \416 drizzled/sql_lex.h \
@@ -734,7 +739,7 @@
734 drizzled/locking/global.cc \739 drizzled/locking/global.cc \
735 drizzled/lookup_symbol.cc \740 drizzled/lookup_symbol.cc \
736 drizzled/main.cc \741 drizzled/main.cc \
737 drizzled/daemon.c \742 drizzled/daemon.cc \
738 drizzled/message.cc \743 drizzled/message.cc \
739 drizzled/message/cache.cc \744 drizzled/message/cache.cc \
740 drizzled/message/catalog.cc \745 drizzled/message/catalog.cc \
741746
=== modified file 'drizzled/item/subselect.cc'
--- drizzled/item/subselect.cc 2011-02-09 22:48:12 +0000
+++ drizzled/item/subselect.cc 2011-02-12 21:09:18 +0000
@@ -39,7 +39,14 @@
39#include <drizzled/item/ref_null_helper.h>39#include <drizzled/item/ref_null_helper.h>
40#include <drizzled/item/direct_ref.h>40#include <drizzled/item/direct_ref.h>
41#include <drizzled/join.h>41#include <drizzled/join.h>
42<<<<<<< TREE
42#include <drizzled/plugin/storage_engine.h>43#include <drizzled/plugin/storage_engine.h>
44=======
45#include <drizzled/select_singlerow_subselect.h>
46#include <drizzled/select_max_min_finder_subselect.h>
47#include <drizzled/select_exists_subselect.h>
48#include <drizzled/select_union.h>
49>>>>>>> MERGE-SOURCE
4350
44namespace drizzled51namespace drizzled
45{52{
4653
=== modified file 'drizzled/item/sum.cc'
--- drizzled/item/sum.cc 2011-02-12 21:09:14 +0000
+++ drizzled/item/sum.cc 2011-02-12 21:09:18 +0000
@@ -36,6 +36,8 @@
36#include <drizzled/field/int64.h>36#include <drizzled/field/int64.h>
37#include <drizzled/field/date.h>37#include <drizzled/field/date.h>
38#include <drizzled/field/datetime.h>38#include <drizzled/field/datetime.h>
39#include <drizzled/unique.h>
40
3941
40#include <drizzled/type/decimal.h>42#include <drizzled/type/decimal.h>
4143
4244
=== modified file 'drizzled/join.h'
--- drizzled/join.h 2011-02-12 21:09:14 +0000
+++ drizzled/join.h 2011-02-12 21:09:18 +0000
@@ -33,6 +33,7 @@
33#include <drizzled/sql_select.h>33#include <drizzled/sql_select.h>
34=======34=======
35#include <drizzled/sql_select.h>35#include <drizzled/sql_select.h>
36#include <drizzled/tmp_table_param.h>
36>>>>>>> MERGE-SOURCE37>>>>>>> MERGE-SOURCE
37#include <bitset>38#include <bitset>
3839
3940
=== modified file 'drizzled/lex_column.h'
--- drizzled/lex_column.h 2010-12-18 04:43:40 +0000
+++ drizzled/lex_column.h 2011-02-12 21:09:18 +0000
@@ -21,6 +21,8 @@
21#ifndef DRIZZLED_LEX_COLUMN_H21#ifndef DRIZZLED_LEX_COLUMN_H
22#define DRIZZLED_LEX_COLUMN_H22#define DRIZZLED_LEX_COLUMN_H
2323
24#include <drizzled/copy_info.h>
25
24namespace drizzled26namespace drizzled
25{27{
2628
2729
=== modified file 'drizzled/main.cc'
--- drizzled/main.cc 2011-02-12 21:09:14 +0000
+++ drizzled/main.cc 2011-02-12 21:09:18 +0000
@@ -95,8 +95,11 @@
95#include <drizzled/util/backtrace.h>95#include <drizzled/util/backtrace.h>
96>>>>>>> MERGE-SOURCE96>>>>>>> MERGE-SOURCE
9797
98extern "C" int daemonize(int nochdir, int noclose, int wait_sigusr1);98namespace drizzled
99extern "C" int daemon_is_ready(void);99{
100extern int daemonize(int nochdir, int noclose, int wait_sigusr1);
101extern int daemon_is_ready(void);
102}
100103
101using namespace drizzled;104using namespace drizzled;
102using namespace std;105using namespace std;
@@ -114,7 +117,7 @@
114*/117*/
115static void my_message_sql(drizzled::error_t error, const char *str, myf MyFlags)118static void my_message_sql(drizzled::error_t error, const char *str, myf MyFlags)
116{119{
117 Session *session;120 drizzled::Session *session;
118 /*121 /*
119 Put here following assertion when situation with EE_* error codes122 Put here following assertion when situation with EE_* error codes
120 will be fixed123 will be fixed
@@ -373,11 +376,11 @@
373 ReplicationServices &replication_services= ReplicationServices::singleton();376 ReplicationServices &replication_services= ReplicationServices::singleton();
374 (void) replication_services.evaluateRegisteredPlugins();377 (void) replication_services.evaluateRegisteredPlugins();
375378
376 if (plugin::Listen::setup())379 if (drizzled::plugin::Listen::setup())
377 unireg_abort(1);380 unireg_abort(1);
378381
379 assert(plugin::num_trx_monitored_objects > 0);382 assert(drizzled::plugin::num_trx_monitored_objects > 0);
380 if (drizzle_rm_tmp_tables() || my_tz_init((Session *)0, default_tz_name))383 if (drizzle_rm_tmp_tables() || my_tz_init(NULL, default_tz_name))
381 {384 {
382 abort_loop= true;385 abort_loop= true;
383 select_thread_in_use=0;386 select_thread_in_use=0;
@@ -396,9 +399,9 @@
396399
397 /* Send server startup event */400 /* Send server startup event */
398 {401 {
399 Session::shared_ptr session;402 drizzled::Session::shared_ptr session;
400403
401 if ((session= Session::make_shared(plugin::Listen::getNullClient(), catalog::local())))404 if ((session= drizzled::Session::make_shared(drizzled::plugin::Listen::getNullClient(), catalog::local())))
402 {405 {
403 currentSession().release();406 currentSession().release();
404 currentSession().reset(session.get());407 currentSession().reset(session.get());
@@ -418,11 +421,11 @@
418 accepted. The listen.getClient() method will return NULL when the server421 accepted. The listen.getClient() method will return NULL when the server
419 should be shutdown.422 should be shutdown.
420 */423 */
421 plugin::Client *client;424 drizzled::plugin::Client *client;
422 while ((client= plugin::Listen::getClient()) != NULL)425 while ((client= drizzled::plugin::Listen::getClient()) != NULL)
423 {426 {
424 Session::shared_ptr session;427 drizzled::Session::shared_ptr session;
425 session= Session::make_shared(client, client->catalog());428 session= drizzled::Session::make_shared(client, client->catalog());
426429
427 if (not session)430 if (not session)
428 {431 {
@@ -431,15 +434,15 @@
431 }434 }
432435
433 /* If we error on creation we drop the connection and delete the session. */436 /* If we error on creation we drop the connection and delete the session. */
434 if (Session::schedule(session))437 if (drizzled::Session::schedule(session))
435 Session::unlink(session);438 drizzled::Session::unlink(session);
436 }439 }
437440
438 /* Send server shutdown event */441 /* Send server shutdown event */
439 {442 {
440 Session::shared_ptr session;443 drizzled::Session::shared_ptr session;
441444
442 if ((session= Session::make_shared(plugin::Listen::getNullClient(), catalog::local())))445 if ((session= drizzled::Session::make_shared(drizzled::plugin::Listen::getNullClient(), catalog::local())))
443 {446 {
444 currentSession().release();447 currentSession().release();
445 currentSession().reset(session.get());448 currentSession().reset(session.get());
446449
=== modified file 'drizzled/module/loader.cc'
--- drizzled/module/loader.cc 2011-02-12 21:09:14 +0000
+++ drizzled/module/loader.cc 2011-02-12 21:09:18 +0000
@@ -519,7 +519,6 @@
519 session->variables.storage_engine= NULL;519 session->variables.storage_engine= NULL;
520520
521 /* we are going to allocate these lazily */521 /* we are going to allocate these lazily */
522 session->variables.dynamic_variables_version= 0;
523 session->variables.dynamic_variables_size= 0;522 session->variables.dynamic_variables_size= 0;
524 session->variables.dynamic_variables_ptr= 0;523 session->variables.dynamic_variables_ptr= 0;
525524
@@ -549,7 +548,6 @@
549 free(vars->dynamic_variables_ptr);548 free(vars->dynamic_variables_ptr);
550 vars->dynamic_variables_ptr= NULL;549 vars->dynamic_variables_ptr= NULL;
551 vars->dynamic_variables_size= 0;550 vars->dynamic_variables_size= 0;
552 vars->dynamic_variables_version= 0;
553}551}
554552
555553
556554
=== modified file 'drizzled/optimizer/quick_index_merge_select.cc'
--- drizzled/optimizer/quick_index_merge_select.cc 2011-02-12 21:09:14 +0000
+++ drizzled/optimizer/quick_index_merge_select.cc 2011-02-12 21:09:18 +0000
@@ -24,6 +24,7 @@
24#include <drizzled/optimizer/quick_range_select.h>24#include <drizzled/optimizer/quick_range_select.h>
25#include <drizzled/optimizer/quick_index_merge_select.h>25#include <drizzled/optimizer/quick_index_merge_select.h>
26#include <drizzled/internal/m_string.h>26#include <drizzled/internal/m_string.h>
27#include <drizzled/unique.h>
2728
28#include <vector>29#include <vector>
2930
3031
=== modified file 'drizzled/optimizer/range.cc'
--- drizzled/optimizer/range.cc 2011-02-12 21:09:14 +0000
+++ drizzled/optimizer/range.cc 2011-02-12 21:09:18 +0000
@@ -161,6 +161,7 @@
161#include <drizzled/records.h>161#include <drizzled/records.h>
162#include <drizzled/internal/my_sys.h>162#include <drizzled/internal/my_sys.h>
163#include <drizzled/internal/iocache.h>163#include <drizzled/internal/iocache.h>
164#include <drizzled/unique.h>
164>>>>>>> MERGE-SOURCE165>>>>>>> MERGE-SOURCE
165166
166#include <drizzled/temporal.h> /* Needed in get_mm_leaf() for timestamp -> datetime comparisons */167#include <drizzled/temporal.h> /* Needed in get_mm_leaf() for timestamp -> datetime comparisons */
167168
=== modified file 'drizzled/select_create.h'
--- drizzled/select_create.h 2011-01-17 06:41:24 +0000
+++ drizzled/select_create.h 2011-02-12 21:09:18 +0000
@@ -20,6 +20,8 @@
20#ifndef DRIZZLED_SELECT_CREATE_H20#ifndef DRIZZLED_SELECT_CREATE_H
21#define DRIZZLED_SELECT_CREATE_H21#define DRIZZLED_SELECT_CREATE_H
2222
23#include <drizzled/select_insert.h>
24
23namespace drizzled25namespace drizzled
24{26{
2527
2628
=== modified file 'drizzled/select_dump.h'
--- drizzled/select_dump.h 2010-12-18 04:43:40 +0000
+++ drizzled/select_dump.h 2011-02-12 21:09:18 +0000
@@ -21,6 +21,8 @@
21#ifndef DRIZZLED_SELECT_DUMP_H21#ifndef DRIZZLED_SELECT_DUMP_H
22#define DRIZZLED_SELECT_DUMP_H22#define DRIZZLED_SELECT_DUMP_H
2323
24#include <drizzled/select_to_file.h>
25
24namespace drizzled26namespace drizzled
25{27{
2628
2729
=== modified file 'drizzled/select_dumpvar.h'
--- drizzled/select_dumpvar.h 2011-02-12 21:09:14 +0000
+++ drizzled/select_dumpvar.h 2011-02-12 21:09:18 +0000
@@ -22,6 +22,7 @@
2222
23#include <drizzled/error.h>23#include <drizzled/error.h>
24#include <drizzled/function/set_user_var.h>24#include <drizzled/function/set_user_var.h>
25#include <drizzled/var.h>
2526
26#include <vector>27#include <vector>
2728
2829
=== modified file 'drizzled/select_singlerow_subselect.h'
--- drizzled/select_singlerow_subselect.h 2010-12-18 04:43:40 +0000
+++ drizzled/select_singlerow_subselect.h 2011-02-12 21:09:18 +0000
@@ -21,6 +21,8 @@
21#ifndef DRIZZLED_SELECT_SINGLEROW_SUBSELECT_H21#ifndef DRIZZLED_SELECT_SINGLEROW_SUBSELECT_H
22#define DRIZZLED_SELECT_SINGLEROW_SUBSELECT_H22#define DRIZZLED_SELECT_SINGLEROW_SUBSELECT_H
2323
24#include <drizzled/select_subselect.h>
25
24namespace drizzled26namespace drizzled
25{27{
2628
2729
=== modified file 'drizzled/session.cc'
--- drizzled/session.cc 2011-02-12 21:09:14 +0000
+++ drizzled/session.cc 2011-02-12 21:09:18 +0000
@@ -117,6 +117,23 @@
117117
118#include <drizzled/util/backtrace.h>118#include <drizzled/util/backtrace.h>
119119
120#include <drizzled/table_ident.h>
121#include <drizzled/user_var_entry.h>
122#include <drizzled/unique.h>
123#include <drizzled/var.h>
124
125#include <drizzled/select_to_file.h>
126#include <drizzled/select_export.h>
127#include <drizzled/select_dump.h>
128#include <drizzled/select_insert.h>
129#include <drizzled/select_create.h>
130#include <drizzled/tmp_table_param.h>
131#include <drizzled/select_union.h>
132#include <drizzled/select_subselect.h>
133#include <drizzled/select_singlerow_subselect.h>
134#include <drizzled/select_max_min_finder_subselect.h>
135#include <drizzled/select_exists_subselect.h>
136
120using namespace std;137using namespace std;
121138
122namespace fs=boost::filesystem;139namespace fs=boost::filesystem;
123140
=== modified file 'drizzled/session.h'
--- drizzled/session.h 2011-02-12 21:09:14 +0000
+++ drizzled/session.h 2011-02-12 21:09:18 +0000
@@ -104,9 +104,6 @@
104#include "drizzled/sql_lex.h"104#include "drizzled/sql_lex.h"
105105
106#include "drizzled/visibility.h"106#include "drizzled/visibility.h"
107=======
108#include <drizzled/visibility.h>
109>>>>>>> MERGE-SOURCE
110107
111#define MIN_HANDSHAKE_SIZE 6108#define MIN_HANDSHAKE_SIZE 6
112109
@@ -146,22 +143,45 @@
146#define TC_HEURISTIC_RECOVER_ROLLBACK 2143#define TC_HEURISTIC_RECOVER_ROLLBACK 2
147extern uint32_t tc_heuristic_recover;144extern uint32_t tc_heuristic_recover;
148145
146=======
147#include <drizzled/visibility.h>
148
149#include <drizzled/lex_column.h>
150#include <drizzled/sql_lex.h>
151
152namespace drizzled
153{
154
155>>>>>>> MERGE-SOURCE
149class select_result;156class select_result;
150class Time_zone;157class Join;
151158
152#define Session_SENTRY_MAGIC 0xfeedd1ff159#define Session_SENTRY_MAGIC 0xfeedd1ff
153#define Session_SENTRY_GONE 0xdeadbeef160#define Session_SENTRY_GONE 0xdeadbeef
161<<<<<<< TREE
154162
155extern DRIZZLED_API struct drizzle_system_variables global_system_variables;163extern DRIZZLED_API struct drizzle_system_variables global_system_variables;
156164
157<<<<<<< TREE
158=======165=======
159} /* namespace drizzled */166#define ESCAPE_CHARS "ntrb0ZN" // keep synchronous with READ_INFO::unescape
160167
161#include <drizzled/sql_lex.h>168/* Bits in sql_command_flags */
162169
163namespace drizzled170enum sql_command_flag_bits
164{171{
172 CF_BIT_CHANGES_DATA,
173 CF_BIT_HAS_ROW_COUNT,
174 CF_BIT_STATUS_COMMAND,
175 CF_BIT_SHOW_TABLE_COMMAND,
176 CF_BIT_WRITE_LOGS_COMMAND,
177 CF_BIT_SIZE
178};
179
180static const std::bitset<CF_BIT_SIZE> CF_CHANGES_DATA(1 << CF_BIT_CHANGES_DATA);
181static const std::bitset<CF_BIT_SIZE> CF_HAS_ROW_COUNT(1 << CF_BIT_HAS_ROW_COUNT);
182static const std::bitset<CF_BIT_SIZE> CF_STATUS_COMMAND(1 << CF_BIT_STATUS_COMMAND);
183static const std::bitset<CF_BIT_SIZE> CF_SHOW_TABLE_COMMAND(1 << CF_BIT_SHOW_TABLE_COMMAND);
184static const std::bitset<CF_BIT_SIZE> CF_WRITE_LOGS_COMMAND(1 << CF_BIT_WRITE_LOGS_COMMAND);
165185
166/**186/**
167 Storage engine specific thread local data.187 Storage engine specific thread local data.
@@ -1756,85 +1776,6 @@
1756 struct rusage usage;1776 struct rusage usage;
1757};1777};
17581778
1759class Join;
1760
1761#define ESCAPE_CHARS "ntrb0ZN" // keep synchronous with READ_INFO::unescape
1762
1763} /* namespace drizzled */
1764
1765/** @TODO why is this in the middle of the file */
1766#include <drizzled/select_to_file.h>
1767#include <drizzled/select_export.h>
1768#include <drizzled/select_dump.h>
1769#include <drizzled/select_insert.h>
1770#include <drizzled/select_create.h>
1771#include <drizzled/tmp_table_param.h>
1772#include <drizzled/select_union.h>
1773#include <drizzled/select_subselect.h>
1774#include <drizzled/select_singlerow_subselect.h>
1775#include <drizzled/select_max_min_finder_subselect.h>
1776#include <drizzled/select_exists_subselect.h>
1777
1778namespace drizzled
1779{
1780
1781/**
1782 * A structure used to describe sort information
1783 * for a field or item used in ORDER BY.
1784 */
1785class SortField
1786{
1787public:
1788 Field *field; /**< Field to sort */
1789 Item *item; /**< Item if not sorting fields */
1790 size_t length; /**< Length of sort field */
1791 uint32_t suffix_length; /**< Length suffix (0-4) */
1792 Item_result result_type; /**< Type of item */
1793 bool reverse; /**< if descending sort */
1794 bool need_strxnfrm; /**< If we have to use strxnfrm() */
1795
1796 SortField() :
1797 field(0),
1798 item(0),
1799 length(0),
1800 suffix_length(0),
1801 result_type(STRING_RESULT),
1802 reverse(0),
1803 need_strxnfrm(0)
1804 { }
1805
1806};
1807
1808} /* namespace drizzled */
1809
1810/** @TODO why is this in the middle of the file */
1811
1812#include <drizzled/table_ident.h>
1813#include <drizzled/user_var_entry.h>
1814#include <drizzled/unique.h>
1815#include <drizzled/var.h>
1816#include <drizzled/select_dumpvar.h>
1817
1818namespace drizzled
1819{
1820
1821/* Bits in sql_command_flags */
1822
1823enum sql_command_flag_bits
1824{
1825 CF_BIT_CHANGES_DATA,
1826 CF_BIT_HAS_ROW_COUNT,
1827 CF_BIT_STATUS_COMMAND,
1828 CF_BIT_SHOW_TABLE_COMMAND,
1829 CF_BIT_WRITE_LOGS_COMMAND,
1830 CF_BIT_SIZE
1831};
1832
1833static const std::bitset<CF_BIT_SIZE> CF_CHANGES_DATA(1 << CF_BIT_CHANGES_DATA);
1834static const std::bitset<CF_BIT_SIZE> CF_HAS_ROW_COUNT(1 << CF_BIT_HAS_ROW_COUNT);
1835static const std::bitset<CF_BIT_SIZE> CF_STATUS_COMMAND(1 << CF_BIT_STATUS_COMMAND);
1836static const std::bitset<CF_BIT_SIZE> CF_SHOW_TABLE_COMMAND(1 << CF_BIT_SHOW_TABLE_COMMAND);
1837static const std::bitset<CF_BIT_SIZE> CF_WRITE_LOGS_COMMAND(1 << CF_BIT_WRITE_LOGS_COMMAND);
18381779
1839namespace display {1780namespace display {
1840const std::string &type(drizzled::Session::global_read_lock_t type);1781const std::string &type(drizzled::Session::global_read_lock_t type);
18411782
=== modified file 'drizzled/set_var.cc'
--- drizzled/set_var.cc 2011-02-12 21:09:14 +0000
+++ drizzled/set_var.cc 2011-02-12 21:09:18 +0000
@@ -27,6 +27,8 @@
27#include <drizzled/item/string.h>27#include <drizzled/item/string.h>
28#include <drizzled/sql_list.h>28#include <drizzled/sql_list.h>
2929
30#include <drizzled/function/set_user_var.h>
31
30using namespace std;32using namespace std;
3133
32namespace drizzled34namespace drizzled
3335
=== modified file 'drizzled/set_var.h'
--- drizzled/set_var.h 2011-02-12 21:09:14 +0000
+++ drizzled/set_var.h 2011-02-12 21:09:18 +0000
@@ -37,7 +37,6 @@
37class sys_var;37class sys_var;
38class Item;38class Item;
39class Item_func_set_user_var;39class Item_func_set_user_var;
40class Time_zone;
41typedef struct my_locale_st MY_LOCALE;40typedef struct my_locale_st MY_LOCALE;
42typedef struct charset_info_st CHARSET_INFO;41typedef struct charset_info_st CHARSET_INFO;
4342
4443
=== modified file 'drizzled/show.cc'
--- drizzled/show.cc 2011-02-12 21:09:14 +0000
+++ drizzled/show.cc 2011-02-12 21:09:18 +0000
@@ -75,6 +75,8 @@
75#include <vector>75#include <vector>
76#include <algorithm>76#include <algorithm>
7777
78#include <drizzled/table_ident.h>
79
78using namespace std;80using namespace std;
7981
80namespace drizzled82namespace drizzled
8183
=== added file 'drizzled/sort_field.h'
--- drizzled/sort_field.h 1970-01-01 00:00:00 +0000
+++ drizzled/sort_field.h 2011-02-12 21:09:18 +0000
@@ -0,0 +1,70 @@
1/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3 *
4 * Copyright (C) 2008 Sun Microsystems, Inc.
5 *
6 * 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 by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20
21
22#ifndef DRIZZLED_SORT_FIELD_H
23#define DRIZZLED_SORT_FIELD_H
24
25#include <drizzled/session.h>
26#include <drizzled/select_to_file.h>
27#include <drizzled/select_export.h>
28#include <drizzled/select_dump.h>
29#include <drizzled/select_insert.h>
30#include <drizzled/select_create.h>
31#include <drizzled/tmp_table_param.h>
32#include <drizzled/select_union.h>
33#include <drizzled/select_subselect.h>
34#include <drizzled/select_singlerow_subselect.h>
35#include <drizzled/select_max_min_finder_subselect.h>
36#include <drizzled/select_exists_subselect.h>
37
38namespace drizzled
39{
40
41/**
42 * A structure used to describe sort information
43 * for a field or item used in ORDER BY.
44 */
45class SortField
46{
47public:
48 Field *field; /**< Field to sort */
49 Item *item; /**< Item if not sorting fields */
50 size_t length; /**< Length of sort field */
51 uint32_t suffix_length; /**< Length suffix (0-4) */
52 Item_result result_type; /**< Type of item */
53 bool reverse; /**< if descending sort */
54 bool need_strxnfrm; /**< If we have to use strxnfrm() */
55
56 SortField() :
57 field(0),
58 item(0),
59 length(0),
60 suffix_length(0),
61 result_type(STRING_RESULT),
62 reverse(0),
63 need_strxnfrm(0)
64 { }
65
66};
67
68} /* namespace drizzled */
69
70#endif /* DRIZZLED_SORT_FIELD_H */
071
=== modified file 'drizzled/sql_derived.cc'
--- drizzled/sql_derived.cc 2011-02-12 21:09:14 +0000
+++ drizzled/sql_derived.cc 2011-02-12 21:09:18 +0000
@@ -19,6 +19,7 @@
19*/19*/
20#include "config.h"20#include "config.h"
21#include <drizzled/sql_select.h>21#include <drizzled/sql_select.h>
22#include <drizzled/select_union.h>
2223
23namespace drizzled24namespace drizzled
24{25{
2526
=== modified file 'drizzled/sql_insert.cc'
--- drizzled/sql_insert.cc 2011-02-12 21:09:14 +0000
+++ drizzled/sql_insert.cc 2011-02-12 21:09:18 +0000
@@ -33,6 +33,8 @@
33#include <drizzled/plugin/transactional_storage_engine.h>33#include <drizzled/plugin/transactional_storage_engine.h>
3434
35#include <drizzled/table/shell.h>35#include <drizzled/table/shell.h>
36#include <drizzled/select_insert.h>
37#include <drizzled/select_create.h>
3638
37namespace drizzled39namespace drizzled
38{40{
3941
=== modified file 'drizzled/sql_lex.h'
--- drizzled/sql_lex.h 2011-02-12 21:09:14 +0000
+++ drizzled/sql_lex.h 2011-02-12 21:09:18 +0000
@@ -37,6 +37,7 @@
37#include <drizzled/index_hint.h>37#include <drizzled/index_hint.h>
38#include <drizzled/statement.h>38#include <drizzled/statement.h>
39#include <drizzled/optimizer/explain_plan.h>39#include <drizzled/optimizer/explain_plan.h>
40#include <drizzled/system_variables.h>
4041
41#include <bitset>42#include <bitset>
42#include <string>43#include <string>
4344
=== modified file 'drizzled/sql_parse.cc'
--- drizzled/sql_parse.cc 2011-02-12 21:09:14 +0000
+++ drizzled/sql_parse.cc 2011-02-12 21:09:18 +0000
@@ -65,6 +65,7 @@
65#include <algorithm>65#include <algorithm>
66#include <boost/date_time.hpp>66#include <boost/date_time.hpp>
67#include <drizzled/internal/my_sys.h>67#include <drizzled/internal/my_sys.h>
68#include <drizzled/table_ident.h>
6869
69using namespace std;70using namespace std;
7071
7172
=== modified file 'drizzled/sql_select.cc'
--- drizzled/sql_select.cc 2011-02-12 21:09:14 +0000
+++ drizzled/sql_select.cc 2011-02-12 21:09:18 +0000
@@ -100,6 +100,7 @@
100#include <drizzled/optimizer/quick_ror_intersect_select.h>100#include <drizzled/optimizer/quick_ror_intersect_select.h>
101101
102#include <drizzled/filesort.h>102#include <drizzled/filesort.h>
103#include <drizzled/sort_field.h>
103>>>>>>> MERGE-SOURCE104>>>>>>> MERGE-SOURCE
104105
105using namespace std;106using namespace std;
106107
=== modified file 'drizzled/sql_union.cc'
--- drizzled/sql_union.cc 2010-12-24 07:15:43 +0000
+++ drizzled/sql_union.cc 2011-02-12 21:09:18 +0000
@@ -23,6 +23,7 @@
23#include <drizzled/item/type_holder.h>23#include <drizzled/item/type_holder.h>
24#include <drizzled/sql_base.h>24#include <drizzled/sql_base.h>
25#include <drizzled/sql_union.h>25#include <drizzled/sql_union.h>
26#include <drizzled/select_union.h>
2627
27namespace drizzled28namespace drizzled
28{29{
2930
=== modified file 'drizzled/sql_yacc.yy'
--- drizzled/sql_yacc.yy 2011-02-12 21:09:14 +0000
+++ drizzled/sql_yacc.yy 2011-02-12 21:09:18 +0000
@@ -40,6 +40,12 @@
40#include "config.h"40#include "config.h"
41#include <cstdio>41#include <cstdio>
42#include <drizzled/parser.h>42#include <drizzled/parser.h>
43#include <drizzled/table_ident.h>
44#include <drizzled/function/set_user_var.h>
45#include <drizzled/select_dumpvar.h>
46#include <drizzled/select_dump.h>
47#include <drizzled/select_export.h>
48#include <drizzled/select_result.h>
4349
44int yylex(void *yylval, void *yysession);50int yylex(void *yylval, void *yysession);
4551
4652
=== modified file 'drizzled/statement/create_table.cc'
--- drizzled/statement/create_table.cc 2011-02-09 22:48:12 +0000
+++ drizzled/statement/create_table.cc 2011-02-12 21:09:18 +0000
@@ -25,7 +25,12 @@
25#include <drizzled/statement/create_table.h>25#include <drizzled/statement/create_table.h>
26#include <drizzled/message.h>26#include <drizzled/message.h>
27#include <drizzled/identifier.h>27#include <drizzled/identifier.h>
28<<<<<<< TREE
28#include <drizzled/plugin/storage_engine.h>29#include <drizzled/plugin/storage_engine.h>
30=======
31#include <drizzled/table_ident.h>
32#include <drizzled/select_create.h>
33>>>>>>> MERGE-SOURCE
2934
30#include <iostream>35#include <iostream>
3136
3237
=== modified file 'drizzled/statement/insert_select.cc'
--- drizzled/statement/insert_select.cc 2011-01-22 07:05:32 +0000
+++ drizzled/statement/insert_select.cc 2011-02-12 21:09:18 +0000
@@ -24,6 +24,7 @@
24#include <drizzled/session.h>24#include <drizzled/session.h>
25#include <drizzled/probes.h>25#include <drizzled/probes.h>
26#include <drizzled/statement/insert_select.h>26#include <drizzled/statement/insert_select.h>
27#include <drizzled/select_insert.h>
2728
28namespace drizzled29namespace drizzled
29{30{
3031
=== modified file 'drizzled/statement/replace_select.cc'
--- drizzled/statement/replace_select.cc 2011-01-22 07:05:32 +0000
+++ drizzled/statement/replace_select.cc 2011-02-12 21:09:18 +0000
@@ -23,6 +23,8 @@
23#include <drizzled/lock.h>23#include <drizzled/lock.h>
24#include <drizzled/session.h>24#include <drizzled/session.h>
25#include <drizzled/statement/replace_select.h>25#include <drizzled/statement/replace_select.h>
26#include <drizzled/select_insert.h>
27#include <drizzled/select_result.h>
2628
27namespace drizzled29namespace drizzled
28{30{
2931
=== modified file 'drizzled/sys_var.h'
--- drizzled/sys_var.h 2011-02-12 21:09:14 +0000
+++ drizzled/sys_var.h 2011-02-12 21:09:18 +0000
@@ -26,6 +26,7 @@
26#include <drizzled/constrained_value.h>26#include <drizzled/constrained_value.h>
27#include <drizzled/set_var.h>27#include <drizzled/set_var.h>
28#include <drizzled/show_type.h>28#include <drizzled/show_type.h>
29#include <drizzled/typelib.h>
29#include <drizzled/item_result.h>30#include <drizzled/item_result.h>
30#include <drizzled/base.h>31#include <drizzled/base.h>
31#include <drizzled/global_charset_info.h>32#include <drizzled/global_charset_info.h>
@@ -37,7 +38,6 @@
37{38{
3839
39class sys_var;40class sys_var;
40class Time_zone;
41typedef struct my_locale_st MY_LOCALE;41typedef struct my_locale_st MY_LOCALE;
42typedef struct st_typelib TYPELIB;42typedef struct st_typelib TYPELIB;
4343
4444
=== added file 'drizzled/system_variables.h'
--- drizzled/system_variables.h 1970-01-01 00:00:00 +0000
+++ drizzled/system_variables.h 2011-02-12 21:09:18 +0000
@@ -0,0 +1,115 @@
1/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2 * vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3 *
4 * Copyright (C) 2008 Sun Microsystems, Inc.
5 *
6 * 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 by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
20#ifndef DRIZZLED_SYSTEM_VARIABLES_H
21#define DRIZZLED_SYSTEM_VARIABLES_H
22
23#include <drizzled/base.h>
24#include <drizzled/visibility.h>
25
26namespace drizzled
27{
28
29namespace plugin
30{
31class StorageEngine;
32}
33
34class Time_zone;
35typedef struct charset_info_st CHARSET_INFO;
36typedef struct my_locale_st MY_LOCALE;
37
38struct drizzle_system_variables
39{
40 drizzle_system_variables()
41 {}
42 /*
43 How dynamically allocated system variables are handled:
44
45 The global_system_variables and max_system_variables are "authoritative"
46 They both should have the same 'version' and 'size'.
47 When attempting to access a dynamic variable, if the session version
48 is out of date, then the session version is updated and realloced if
49 neccessary and bytes copied from global to make up for missing data.
50 */
51 char * dynamic_variables_ptr;
52 uint32_t dynamic_variables_head; /* largest valid variable offset */
53 uint32_t dynamic_variables_size; /* how many bytes are in use */
54
55 uint64_t myisam_max_extra_sort_file_size;
56 uint64_t max_heap_table_size;
57 uint64_t tmp_table_size;
58 ha_rows select_limit;
59 ha_rows max_join_size;
60 uint64_t auto_increment_increment;
61 uint64_t auto_increment_offset;
62 uint64_t bulk_insert_buff_size;
63 uint64_t join_buff_size;
64 uint32_t max_allowed_packet;
65 uint64_t max_error_count;
66 uint64_t max_length_for_sort_data;
67 size_t max_sort_length;
68 uint64_t min_examined_row_limit;
69 bool optimizer_prune_level;
70 bool log_warnings;
71
72 uint32_t optimizer_search_depth;
73 uint32_t div_precincrement;
74 uint64_t preload_buff_size;
75 uint32_t read_buff_size;
76 uint32_t read_rnd_buff_size;
77 bool replicate_query;
78 size_t sortbuff_size;
79 uint32_t thread_handling;
80 uint32_t tx_isolation;
81 size_t transaction_message_threshold;
82 uint32_t completion_type;
83 /* Determines which non-standard SQL behaviour should be enabled */
84 uint32_t sql_mode;
85 uint64_t max_seeks_for_key;
86 size_t range_alloc_block_size;
87 uint32_t query_alloc_block_size;
88 uint32_t query_prealloc_size;
89 uint64_t group_concat_max_len;
90 uint64_t pseudo_thread_id;
91
92 plugin::StorageEngine *storage_engine;
93
94 /* Only charset part of these variables is sensible */
95 const CHARSET_INFO *character_set_filesystem;
96
97 /* Both charset and collation parts of these variables are important */
98 const CHARSET_INFO *collation_server;
99
100 inline const CHARSET_INFO *getCollation(void)
101 {
102 return collation_server;
103 }
104
105 /* Locale Support */
106 MY_LOCALE *lc_time_names;
107
108 Time_zone *time_zone;
109};
110
111extern DRIZZLED_API struct drizzle_system_variables global_system_variables;
112
113} /* namespace drizzled */
114
115#endif /* DRIZZLED_SYSTEM_VARIABLES_H */
0116
=== renamed file 'drizzled/system_variables.h' => 'drizzled/system_variables.h.moved'
=== modified file 'drizzled/unique.cc'
--- drizzled/unique.cc 2011-02-12 21:09:14 +0000
+++ drizzled/unique.cc 2011-02-12 21:09:18 +0000
@@ -36,6 +36,7 @@
36#include <drizzled/session.h>36#include <drizzled/session.h>
37#include <drizzled/sql_list.h>37#include <drizzled/sql_list.h>
38#include <drizzled/internal/iocache.h>38#include <drizzled/internal/iocache.h>
39#include <drizzled/unique.h>
3940
40#if defined(CMATH_NAMESPACE)41#if defined(CMATH_NAMESPACE)
41using namespace CMATH_NAMESPACE;42using namespace CMATH_NAMESPACE;
4243
=== modified file 'drizzled/user_var_entry.cc'
--- drizzled/user_var_entry.cc 2011-02-12 21:09:14 +0000
+++ drizzled/user_var_entry.cc 2011-02-12 21:09:18 +0000
@@ -20,6 +20,7 @@
20#include "config.h"20#include "config.h"
21#include <drizzled/session.h>21#include <drizzled/session.h>
22#include <drizzled/internal/m_string.h>22#include <drizzled/internal/m_string.h>
23#include <drizzled/user_var_entry.h>
2324
24namespace drizzled25namespace drizzled
25{26{
2627
=== modified file 'drizzled/user_var_entry.h'
--- drizzled/user_var_entry.h 2011-02-12 21:09:14 +0000
+++ drizzled/user_var_entry.h 2011-02-12 21:09:18 +0000
@@ -22,10 +22,19 @@
22#define DRIZZLED_USER_VAR_ENTRY_H22#define DRIZZLED_USER_VAR_ENTRY_H
2323
24#include <drizzled/query_id.h>24#include <drizzled/query_id.h>
25#include <drizzled/lex_string.h>
26#include <drizzled/item_result.h>
27#include <drizzled/sql_string.h>
28#include <drizzled/dtcollation.h>
2529
26namespace drizzled30namespace drizzled
27{31{
2832
33namespace type
34{
35class Decimal;
36}
37
29// this is needed for user_vars hash38// this is needed for user_vars hash
30class user_var_entry39class user_var_entry
31{40{
@@ -54,7 +63,7 @@
54 }63 }
55 LEX_STRING name;64 LEX_STRING name;
56 char *value;65 char *value;
57 ulong length;66 unsigned long length;
58 size_t size;67 size_t size;
59 query_id_t update_query_id;68 query_id_t update_query_id;
60 query_id_t used_query_id;69 query_id_t used_query_id;
6170
=== modified file 'plugin/logging_stats/user_commands.cc'
--- plugin/logging_stats/user_commands.cc 2010-12-18 04:43:40 +0000
+++ plugin/logging_stats/user_commands.cc 2011-02-12 21:09:18 +0000
@@ -27,6 +27,7 @@
27 * THE POSSIBILITY OF SUCH DAMAGE.27 * THE POSSIBILITY OF SUCH DAMAGE.
28 */28 */
2929
30#include "config.h"
30#include "user_commands.h"31#include "user_commands.h"
3132
32using namespace drizzled;33using namespace drizzled;
3334
=== modified file 'plugin/mysql_protocol/mysql_protocol.cc'
--- plugin/mysql_protocol/mysql_protocol.cc 2011-02-12 21:09:14 +0000
+++ plugin/mysql_protocol/mysql_protocol.cc 2011-02-12 21:09:18 +0000
@@ -35,7 +35,6 @@
3535
36#include <drizzled/identifier.h>36#include <drizzled/identifier.h>
3737
38#define PROTOCOL_VERSION 10
3938
40namespace po= boost::program_options;39namespace po= boost::program_options;
41using namespace std;40using namespace std;
@@ -44,6 +43,9 @@
44namespace drizzle_plugin43namespace drizzle_plugin
45{44{
4645
46static const uint32_t PROTOCOL_VERSION= 10;
47static const uint32_t MIN_HANDSHAKE_SIZE= 6;
48
47std::vector<std::string> ClientMySQLProtocol::mysql_admin_ip_addresses;49std::vector<std::string> ClientMySQLProtocol::mysql_admin_ip_addresses;
48static const unsigned int PACKET_BUFFER_EXTRA_ALLOC= 1024;50static const unsigned int PACKET_BUFFER_EXTRA_ALLOC= 1024;
4951
5052
=== modified file 'plugin/session_dictionary/variables.cc'
--- plugin/session_dictionary/variables.cc 2011-02-12 21:09:14 +0000
+++ plugin/session_dictionary/variables.cc 2011-02-12 21:09:18 +0000
@@ -20,6 +20,7 @@
2020
21#include "config.h"21#include "config.h"
2222
23#include <drizzled/user_var_entry.h>
23#include <plugin/session_dictionary/dictionary.h>24#include <plugin/session_dictionary/dictionary.h>
2425
25#define LARGEST_USER_VARIABLE_NAME 12826#define LARGEST_USER_VARIABLE_NAME 128

Subscribers

People subscribed via source and target branches