Merge lp:~linuxjedi/drizzle/drizzle-gcc-4.7.0 into lp:drizzle

Proposed by Andrew Hutchings
Status: Merged
Merge reported by: Brian Aker
Merged at revision: not available
Proposed branch: lp:~linuxjedi/drizzle/drizzle-gcc-4.7.0
Merge into: lp:drizzle
Diff against target: 86 lines (+10/-10)
1 file modified
drizzled/drizzled.cc (+10/-10)
To merge this branch: bzr merge lp:~linuxjedi/drizzle/drizzle-gcc-4.7.0
Reviewer Review Type Date Requested Status
Olaf van der Spek (community) Needs Fixing
Drizzle Trunk Pending
Review via email: mp+102983@code.launchpad.net

Description of the change

Fixes for GCC 4.7.0. This combined with the bison fix makes us good for Fedora 17 compiling.

To post a comment you must log in.
Revision history for this message
Olaf van der Spek (olafvdspek) wrote :

Hi Andrew,

Why not update MAX_MEM_TABLE_SIZE to fix in int64?

review: Needs Fixing
Revision history for this message
Andrew Hutchings (linuxjedi) wrote :

well, really the fact that the variable in the struct is an int64_t probably more of an issue. As far as the visual representation is concerned we want these to be uint64.

Revision history for this message
Olaf van der Spek (olafvdspek) wrote :

Why? Are values this big needed?
Are negative values never used?

Revision history for this message
Andrew Hutchings (linuxjedi) wrote :

bigger than uint32_t, yes. Most of these are positive only (such as memory size)

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-04-18 23:08:45 +0000
+++ drizzled/drizzled.cc 2012-04-21 21:13:20 +0000
@@ -1753,7 +1753,7 @@
1753 "a limit per thread!"),1753 "a limit per thread!"),
1754 (char**) &global_system_variables.bulk_insert_buff_size,1754 (char**) &global_system_variables.bulk_insert_buff_size,
1755 NULL,1755 NULL,
1756 0, GET_ULL, REQUIRED_ARG, 8192*1024, 0, ULONG_MAX, 0, 1, 0},1756 0, GET_ULL, REQUIRED_ARG, 8192*1024, 0, (int64_t)ULONG_MAX, 0, 1, 0},
1757 { "div_precision_increment", OPT_DIV_PRECINCREMENT,1757 { "div_precision_increment", OPT_DIV_PRECINCREMENT,
1758 N_("Precision of the result of '/' operator will be increased on that "1758 N_("Precision of the result of '/' operator will be increased on that "
1759 "value."),1759 "value."),
@@ -1764,7 +1764,7 @@
1764 N_("The size of the buffer that is used for full joins."),1764 N_("The size of the buffer that is used for full joins."),
1765 (char**) &global_system_variables.join_buff_size,1765 (char**) &global_system_variables.join_buff_size,
1766 NULL, 0, GET_UINT64,1766 NULL, 0, GET_UINT64,
1767 REQUIRED_ARG, 128*1024L, IO_SIZE*2+MALLOC_OVERHEAD, ULONG_MAX,1767 REQUIRED_ARG, 128*1024L, IO_SIZE*2+MALLOC_OVERHEAD, (int64_t)ULONG_MAX,
1768 MALLOC_OVERHEAD, IO_SIZE, 0},1768 MALLOC_OVERHEAD, IO_SIZE, 0},
1769 {"max_allowed_packet", OPT_MAX_ALLOWED_PACKET,1769 {"max_allowed_packet", OPT_MAX_ALLOWED_PACKET,
1770 N_("Max packetlength to send/receive from to server."),1770 N_("Max packetlength to send/receive from to server."),
@@ -1775,7 +1775,7 @@
1775 N_("Don't allow creation of heap tables bigger than this."),1775 N_("Don't allow creation of heap tables bigger than this."),
1776 (char**) &global_system_variables.max_heap_table_size,1776 (char**) &global_system_variables.max_heap_table_size,
1777 NULL, 0, GET_ULL,1777 NULL, 0, GET_ULL,
1778 REQUIRED_ARG, 16*1024*1024L, 16384, MAX_MEM_TABLE_SIZE,1778 REQUIRED_ARG, 16*1024*1024L, 16384, (int64_t)MAX_MEM_TABLE_SIZE,
1779 MALLOC_OVERHEAD, 1024, 0},1779 MALLOC_OVERHEAD, 1024, 0},
1780 {"max_join_size", OPT_MAX_JOIN_SIZE,1780 {"max_join_size", OPT_MAX_JOIN_SIZE,
1781 N_("Joins that are probably going to read more than max_join_size records "1781 N_("Joins that are probably going to read more than max_join_size records "
@@ -1792,7 +1792,7 @@
1792 N_("Limit assumed max number of seeks when looking up rows based on a key"),1792 N_("Limit assumed max number of seeks when looking up rows based on a key"),
1793 (char**) &global_system_variables.max_seeks_for_key,1793 (char**) &global_system_variables.max_seeks_for_key,
1794 NULL, 0, GET_UINT64,1794 NULL, 0, GET_UINT64,
1795 REQUIRED_ARG, ULONG_MAX, 1, ULONG_MAX, 0, 1, 0 },1795 REQUIRED_ARG, (int64_t)ULONG_MAX, 1, (int64_t)ULONG_MAX, 0, 1, 0 },
1796 {"max_sort_length", OPT_MAX_SORT_LENGTH,1796 {"max_sort_length", OPT_MAX_SORT_LENGTH,
1797 N_("The number of bytes to use when sorting BLOB or TEXT values "1797 N_("The number of bytes to use when sorting BLOB or TEXT values "
1798 "(only the first max_sort_length bytes of each value are used; the "1798 "(only the first max_sort_length bytes of each value are used; the "
@@ -1803,13 +1803,13 @@
1803 {"max_write_lock_count", OPT_MAX_WRITE_LOCK_COUNT,1803 {"max_write_lock_count", OPT_MAX_WRITE_LOCK_COUNT,
1804 N_("After this many write locks, allow some read locks to run in between."),1804 N_("After this many write locks, allow some read locks to run in between."),
1805 (char**) &max_write_lock_count, NULL, 0, GET_ULL,1805 (char**) &max_write_lock_count, NULL, 0, GET_ULL,
1806 REQUIRED_ARG, ULONG_MAX, 1, ULONG_MAX, 0, 1, 0},1806 REQUIRED_ARG, (int64_t)ULONG_MAX, 1, (int64_t)ULONG_MAX, 0, 1, 0},
1807 {"min_examined_row_limit", OPT_MIN_EXAMINED_ROW_LIMIT,1807 {"min_examined_row_limit", OPT_MIN_EXAMINED_ROW_LIMIT,
1808 N_("Don't log queries which examine less than min_examined_row_limit "1808 N_("Don't log queries which examine less than min_examined_row_limit "
1809 "rows to file."),1809 "rows to file."),
1810 (char**) &global_system_variables.min_examined_row_limit,1810 (char**) &global_system_variables.min_examined_row_limit,
1811 NULL, 0, GET_ULL,1811 NULL, 0, GET_ULL,
1812 REQUIRED_ARG, 0, 0, ULONG_MAX, 0, 1L, 0},1812 REQUIRED_ARG, 0, 0, (int64_t)ULONG_MAX, 0, 1L, 0},
1813 {"optimizer_prune_level", OPT_OPTIMIZER_PRUNE_LEVEL,1813 {"optimizer_prune_level", OPT_OPTIMIZER_PRUNE_LEVEL,
1814 N_("Controls the heuristic(s) applied during query optimization to prune "1814 N_("Controls the heuristic(s) applied during query optimization to prune "
1815 "less-promising partial plans from the optimizer search space. Meaning: "1815 "less-promising partial plans from the optimizer search space. Meaning: "
@@ -1861,13 +1861,13 @@
1861 N_("Allocation block size for query parsing and execution"),1861 N_("Allocation block size for query parsing and execution"),
1862 (char**) &global_system_variables.query_alloc_block_size,1862 (char**) &global_system_variables.query_alloc_block_size,
1863 NULL, 0, GET_UINT,1863 NULL, 0, GET_UINT,
1864 REQUIRED_ARG, QUERY_ALLOC_BLOCK_SIZE, 1024, ULONG_MAX, 0, 1024, 0},1864 REQUIRED_ARG, QUERY_ALLOC_BLOCK_SIZE, 1024, (int64_t)ULONG_MAX, 0, 1024, 0},
1865 {"query_prealloc_size", OPT_QUERY_PREALLOC_SIZE,1865 {"query_prealloc_size", OPT_QUERY_PREALLOC_SIZE,
1866 N_("Persistent buffer for query parsing and execution"),1866 N_("Persistent buffer for query parsing and execution"),
1867 (char**) &global_system_variables.query_prealloc_size,1867 (char**) &global_system_variables.query_prealloc_size,
1868 NULL, 0, GET_UINT,1868 NULL, 0, GET_UINT,
1869 REQUIRED_ARG, QUERY_ALLOC_PREALLOC_SIZE, QUERY_ALLOC_PREALLOC_SIZE,1869 REQUIRED_ARG, QUERY_ALLOC_PREALLOC_SIZE, QUERY_ALLOC_PREALLOC_SIZE,
1870 ULONG_MAX, 0, 1024, 0},1870 (int64_t)ULONG_MAX, 0, 1024, 0},
1871 {"range_alloc_block_size", OPT_RANGE_ALLOC_BLOCK_SIZE,1871 {"range_alloc_block_size", OPT_RANGE_ALLOC_BLOCK_SIZE,
1872 N_("Allocation block size for storing ranges during optimization"),1872 N_("Allocation block size for storing ranges during optimization"),
1873 (char**) &global_system_variables.range_alloc_block_size,1873 (char**) &global_system_variables.range_alloc_block_size,
@@ -1915,13 +1915,13 @@
1915 (char**) &my_thread_stack_size,1915 (char**) &my_thread_stack_size,
1916 NULL, 0, GET_SIZE,1916 NULL, 0, GET_SIZE,
1917 REQUIRED_ARG,0,1917 REQUIRED_ARG,0,
1918 UINT32_C(1024*512), SIZE_MAX, 0, 1024, 0},1918 UINT32_C(1024*512), (int64_t)SIZE_MAX, 0, 1024, 0},
1919 {"tmp_table_size", OPT_TMP_TABLE_SIZE,1919 {"tmp_table_size", OPT_TMP_TABLE_SIZE,
1920 N_("If an internal in-memory temporary table exceeds this size, Drizzle will"1920 N_("If an internal in-memory temporary table exceeds this size, Drizzle will"
1921 " automatically convert it to an on-disk MyISAM table."),1921 " automatically convert it to an on-disk MyISAM table."),
1922 (char**) &global_system_variables.tmp_table_size,1922 (char**) &global_system_variables.tmp_table_size,
1923 NULL, 0, GET_ULL,1923 NULL, 0, GET_ULL,
1924 REQUIRED_ARG, 16*1024*1024L, 1024, MAX_MEM_TABLE_SIZE, 0, 1, 0},1924 REQUIRED_ARG, 16*1024*1024L, 1024, (int64_t)MAX_MEM_TABLE_SIZE, 0, 1, 0},
1925 {0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}1925 {0, 0, 0, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}
1926};1926};
19271927

Subscribers

People subscribed via source and target branches