Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
a00b3849
Commit
a00b3849
authored
Jul 10, 2011
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove remnants of safemalloc and
very old halloca() support
parent
274e06a5
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1 addition
and
84 deletions
+1
-84
include/my_nosys.h
include/my_nosys.h
+0
-5
mysql-test/r/bug46080.result
mysql-test/r/bug46080.result
+0
-18
mysql-test/suite/maria/t/maria3.test
mysql-test/suite/maria/t/maria3.test
+0
-2
mysql-test/t/bug46080-master.opt
mysql-test/t/bug46080-master.opt
+0
-1
mysql-test/t/bug46080.test
mysql-test/t/bug46080.test
+0
-27
mysys/my_malloc.c
mysys/my_malloc.c
+0
-18
storage/maria/maria_chk.c
storage/maria/maria_chk.c
+1
-13
No files found.
include/my_nosys.h
View file @
a00b3849
...
...
@@ -39,11 +39,6 @@ extern size_t my_quick_read(File Filedes,uchar *Buffer,size_t Count,
myf
myFlags
);
extern
size_t
my_quick_write
(
File
Filedes
,
const
uchar
*
Buffer
,
size_t
Count
);
#if defined(USE_HALLOC)
#define my_malloc(a,b) halloc(a,1)
#define my_no_flags_free(a) hfree(a)
#endif
#endif
/* __MY_NOSYS__ */
#ifdef __cplusplus
...
...
mysql-test/r/bug46080.result
deleted
100644 → 0
View file @
274e06a5
#
# Bug #46080: group_concat(... order by) crashes server when
# sort_buffer_size cannot allocate
#
call mtr.add_suppression("Out of memory at line .*, '.*my_alloc.c'");
call mtr.add_suppression("needed .* byte (.*k)., memory in use: .* bytes (.*k)");
CREATE TABLE t1(a CHAR(255));
INSERT INTO t1 VALUES ('a');
SET @@SESSION.sort_buffer_size=5*16*1000000;
SET @@SESSION.max_heap_table_size=5*1000000;
Warnings:
Warning 1292 Truncated incorrect max_heap_table_size value: '5000000'
# Must not crash.
SELECT GROUP_CONCAT(a ORDER BY a) FROM t1 GROUP BY a;
DROP TABLE t1;
SET @@SESSION.sort_buffer_size=default;
SET @@SESSION.max_heap_table_size=default;
End of 5.0 tests
mysql-test/suite/maria/t/maria3.test
View file @
a00b3849
...
...
@@ -257,8 +257,6 @@ update t1 set s1=2 where seq=1;
check
table
t1
extended
;
drop
table
t1
;
# Fix if we are using safemalloc
--
replace_result
8388572
8388600
select
lower
(
variable_name
)
as
Variable_name
,
Variable_value
as
Value
from
information_schema
.
session_variables
where
variable_name
like
"aria%"
and
variable_name
not
like
"aria_used_for_temp_tables"
order
by
1
;
--
replace_column
2
#
show
status
like
'aria%'
;
...
...
mysql-test/t/bug46080-master.opt
deleted
100644 → 0
View file @
274e06a5
--loose-performance-schema=0 --skip-grant-tables --skip-name-resolve --loose-aria-pagecache-buffer-size=1M
mysql-test/t/bug46080.test
deleted
100644 → 0
View file @
274e06a5
--
echo
#
--
echo
# Bug #46080: group_concat(... order by) crashes server when
--
echo
# sort_buffer_size cannot allocate
--
echo
#
--
source
include
/
have_debug
.
inc
call
mtr
.
add_suppression
(
"Out of memory at line .*, '.*my_alloc.c'"
);
call
mtr
.
add_suppression
(
"needed .* byte (.*k)., memory in use: .* bytes (.*k)"
);
CREATE
TABLE
t1
(
a
CHAR
(
255
));
INSERT
INTO
t1
VALUES
(
'a'
);
SET
@@
SESSION
.
sort_buffer_size
=
5
*
16
*
1000000
;
SET
@@
SESSION
.
max_heap_table_size
=
5
*
1000000
;
--
echo
# Must not crash.
--
disable_result_log
--
error
0
,
5
SELECT
GROUP_CONCAT
(
a
ORDER
BY
a
)
FROM
t1
GROUP
BY
a
;
--
enable_result_log
DROP
TABLE
t1
;
SET
@@
SESSION
.
sort_buffer_size
=
default
;
SET
@@
SESSION
.
max_heap_table_size
=
default
;
--
echo
End
of
5.0
tests
mysys/my_malloc.c
View file @
a00b3849
...
...
@@ -81,23 +81,6 @@ void *my_realloc(void *oldpoint, size_t size, myf my_flags)
DBUG_ASSERT
(
size
>
0
);
if
(
!
oldpoint
&&
(
my_flags
&
MY_ALLOW_ZERO_PTR
))
DBUG_RETURN
(
my_malloc
(
size
,
my_flags
));
#ifdef USE_HALLOC
if
(
!
(
point
=
malloc
(
size
)))
{
if
(
my_flags
&
MY_FREE_ON_ERROR
)
my_free
(
oldpoint
);
if
(
my_flags
&
MY_HOLD_ON_ERROR
)
DBUG_RETURN
(
oldpoint
);
my_errno
=
errno
;
if
(
my_flags
&
MY_FAE
+
MY_WME
)
my_error
(
EE_OUTOFMEMORY
,
MYF
(
ME_BELL
+
ME_WAITTANG
),
size
);
}
else
{
memcpy
(
point
,
oldpoint
,
size
);
free
(
oldpoint
);
}
#else
if
((
point
=
realloc
(
oldpoint
,
size
))
==
NULL
)
{
if
(
my_flags
&
MY_FREE_ON_ERROR
)
...
...
@@ -108,7 +91,6 @@ void *my_realloc(void *oldpoint, size_t size, myf my_flags)
if
(
my_flags
&
(
MY_FAE
+
MY_WME
))
my_error
(
EE_OUTOFMEMORY
,
MYF
(
ME_BELL
+
ME_WAITTANG
),
size
);
}
#endif
DBUG_PRINT
(
"exit"
,(
"ptr: %p"
,
point
));
DBUG_RETURN
(
point
);
}
...
...
storage/maria/maria_chk.c
View file @
a00b3849
...
...
@@ -202,7 +202,7 @@ enum options_mc {
OPT_SORT_KEY_BLOCKS
,
OPT_DECODE_BITS
,
OPT_FT_MIN_WORD_LEN
,
OPT_FT_MAX_WORD_LEN
,
OPT_FT_STOPWORD_FILE
,
OPT_MAX_RECORD_LENGTH
,
OPT_AUTO_CLOSE
,
OPT_STATS_METHOD
,
OPT_TRANSACTION_LOG
,
OPT_
SKIP_SAFEMALLOC
,
OPT_
ZEROFILL_KEEP_LSN
,
OPT_REQUIRE_CONTROL_FILE
,
OPT_ZEROFILL_KEEP_LSN
,
OPT_REQUIRE_CONTROL_FILE
,
OPT_LOG_DIR
,
OPT_DATADIR
,
OPT_WARNING_FOR_WRONG_TRANSID
};
...
...
@@ -322,13 +322,6 @@ static struct my_option my_long_options[] =
{
"silent"
,
's'
,
"Only print errors. One can use two -s to make aria_chk very silent."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
#ifndef DBUG_OFF
#ifdef SAFEMALLOC
{
"skip-safemalloc"
,
OPT_SKIP_SAFEMALLOC
,
"Don't use the memory allocation checking."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
#endif
#endif
{
"sort-index"
,
'S'
,
"Sort index blocks. This speeds up 'read-next' in applications."
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
...
@@ -774,11 +767,6 @@ get_one_option(int optid,
DBUG_SET_INITIAL
(
argument
?
argument
:
"d:t:o,/tmp/aria_chk.trace"
);
opt_debug
=
1
;
break
;
case
OPT_SKIP_SAFEMALLOC
:
#ifdef SAFEMALLOC
sf_malloc_quick
=
1
;
#endif
break
;
case
'V'
:
print_version
();
exit
(
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment