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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
26a8c8b8
Commit
26a8c8b8
authored
Mar 11, 2001
by
monty@donna.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimization of delete with record cache (for MyISAM tables)
Added missing files for innobase to the distribution
parent
5985de2d
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
16 additions
and
20 deletions
+16
-20
BUILD/compile-pentium
BUILD/compile-pentium
+1
-6
BUILD/compile-pentium-debug
BUILD/compile-pentium-debug
+1
-6
configure.in
configure.in
+1
-1
innobase/mem/Makefile.am
innobase/mem/Makefile.am
+1
-1
innobase/pars/Makefile.am
innobase/pars/Makefile.am
+2
-0
sql/ha_isam.h
sql/ha_isam.h
+2
-1
sql/handler.h
sql/handler.h
+1
-0
sql/mysql_priv.h
sql/mysql_priv.h
+1
-1
sql/records.cc
sql/records.cc
+5
-3
sql/sql_delete.cc
sql/sql_delete.cc
+1
-1
No files found.
BUILD/compile-pentium
View file @
26a8c8b8
...
@@ -7,11 +7,6 @@ extra_flags="$pentium_cflags $fast_cflags"
...
@@ -7,11 +7,6 @@ extra_flags="$pentium_cflags $fast_cflags"
extra_configs
=
"
$pentium_configs
"
extra_configs
=
"
$pentium_configs
"
strip
=
yes
strip
=
yes
# Use the optimized version if it exists
extra_configs
=
"
$extra_configs
--with-berkeley-db --with-innobase"
if
test
-d
/usr/local/BerkeleyDB-opt/
then
extra_configs
=
"
$extra_configs
--with-berkeley-db=/usr/local/BerkeleyDB-opt/"
fi
extra_configs
=
"
$extra_configs
--with-innobase"
.
"
$path
/FINISH.sh"
.
"
$path
/FINISH.sh"
BUILD/compile-pentium-debug
View file @
26a8c8b8
...
@@ -8,11 +8,6 @@ c_warnings="$c_warnings $debug_extra_warnings"
...
@@ -8,11 +8,6 @@ c_warnings="$c_warnings $debug_extra_warnings"
cxx_warnings
=
"
$cxx_warnings
$debug_extra_warnings
"
cxx_warnings
=
"
$cxx_warnings
$debug_extra_warnings
"
extra_configs
=
"
$pentium_configs
$debug_configs
"
extra_configs
=
"
$pentium_configs
$debug_configs
"
# Use the debug version if it exists
extra_configs
=
"
$extra_configs
--with-berkeley-db --with-innobase"
if
test
-d
/usr/local/BerkeleyDB-dbug/
then
extra_configs
=
"
$extra_configs
--with-berkeley-db=/usr/local/BerkeleyDB-dbug/"
fi
extra_configs
=
"
$extra_configs
--with-innobase"
.
"
$path
/FINISH.sh"
.
"
$path
/FINISH.sh"
configure.in
View file @
26a8c8b8
...
@@ -4,7 +4,7 @@ dnl Process this file with autoconf to produce a configure script.
...
@@ -4,7 +4,7 @@ dnl Process this file with autoconf to produce a configure script.
AC_INIT
(
sql/mysqld.cc
)
AC_INIT
(
sql/mysqld.cc
)
AC_CANONICAL_SYSTEM
AC_CANONICAL_SYSTEM
# The Docs Makefile.am parses this line!
# The Docs Makefile.am parses this line!
AM_INIT_AUTOMAKE
(
mysql, 3.23.34
)
AM_INIT_AUTOMAKE
(
mysql, 3.23.34
a
)
AM_CONFIG_HEADER
(
config.h
)
AM_CONFIG_HEADER
(
config.h
)
PROTOCOL_VERSION
=
10
PROTOCOL_VERSION
=
10
...
...
innobase/mem/Makefile.am
View file @
26a8c8b8
...
@@ -19,6 +19,6 @@ include ../include/Makefile.i
...
@@ -19,6 +19,6 @@ include ../include/Makefile.i
libs_LIBRARIES
=
libmem.a
libs_LIBRARIES
=
libmem.a
libmem_a_SOURCES
=
mem0mem.c mem0pool.c
libmem_a_SOURCES
=
mem0mem.c mem0pool.c
mem0dbg.c
EXTRA_PROGRAMS
=
EXTRA_PROGRAMS
=
innobase/pars/Makefile.am
View file @
26a8c8b8
...
@@ -19,6 +19,8 @@ include ../include/Makefile.i
...
@@ -19,6 +19,8 @@ include ../include/Makefile.i
libs_LIBRARIES
=
libpars.a
libs_LIBRARIES
=
libpars.a
noninst_HEADERS
=
pars0grm.h
libpars_a_SOURCES
=
pars0grm.c lexyy.c pars0opt.c pars0pars.c pars0sym.c
libpars_a_SOURCES
=
pars0grm.c lexyy.c pars0opt.c pars0pars.c pars0sym.c
EXTRA_PROGRAMS
=
EXTRA_PROGRAMS
=
sql/ha_isam.h
View file @
26a8c8b8
...
@@ -33,7 +33,8 @@ class ha_isam: public handler
...
@@ -33,7 +33,8 @@ class ha_isam: public handler
int_option_flag
(
HA_READ_NEXT
+
HA_READ_PREV
+
HA_READ_RND_SAME
+
int_option_flag
(
HA_READ_NEXT
+
HA_READ_PREV
+
HA_READ_RND_SAME
+
HA_KEYPOS_TO_RNDPOS
+
HA_READ_ORDER
+
HA_LASTKEY_ORDER
+
HA_KEYPOS_TO_RNDPOS
+
HA_READ_ORDER
+
HA_LASTKEY_ORDER
+
HA_HAVE_KEY_READ_ONLY
+
HA_READ_NOT_EXACT_KEY
+
HA_HAVE_KEY_READ_ONLY
+
HA_READ_NOT_EXACT_KEY
+
HA_LONGLONG_KEYS
+
HA_KEY_READ_WRONG_STR
+
HA_DUPP_POS
)
HA_LONGLONG_KEYS
+
HA_KEY_READ_WRONG_STR
+
HA_DUPP_POS
+
HA_NOT_DELETE_WITH_CACHE
)
{}
{}
~
ha_isam
()
{}
~
ha_isam
()
{}
const
char
*
table_type
()
const
{
return
"ISAM"
;
}
const
char
*
table_type
()
const
{
return
"ISAM"
;
}
...
...
sql/handler.h
View file @
26a8c8b8
...
@@ -71,6 +71,7 @@
...
@@ -71,6 +71,7 @@
#define HA_PRIMARY_KEY_IN_READ_INDEX (HA_NO_WRITE_DELAYED*2)
#define HA_PRIMARY_KEY_IN_READ_INDEX (HA_NO_WRITE_DELAYED*2)
#define HA_DROP_BEFORE_CREATE (HA_PRIMARY_KEY_IN_READ_INDEX*2)
#define HA_DROP_BEFORE_CREATE (HA_PRIMARY_KEY_IN_READ_INDEX*2)
#define HA_NOT_READ_AFTER_KEY (HA_DROP_BEFORE_CREATE*2)
#define HA_NOT_READ_AFTER_KEY (HA_DROP_BEFORE_CREATE*2)
#define HA_NOT_DELETE_WITH_CACHE (HA_NOT_READ_AFTER_KEY*2)
/* Parameters for open() (in register form->filestat) */
/* Parameters for open() (in register form->filestat) */
/* HA_GET_INFO does a implicit HA_ABORT_IF_LOCKED */
/* HA_GET_INFO does a implicit HA_ABORT_IF_LOCKED */
...
...
sql/mysql_priv.h
View file @
26a8c8b8
...
@@ -595,7 +595,7 @@ void change_byte(byte *,uint,char,char);
...
@@ -595,7 +595,7 @@ void change_byte(byte *,uint,char,char);
void
unireg_abort
(
int
exit_code
);
void
unireg_abort
(
int
exit_code
);
void
init_read_record
(
READ_RECORD
*
info
,
THD
*
thd
,
TABLE
*
reg_form
,
void
init_read_record
(
READ_RECORD
*
info
,
THD
*
thd
,
TABLE
*
reg_form
,
SQL_SELECT
*
select
,
SQL_SELECT
*
select
,
bool
use_record_cache
,
bool
print_errors
);
int
use_record_cache
,
bool
print_errors
);
void
end_read_record
(
READ_RECORD
*
info
);
void
end_read_record
(
READ_RECORD
*
info
);
ha_rows
filesort
(
TABLE
**
form
,
struct
st_sort_field
*
sortorder
,
uint
s_length
,
ha_rows
filesort
(
TABLE
**
form
,
struct
st_sort_field
*
sortorder
,
uint
s_length
,
SQL_SELECT
*
select
,
ha_rows
special
,
ha_rows
max_rows
);
SQL_SELECT
*
select
,
ha_rows
special
,
ha_rows
max_rows
);
...
...
sql/records.cc
View file @
26a8c8b8
...
@@ -31,7 +31,7 @@ static int rr_cmp(uchar *a,uchar *b);
...
@@ -31,7 +31,7 @@ static int rr_cmp(uchar *a,uchar *b);
void
init_read_record
(
READ_RECORD
*
info
,
THD
*
thd
,
TABLE
*
table
,
void
init_read_record
(
READ_RECORD
*
info
,
THD
*
thd
,
TABLE
*
table
,
SQL_SELECT
*
select
,
SQL_SELECT
*
select
,
bool
use_record_cache
,
bool
print_error
)
int
use_record_cache
,
bool
print_error
)
{
{
IO_CACHE
*
tempfile
;
IO_CACHE
*
tempfile
;
DBUG_ENTER
(
"init_read_record"
);
DBUG_ENTER
(
"init_read_record"
);
...
@@ -97,9 +97,11 @@ void init_read_record(READ_RECORD *info,THD *thd, TABLE *table,
...
@@ -97,9 +97,11 @@ void init_read_record(READ_RECORD *info,THD *thd, TABLE *table,
info
->
read_record
=
rr_sequential
;
info
->
read_record
=
rr_sequential
;
table
->
file
->
rnd_init
();
table
->
file
->
rnd_init
();
/* We can use record cache if we don't update dynamic length tables */
/* We can use record cache if we don't update dynamic length tables */
if
(
use_record_cache
||
if
(
use_record_cache
>
0
||
(
int
)
table
->
reginfo
.
lock_type
<=
(
int
)
TL_READ_HIGH_PRIORITY
||
(
int
)
table
->
reginfo
.
lock_type
<=
(
int
)
TL_READ_HIGH_PRIORITY
||
!
(
table
->
db_options_in_use
&
HA_OPTION_PACK_RECORD
))
!
(
table
->
db_options_in_use
&
HA_OPTION_PACK_RECORD
)
||
(
use_record_cache
<
0
&&
!
(
table
->
file
->
option_flag
()
&
HA_NOT_DELETE_WITH_CACHE
)))
VOID
(
table
->
file
->
extra
(
HA_EXTRA_CACHE
));
// Cache reads
VOID
(
table
->
file
->
extra
(
HA_EXTRA_CACHE
));
// Cache reads
}
}
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
...
...
sql/sql_delete.cc
View file @
26a8c8b8
...
@@ -192,7 +192,7 @@ int mysql_delete(THD *thd,TABLE_LIST *table_list,COND *conds,ha_rows limit,
...
@@ -192,7 +192,7 @@ int mysql_delete(THD *thd,TABLE_LIST *table_list,COND *conds,ha_rows limit,
(
void
)
table
->
file
->
extra
(
HA_EXTRA_NO_READCHECK
);
(
void
)
table
->
file
->
extra
(
HA_EXTRA_NO_READCHECK
);
if
(
options
&
OPTION_QUICK
)
if
(
options
&
OPTION_QUICK
)
(
void
)
table
->
file
->
extra
(
HA_EXTRA_QUICK
);
(
void
)
table
->
file
->
extra
(
HA_EXTRA_QUICK
);
init_read_record
(
&
info
,
thd
,
table
,
select
,
0
,
1
);
init_read_record
(
&
info
,
thd
,
table
,
select
,
-
1
,
1
);
ulong
deleted
=
0L
;
ulong
deleted
=
0L
;
thd
->
proc_info
=
"updating"
;
thd
->
proc_info
=
"updating"
;
while
(
!
(
error
=
info
.
read_record
(
&
info
))
&&
!
thd
->
killed
)
while
(
!
(
error
=
info
.
read_record
(
&
info
))
&&
!
thd
->
killed
)
...
...
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