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
ad6de2c0
Commit
ad6de2c0
authored
May 06, 2005
by
rburnett@bk-internal.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/users/rburnett/bug9721
into bk-internal.mysql.com:/users/rburnett/mysql-5.0
parents
0e91a713
c95e33fa
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
20 additions
and
11 deletions
+20
-11
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
include/violite.h
include/violite.h
+3
-3
ndb/src/kernel/error/ErrorReporter.cpp
ndb/src/kernel/error/ErrorReporter.cpp
+5
-0
sql/net_serv.cc
sql/net_serv.cc
+2
-2
vio/vio_priv.h
vio/vio_priv.h
+2
-2
vio/viosocket.c
vio/viosocket.c
+5
-3
vio/viossl.c
vio/viossl.c
+2
-1
No files found.
BitKeeper/etc/logging_ok
View file @
ad6de2c0
...
@@ -225,6 +225,7 @@ ram@ram-book.(none)
...
@@ -225,6 +225,7 @@ ram@ram-book.(none)
ram@ram.(none)
ram@ram.(none)
ramil@mysql.com
ramil@mysql.com
ranger@regul.home.lan
ranger@regul.home.lan
rburnett@bk-internal.mysql.com
rburnett@build.mysql.com
rburnett@build.mysql.com
reggie@bob.(none)
reggie@bob.(none)
reggie@mdk10.(none)
reggie@mdk10.(none)
...
...
include/violite.h
View file @
ad6de2c0
...
@@ -87,7 +87,7 @@ my_bool vio_peer_addr(Vio* vio, char *buf, uint16 *port);
...
@@ -87,7 +87,7 @@ my_bool vio_peer_addr(Vio* vio, char *buf, uint16 *port);
/* Remotes in_addr */
/* Remotes in_addr */
void
vio_in_addr
(
Vio
*
vio
,
struct
in_addr
*
in
);
void
vio_in_addr
(
Vio
*
vio
,
struct
in_addr
*
in
);
my_bool
vio_poll_read
(
Vio
*
vio
,
uint
timeout
);
my_bool
vio_poll_read
(
Vio
*
vio
,
uint
timeout
);
void
vio_timeout
(
Vio
*
vio
,
uint
timeout
);
void
vio_timeout
(
Vio
*
vio
,
uint
which
,
uint
timeout
);
#ifdef HAVE_OPENSSL
#ifdef HAVE_OPENSSL
#include <openssl/opensslv.h>
#include <openssl/opensslv.h>
...
@@ -156,7 +156,7 @@ int vio_close_shared_memory(Vio * vio);
...
@@ -156,7 +156,7 @@ int vio_close_shared_memory(Vio * vio);
#define vio_close(vio) ((vio)->vioclose)(vio)
#define vio_close(vio) ((vio)->vioclose)(vio)
#define vio_peer_addr(vio, buf, prt) (vio)->peer_addr(vio, buf, prt)
#define vio_peer_addr(vio, buf, prt) (vio)->peer_addr(vio, buf, prt)
#define vio_in_addr(vio, in) (vio)->in_addr(vio, in)
#define vio_in_addr(vio, in) (vio)->in_addr(vio, in)
#define vio_timeout(vio,
seconds) (vio)->timeout(vio
, seconds)
#define vio_timeout(vio,
which, seconds) (vio)->timeout(vio, which
, seconds)
#endif
/* !defined(DONT_MAP_VIO) */
#endif
/* !defined(DONT_MAP_VIO) */
/* This enumerator is used in parser - should be always visible */
/* This enumerator is used in parser - should be always visible */
...
@@ -199,7 +199,7 @@ struct st_vio
...
@@ -199,7 +199,7 @@ struct st_vio
void
(
*
in_addr
)(
Vio
*
,
struct
in_addr
*
);
void
(
*
in_addr
)(
Vio
*
,
struct
in_addr
*
);
my_bool
(
*
should_retry
)(
Vio
*
);
my_bool
(
*
should_retry
)(
Vio
*
);
int
(
*
vioclose
)(
Vio
*
);
int
(
*
vioclose
)(
Vio
*
);
void
(
*
timeout
)(
Vio
*
,
unsigned
int
timeout
);
void
(
*
timeout
)(
Vio
*
,
unsigned
int
which
,
unsigned
int
timeout
);
void
*
ssl_arg
;
void
*
ssl_arg
;
#ifdef HAVE_SMEM
#ifdef HAVE_SMEM
HANDLE
handle_file_map
;
HANDLE
handle_file_map
;
...
...
ndb/src/kernel/error/ErrorReporter.cpp
View file @
ad6de2c0
...
@@ -237,6 +237,11 @@ WriteMessage(ErrorCategory thrdType, int thrdMessageID,
...
@@ -237,6 +237,11 @@ WriteMessage(ErrorCategory thrdType, int thrdMessageID,
// Create a new file, and skip the first 69 bytes,
// Create a new file, and skip the first 69 bytes,
// which are info about the current offset
// which are info about the current offset
stream
=
fopen
(
theErrorFileName
,
"w"
);
stream
=
fopen
(
theErrorFileName
,
"w"
);
if
(
stream
==
NULL
)
{
fprintf
(
stderr
,
"Unable to open error log file: %s
\n
"
,
theErrorFileName
);
return
-
1
;
}
fprintf
(
stream
,
"%s%u%s"
,
"Current byte-offset of file-pointer is: "
,
69
,
fprintf
(
stream
,
"%s%u%s"
,
"Current byte-offset of file-pointer is: "
,
69
,
"
\n\n\n
"
);
"
\n\n\n
"
);
...
...
sql/net_serv.cc
View file @
ad6de2c0
...
@@ -495,7 +495,7 @@ net_real_write(NET *net,const char *packet,ulong len)
...
@@ -495,7 +495,7 @@ net_real_write(NET *net,const char *packet,ulong len)
thr_alarm
(
&
alarmed
,(
uint
)
net
->
write_timeout
,
&
alarm_buff
);
thr_alarm
(
&
alarmed
,(
uint
)
net
->
write_timeout
,
&
alarm_buff
);
#else
#else
alarmed
=
0
;
alarmed
=
0
;
vio_timeout
(
net
->
vio
,
net
->
write_timeout
);
vio_timeout
(
net
->
vio
,
1
,
net
->
write_timeout
);
#endif
/* NO_ALARM */
#endif
/* NO_ALARM */
pos
=
(
char
*
)
packet
;
end
=
pos
+
len
;
pos
=
(
char
*
)
packet
;
end
=
pos
+
len
;
...
@@ -688,7 +688,7 @@ my_real_read(NET *net, ulong *complen)
...
@@ -688,7 +688,7 @@ my_real_read(NET *net, ulong *complen)
if
(
net_blocking
)
if
(
net_blocking
)
thr_alarm
(
&
alarmed
,
net
->
read_timeout
,
&
alarm_buff
);
thr_alarm
(
&
alarmed
,
net
->
read_timeout
,
&
alarm_buff
);
#else
#else
vio_timeout
(
net
->
vio
,
net
->
read_timeout
);
vio_timeout
(
net
->
vio
,
0
,
net
->
read_timeout
);
#endif
/* NO_ALARM */
#endif
/* NO_ALARM */
pos
=
net
->
buff
+
net
->
where_b
;
/* net->packet -4 */
pos
=
net
->
buff
+
net
->
where_b
;
/* net->packet -4 */
...
...
vio/vio_priv.h
View file @
ad6de2c0
...
@@ -23,7 +23,7 @@
...
@@ -23,7 +23,7 @@
#include <m_string.h>
#include <m_string.h>
#include <violite.h>
#include <violite.h>
void
vio_ignore_timeout
(
Vio
*
vio
,
uint
timeout
);
void
vio_ignore_timeout
(
Vio
*
vio
,
uint
which
,
uint
timeout
);
#ifdef HAVE_OPENSSL
#ifdef HAVE_OPENSSL
#include "my_net.h"
/* needed because of struct in_addr */
#include "my_net.h"
/* needed because of struct in_addr */
...
@@ -31,7 +31,7 @@ void vio_ignore_timeout(Vio *vio, uint timeout);
...
@@ -31,7 +31,7 @@ void vio_ignore_timeout(Vio *vio, uint timeout);
void
vio_ssl_delete
(
Vio
*
vio
);
void
vio_ssl_delete
(
Vio
*
vio
);
int
vio_ssl_read
(
Vio
*
vio
,
gptr
buf
,
int
size
);
int
vio_ssl_read
(
Vio
*
vio
,
gptr
buf
,
int
size
);
int
vio_ssl_write
(
Vio
*
vio
,
const
gptr
buf
,
int
size
);
int
vio_ssl_write
(
Vio
*
vio
,
const
gptr
buf
,
int
size
);
void
vio_ssl_timeout
(
Vio
*
vio
,
uint
timeout
);
void
vio_ssl_timeout
(
Vio
*
vio
,
uint
which
,
uint
timeout
);
/* setsockopt TCP_NODELAY at IPPROTO_TCP level, when possible. */
/* setsockopt TCP_NODELAY at IPPROTO_TCP level, when possible. */
int
vio_ssl_fastsend
(
Vio
*
vio
);
int
vio_ssl_fastsend
(
Vio
*
vio
);
...
...
vio/viosocket.c
View file @
ad6de2c0
...
@@ -364,12 +364,14 @@ my_bool vio_poll_read(Vio *vio,uint timeout)
...
@@ -364,12 +364,14 @@ my_bool vio_poll_read(Vio *vio,uint timeout)
void
vio_timeout
(
Vio
*
vio
__attribute__
((
unused
)),
void
vio_timeout
(
Vio
*
vio
__attribute__
((
unused
)),
uint
timeout
__attribute__
((
unused
)))
uint
which
__attribute__
((
unused
)),
uint
timeout
__attribute__
((
unused
)))
{
{
#ifdef __WIN__
#ifdef __WIN__
ulong
wait_timeout
=
(
ulong
)
timeout
*
1000
;
ulong
wait_timeout
=
(
ulong
)
timeout
*
1000
;
(
void
)
setsockopt
(
vio
->
sd
,
SOL_SOCKET
,
SO_RCVTIMEO
,
(
char
*
)
&
wait_timeout
,
(
void
)
setsockopt
(
vio
->
sd
,
SOL_SOCKET
,
sizeof
(
wait_timeout
));
which
?
SO_SNDTIMEO
:
SO_RCVTIMEO
,
(
char
*
)
&
wait_timeout
,
sizeof
(
wait_timeout
));
#endif
/* __WIN__ */
#endif
/* __WIN__ */
}
}
...
...
vio/viossl.c
View file @
ad6de2c0
...
@@ -424,7 +424,8 @@ int vio_ssl_blocking(Vio * vio __attribute__((unused)),
...
@@ -424,7 +424,8 @@ int vio_ssl_blocking(Vio * vio __attribute__((unused)),
void
vio_ssl_timeout
(
Vio
*
vio
__attribute__
((
unused
)),
void
vio_ssl_timeout
(
Vio
*
vio
__attribute__
((
unused
)),
uint
timeout
__attribute__
((
unused
)))
uint
which
__attribute__
((
unused
)),
uint
timeout
__attribute__
((
unused
)))
{
{
/* Not yet implemented (non critical) */
/* Not yet implemented (non critical) */
}
}
...
...
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