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
4de5ac33
Commit
4de5ac33
authored
Dec 31, 2000
by
monty@donna.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed new bug in BDB tables
parent
0135c0a3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
26 deletions
+12
-26
myisam/mi_info.c
myisam/mi_info.c
+1
-1
scripts/safe_mysqld.sh
scripts/safe_mysqld.sh
+4
-2
sql/ha_berkeley.cc
sql/ha_berkeley.cc
+4
-20
sql/mysql_priv.h
sql/mysql_priv.h
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+2
-2
No files found.
myisam/mi_info.c
View file @
4de5ac33
...
...
@@ -57,7 +57,6 @@ int mi_status(MI_INFO *info, register MI_ISAMINFO *x, uint flag)
x
->
index_file_length
=
info
->
state
->
key_file_length
;
x
->
keys
=
share
->
state
.
header
.
keys
;
x
->
key_map
=
share
->
state
.
key_map
;
x
->
check_time
=
share
->
state
.
check_time
;
x
->
mean_reclength
=
info
->
state
->
records
?
(
ulong
)
(
info
->
state
->
data_file_length
-
info
->
state
->
empty
)
/
...
...
@@ -87,6 +86,7 @@ int mi_status(MI_INFO *info, register MI_ISAMINFO *x, uint flag)
x
->
raid_type
=
share
->
base
.
raid_type
;
x
->
raid_chunks
=
share
->
base
.
raid_chunks
;
x
->
raid_chunksize
=
share
->
base
.
raid_chunksize
;
x
->
key_map
=
share
->
state
.
key_map
;
}
if
((
flag
&
HA_STATUS_TIME
)
&&
!
my_fstat
(
info
->
dfile
,
&
state
,
MYF
(
0
)))
x
->
update_time
=
state
.
st_mtime
;
...
...
scripts/safe_mysqld.sh
View file @
4de5ac33
...
...
@@ -149,8 +149,10 @@ then
fi
fi
USER
=
""
if
test
-w
/
then
USER_OPTION
=
"--user=
$user
"
# If we are root, change the err log to the right user.
touch
$err_log
;
chown
$user
$err_log
if
test
-n
"
$open_files
"
...
...
@@ -211,9 +213,9 @@ do
rm
-f
$MYSQL_UNIX_PORT
$pid_file
# Some extra safety
if
test
-z
"
$args
"
then
$NOHUP_NICENESS
$ledir
/
$MYSQLD
$defaults
--basedir
=
$MY_BASEDIR_VERSION
--datadir
=
$DATADIR
--user
=
$user
--pid-file
=
$pid_file
@MYSQLD_DEFAULT_SWITCHES@
>>
$err_log
2>&1
$NOHUP_NICENESS
$ledir
/
$MYSQLD
$defaults
--basedir
=
$MY_BASEDIR_VERSION
--datadir
=
$DATADIR
$USER_OPTION
--pid-file
=
$pid_file
@MYSQLD_DEFAULT_SWITCHES@
>>
$err_log
2>&1
else
eval
"
$NOHUP_NICENESS
$ledir
/
$MYSQLD
$defaults
--basedir=
$MY_BASEDIR_VERSION
--datadir=
$DATADIR
--user=
$user
--pid-file=
$pid_file
@MYSQLD_DEFAULT_SWITCHES@
$args
>>
$err_log
2>&1"
eval
"
$NOHUP_NICENESS
$ledir
/
$MYSQLD
$defaults
--basedir=
$MY_BASEDIR_VERSION
--datadir=
$DATADIR
$USER_OPTION
--pid-file=
$pid_file
@MYSQLD_DEFAULT_SWITCHES@
$args
>>
$err_log
2>&1"
fi
if
test
!
-f
$pid_file
# This is removed if normal shutdown
then
...
...
sql/ha_berkeley.cc
View file @
4de5ac33
...
...
@@ -796,7 +796,8 @@ int ha_berkeley::write_row(byte * record)
else
{
DB_TXN
*
sub_trans
=
transaction
;
ulong
thd_options
=
table
->
in_use
->
options
;
/* Don't use sub transactions in temporary tables (in_use == 0) */
ulong
thd_options
=
table
->
in_use
?
table
->
in_use
->
options
:
0
;
for
(
uint
retry
=
0
;
retry
<
berkeley_trans_retry
;
retry
++
)
{
key_map
changed_keys
=
0
;
...
...
@@ -1014,7 +1015,7 @@ int ha_berkeley::update_row(const byte * old_row, byte * new_row)
DBT
prim_key
,
key
,
old_prim_key
;
int
error
;
DB_TXN
*
sub_trans
;
ulong
thd_options
=
table
->
in_use
->
options
;
ulong
thd_options
=
table
->
in_use
?
table
->
in_use
->
options
:
0
;
bool
primary_key_changed
;
DBUG_ENTER
(
"update_row"
);
...
...
@@ -1112,23 +1113,6 @@ int ha_berkeley::update_row(const byte * old_row, byte * new_row)
break
;
}
}
#ifdef BROKEN_CODE_HERE
int
new_error
;
DBUG_PRINT
(
"error"
,(
"Got error %d"
,
error
));
if
(
using_ignore
&&
(
thd_options
&
OPTION_INTERNAL_SUBTRANSACTIONS
))
{
DBUG_PRINT
(
"trans"
,(
"aborting subtransaction"
));
new_error
=
txn_abort
(
sub_trans
);
}
else
if
(
changed_keys
)
new_error
=
restore_keys
(
changed_keys
,
primary_key
,
old_row
,
old_prim_key
,
new_row
,
prim_key
);
if
(
new_error
)
{
error
=
new_error
;
// This shouldn't happen
break
;
}
#endif
}
else
if
(
using_ignore
&&
(
thd_options
&
OPTION_INTERNAL_SUBTRANSACTIONS
))
{
...
...
@@ -1227,7 +1211,7 @@ int ha_berkeley::delete_row(const byte * record)
int
error
;
DBT
row
,
prim_key
;
key_map
keys
=
table
->
keys_in_use
;
ulong
thd_options
=
table
->
in_use
->
options
;
ulong
thd_options
=
table
->
in_use
?
table
->
in_use
->
options
:
0
;
DBUG_ENTER
(
"delete_row"
);
statistic_increment
(
ha_delete_count
,
&
LOCK_status
);
...
...
sql/mysql_priv.h
View file @
4de5ac33
...
...
@@ -164,7 +164,7 @@ void kill_one_thread(THD *thd, ulong id);
#define OPTION_INTERNAL_SUBTRANSACTIONS OPTION_QUOTE_SHOW_CREATE*2
/* Set if we are updating a non-transaction safe table */
#define OPTION_STATUS_NO_TRANS_UPDATE OPTION_
QUOTE_SHOW_CREATE
*2
#define OPTION_STATUS_NO_TRANS_UPDATE OPTION_
INTERNAL_SUBTRANSACTIONS
*2
/* The following is set when parsing the query */
#define QUERY_NO_INDEX_USED OPTION_STATUS_NO_TRANS_UPDATE*2
...
...
sql/mysqld.cc
View file @
4de5ac33
...
...
@@ -1120,8 +1120,8 @@ terribly wrong\n");
*
(
ebp
+
17
)
:
*
(
ebp
+
1
));
if
(
new_ebp
<=
ebp
)
{
fprintf
(
stderr
,
"
New value of ebp failed sanity check
\
terminating backtrace
\n
"
);
fprintf
(
stderr
,
"\
New value of ebp failed sanity check
terminating backtrace
\n
"
);
return
;
}
ebp
=
new_ebp
;
...
...
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