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
3bdff7fb
Commit
3bdff7fb
authored
Dec 22, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
parents
7901cd30
baac3b76
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
BitKeeper/triggers/pre-delta
BitKeeper/triggers/pre-delta
+11
-0
sql/log.cc
sql/log.cc
+3
-1
No files found.
BitKeeper/triggers/pre-delta
View file @
3bdff7fb
#!/bin/sh
if
[
"
$BK_USER
"
=
"Administrator"
-o
"
$BK_USER
"
=
"mysqldev"
]
then
echo
"Error: you cannot checkin as 'Administrator' or 'mysqldev' user."
echo
"as a workaround set BK_USER to your nickname"
echo
"e.g.: export BK_USER='bar'"
echo
""
echo
"Checkin FAILED!"
echo
"Set BK_USER and retry."
exit
1
fi
if
[
`
tail
-c1
$BK_FILE
`
]
then
echo
"File
$BK_FILE
does not end with a new-line character!"
...
...
sql/log.cc
View file @
3bdff7fb
...
...
@@ -2036,6 +2036,7 @@ bool flush_error_log()
char
err_renamed
[
FN_REFLEN
],
*
end
;
end
=
strmake
(
err_renamed
,
log_error_file
,
FN_REFLEN
-
4
);
strmov
(
end
,
"-old"
);
VOID
(
pthread_mutex_lock
(
&
LOCK_error_log
));
#ifdef __WIN__
char
err_temp
[
FN_REFLEN
+
4
];
/*
...
...
@@ -2056,7 +2057,7 @@ bool flush_error_log()
if
((
fd
=
my_open
(
err_temp
,
O_RDONLY
,
MYF
(
0
)))
>=
0
)
{
while
((
bytes
=
(
int
)
my_read
(
fd
,
(
byte
*
)
buf
,
IO_SIZE
,
MYF
(
0
)))
>
0
)
my_fwrite
(
stderr
,
(
byte
*
)
buf
,
(
uint
)
strlen
(
buf
),
MYF
(
0
));
my_fwrite
(
stderr
,
(
byte
*
)
buf
,
bytes
,
MYF
(
0
));
my_close
(
fd
,
MYF
(
0
));
}
(
void
)
my_delete
(
err_temp
,
MYF
(
0
));
...
...
@@ -2070,6 +2071,7 @@ bool flush_error_log()
else
result
=
1
;
#endif
VOID
(
pthread_mutex_unlock
(
&
LOCK_error_log
));
}
return
result
;
}
...
...
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