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
a0e44ec1
Commit
a0e44ec1
authored
Aug 28, 2009
by
Davi Arnaut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for a few assorted compiler warnings.
parent
edb71b0c
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
372 additions
and
346 deletions
+372
-346
client/mysql.cc
client/mysql.cc
+9
-9
client/mysqldump.c
client/mysqldump.c
+3
-3
mysys/array.c
mysys/array.c
+1
-1
sql/item.cc
sql/item.cc
+1
-2
storage/myisam/mi_check.c
storage/myisam/mi_check.c
+1
-1
storage/ndb/include/mgmapi/ndb_logevent.h
storage/ndb/include/mgmapi/ndb_logevent.h
+356
-329
tests/mysql_client_test.c
tests/mysql_client_test.c
+1
-1
No files found.
client/mysql.cc
View file @
a0e44ec1
...
...
@@ -86,7 +86,7 @@ extern "C" {
#endif
#undef bcmp // Fix problem with new readline
#if defined(
__WIN__)
#if defined(__WIN__)
#include <conio.h>
#elif !defined(__NETWARE__)
#include <readline/readline.h>
...
...
@@ -106,7 +106,7 @@ extern "C" {
#define cmp_database(cs,A,B) strcmp((A),(B))
#endif
#if !defined(
__WIN__) && !defined(__NETWARE__) && !defined(THREAD)
#if !defined(__WIN__) && !defined(__NETWARE__) && !defined(THREAD)
#define USE_POPEN
#endif
...
...
@@ -1862,7 +1862,7 @@ static int read_and_execute(bool interactive)
if
(
opt_outfile
&&
glob_buffer
.
is_empty
())
fflush
(
OUTFILE
);
#if defined(
__WIN__) || defined(__NETWARE__)
#if defined(__WIN__) || defined(__NETWARE__)
tee_fputs
(
prompt
,
stdout
);
#if defined(__NETWARE__)
line
=
fgets
(
linebuffer
,
sizeof
(
linebuffer
)
-
1
,
stdin
);
...
...
@@ -1873,7 +1873,7 @@ static int read_and_execute(bool interactive)
if
(
p
!=
NULL
)
*
p
=
'\0'
;
}
#else
defined(__WIN__)
#else
if
(
!
tmpbuf
.
is_alloced
())
tmpbuf
.
alloc
(
65535
);
tmpbuf
.
length
(
0
);
...
...
@@ -1899,7 +1899,7 @@ static int read_and_execute(bool interactive)
if
(
opt_outfile
)
fputs
(
prompt
,
OUTFILE
);
line
=
readline
(
prompt
);
#endif
/* defined(
__WIN__) || defined(__NETWARE__) */
#endif
/* defined(__WIN__) || defined(__NETWARE__) */
/*
When Ctrl+d or Ctrl+z is pressed, the line may be NULL on some OS
...
...
@@ -1947,10 +1947,10 @@ static int read_and_execute(bool interactive)
}
}
#if defined(
__WIN__) || defined(__NETWARE__)
#if defined(__WIN__) || defined(__NETWARE__)
buffer
.
free
();
#endif
#if defined(
__WIN__)
#if defined(__WIN__)
tmpbuf
.
free
();
#endif
...
...
@@ -4602,7 +4602,7 @@ void tee_putc(int c, FILE *file)
putc
(
c
,
OUTFILE
);
}
#if defined(
__WIN__) || defined(__NETWARE__)
#if defined(__WIN__) || defined(__NETWARE__)
#include <time.h>
#else
#include <sys/times.h>
...
...
@@ -4614,7 +4614,7 @@ void tee_putc(int c, FILE *file)
static
ulong
start_timer
(
void
)
{
#if defined(
__WIN__) || defined(__NETWARE__)
#if defined(__WIN__) || defined(__NETWARE__)
return
clock
();
#else
struct
tms
tms_tmp
;
...
...
client/mysqldump.c
View file @
a0e44ec1
...
...
@@ -5008,7 +5008,7 @@ int main(int argc, char **argv)
exit_code
=
get_options
(
&
argc
,
&
argv
);
if
(
exit_code
)
{
free_resources
(
0
);
free_resources
();
exit
(
exit_code
);
}
...
...
@@ -5016,14 +5016,14 @@ int main(int argc, char **argv)
{
if
(
!
(
stderror_file
=
freopen
(
log_error_file
,
"a+"
,
stderr
)))
{
free_resources
(
0
);
free_resources
();
exit
(
EX_MYSQLERR
);
}
}
if
(
connect_to_db
(
current_host
,
current_user
,
opt_password
))
{
free_resources
(
0
);
free_resources
();
exit
(
EX_MYSQLERR
);
}
if
(
!
path
)
...
...
mysys/array.c
View file @
a0e44ec1
...
...
@@ -67,7 +67,7 @@ my_bool init_dynamic_array2(DYNAMIC_ARRAY *array, uint element_size,
Since the dynamic array is usable even if allocation fails here malloc
should not throw an error
*/
if
(
!
(
array
->
buffer
=
(
char
*
)
my_malloc_ci
(
element_size
*
init_alloc
,
MYF
(
0
))))
if
(
!
(
array
->
buffer
=
(
u
char
*
)
my_malloc_ci
(
element_size
*
init_alloc
,
MYF
(
0
))))
array
->
max_element
=
0
;
DBUG_RETURN
(
FALSE
);
}
...
...
sql/item.cc
View file @
a0e44ec1
...
...
@@ -3305,8 +3305,7 @@ Item_copy *Item_copy::create (Item *item)
new
Item_copy_uint
(
item
)
:
new
Item_copy_int
(
item
);
case
DECIMAL_RESULT
:
return
new
Item_copy_decimal
(
item
);
case
ROW_RESULT
:
default:
DBUG_ASSERT
(
0
);
}
/* should not happen */
...
...
storage/myisam/mi_check.c
View file @
a0e44ec1
...
...
@@ -1549,7 +1549,7 @@ int mi_repair(MI_CHECK *param, register MI_INFO *info,
if
(
!
param
->
using_global_keycache
)
VOID
(
init_key_cache
(
dflt_key_cache
,
param
->
key_cache_block_size
,
param
->
use_buffers
,
0
,
0
));
(
size_t
)
param
->
use_buffers
,
0
,
0
));
if
(
init_io_cache
(
&
param
->
read_cache
,
info
->
dfile
,
(
uint
)
param
->
read_buffer_length
,
...
...
storage/ndb/include/mgmapi/ndb_logevent.h
View file @
a0e44ec1
...
...
@@ -272,6 +272,300 @@ extern "C" {
#endif
};
struct
ndb_logevent_Connected
{
unsigned
node
;
};
struct
ndb_logevent_Disconnected
{
unsigned
node
;
};
struct
ndb_logevent_CommunicationClosed
{
unsigned
node
;
};
struct
ndb_logevent_CommunicationOpened
{
unsigned
node
;
};
struct
ndb_logevent_ConnectedApiVersion
{
unsigned
node
;
unsigned
version
;
};
/* CHECKPOINT */
struct
ndb_logevent_GlobalCheckpointStarted
{
unsigned
gci
;
};
struct
ndb_logevent_GlobalCheckpointCompleted
{
unsigned
gci
;
};
struct
ndb_logevent_LocalCheckpointStarted
{
unsigned
lci
;
unsigned
keep_gci
;
unsigned
restore_gci
;
};
struct
ndb_logevent_LocalCheckpointCompleted
{
unsigned
lci
;
};
struct
ndb_logevent_LCPStoppedInCalcKeepGci
{
unsigned
data
;
};
struct
ndb_logevent_LCPFragmentCompleted
{
unsigned
node
;
unsigned
table_id
;
unsigned
fragment_id
;
};
struct
ndb_logevent_UndoLogBlocked
{
unsigned
acc_count
;
unsigned
tup_count
;
};
/* STARTUP */
struct
ndb_logevent_NDBStartStarted
{
unsigned
version
;
};
struct
ndb_logevent_NDBStartCompleted
{
unsigned
version
;
};
struct
ndb_logevent_STTORRYRecieved
{
};
struct
ndb_logevent_StartPhaseCompleted
{
unsigned
phase
;
unsigned
starttype
;
};
struct
ndb_logevent_CM_REGCONF
{
unsigned
own_id
;
unsigned
president_id
;
unsigned
dynamic_id
;
};
struct
ndb_logevent_CM_REGREF
{
unsigned
own_id
;
unsigned
other_id
;
unsigned
cause
;
};
struct
ndb_logevent_FIND_NEIGHBOURS
{
unsigned
own_id
;
unsigned
left_id
;
unsigned
right_id
;
unsigned
dynamic_id
;
};
struct
ndb_logevent_NDBStopStarted
{
unsigned
stoptype
;
};
struct
ndb_logevent_NDBStopCompleted
{
unsigned
action
;
unsigned
signum
;
};
struct
ndb_logevent_NDBStopForced
{
unsigned
action
;
unsigned
signum
;
unsigned
error
;
unsigned
sphase
;
unsigned
extra
;
};
struct
ndb_logevent_NDBStopAborted
{
};
struct
ndb_logevent_StartREDOLog
{
unsigned
node
;
unsigned
keep_gci
;
unsigned
completed_gci
;
unsigned
restorable_gci
;
};
struct
ndb_logevent_StartLog
{
unsigned
log_part
;
unsigned
start_mb
;
unsigned
stop_mb
;
unsigned
gci
;
};
struct
ndb_logevent_UNDORecordsExecuted
{
unsigned
block
;
unsigned
data1
;
unsigned
data2
;
unsigned
data3
;
unsigned
data4
;
unsigned
data5
;
unsigned
data6
;
unsigned
data7
;
unsigned
data8
;
unsigned
data9
;
unsigned
data10
;
};
/* NODERESTART */
struct
ndb_logevent_NR_CopyDict
{
};
struct
ndb_logevent_NR_CopyDistr
{
};
struct
ndb_logevent_NR_CopyFragsStarted
{
unsigned
dest_node
;
};
struct
ndb_logevent_NR_CopyFragDone
{
unsigned
dest_node
;
unsigned
table_id
;
unsigned
fragment_id
;
};
struct
ndb_logevent_NR_CopyFragsCompleted
{
unsigned
dest_node
;
};
struct
ndb_logevent_NodeFailCompleted
{
unsigned
block
;
/* 0 = all */
unsigned
failed_node
;
unsigned
completing_node
;
/* 0 = all */
};
struct
ndb_logevent_NODE_FAILREP
{
unsigned
failed_node
;
unsigned
failure_state
;
};
struct
ndb_logevent_ArbitState
{
unsigned
code
;
/* code & state << 16 */
unsigned
arbit_node
;
unsigned
ticket_0
;
unsigned
ticket_1
;
/* TODO */
};
struct
ndb_logevent_ArbitResult
{
unsigned
code
;
/* code & state << 16 */
unsigned
arbit_node
;
unsigned
ticket_0
;
unsigned
ticket_1
;
/* TODO */
};
struct
ndb_logevent_GCP_TakeoverStarted
{
};
struct
ndb_logevent_GCP_TakeoverCompleted
{
};
struct
ndb_logevent_LCP_TakeoverStarted
{
};
struct
ndb_logevent_LCP_TakeoverCompleted
{
unsigned
state
;
};
/* STATISTIC */
struct
ndb_logevent_TransReportCounters
{
unsigned
trans_count
;
unsigned
commit_count
;
unsigned
read_count
;
unsigned
simple_read_count
;
unsigned
write_count
;
unsigned
attrinfo_count
;
unsigned
conc_op_count
;
unsigned
abort_count
;
unsigned
scan_count
;
unsigned
range_scan_count
;
};
struct
ndb_logevent_OperationReportCounters
{
unsigned
ops
;
};
struct
ndb_logevent_TableCreated
{
unsigned
table_id
;
};
struct
ndb_logevent_JobStatistic
{
unsigned
mean_loop_count
;
};
struct
ndb_logevent_SendBytesStatistic
{
unsigned
to_node
;
unsigned
mean_sent_bytes
;
};
struct
ndb_logevent_ReceiveBytesStatistic
{
unsigned
from_node
;
unsigned
mean_received_bytes
;
};
struct
ndb_logevent_MemoryUsage
{
int
gth
;
/* union is for compatibility backward.
* page_size_kb member variable should be removed in the future
*/
union
{
unsigned
page_size_kb
;
unsigned
page_size_bytes
;
};
unsigned
pages_used
;
unsigned
pages_total
;
unsigned
block
;
};
/* ERROR */
struct
ndb_logevent_TransporterError
{
unsigned
to_node
;
unsigned
code
;
};
struct
ndb_logevent_TransporterWarning
{
unsigned
to_node
;
unsigned
code
;
};
struct
ndb_logevent_MissedHeartbeat
{
unsigned
node
;
unsigned
count
;
};
struct
ndb_logevent_DeadDueToHeartbeat
{
unsigned
node
;
};
struct
ndb_logevent_WarningEvent
{
/* TODO */
};
/* INFO */
struct
ndb_logevent_SentHeartbeat
{
unsigned
node
;
};
struct
ndb_logevent_CreateLogBytes
{
unsigned
node
;
};
struct
ndb_logevent_InfoEvent
{
/* TODO */
};
struct
ndb_logevent_EventBufferStatus
{
unsigned
usage
;
unsigned
alloc
;
unsigned
max
;
unsigned
apply_gci_l
;
unsigned
apply_gci_h
;
unsigned
latest_gci_l
;
unsigned
latest_gci_h
;
};
/** Log event data for @ref NDB_LE_BackupStarted */
struct
ndb_logevent_BackupStarted
{
unsigned
starting_node
;
unsigned
backup_id
;
};
/** Log event data @ref NDB_LE_BackupFailedToStart */
struct
ndb_logevent_BackupFailedToStart
{
unsigned
starting_node
;
unsigned
error
;
};
/** Log event data @ref NDB_LE_BackupCompleted */
struct
ndb_logevent_BackupCompleted
{
unsigned
starting_node
;
unsigned
backup_id
;
unsigned
start_gci
;
unsigned
stop_gci
;
unsigned
n_records
;
unsigned
n_log_records
;
unsigned
n_bytes
;
unsigned
n_log_bytes
;
};
/** Log event data @ref NDB_LE_BackupAborted */
struct
ndb_logevent_BackupAborted
{
unsigned
starting_node
;
unsigned
backup_id
;
unsigned
error
;
};
/** Log event data @ref NDB_LE_SingleUser */
struct
ndb_logevent_SingleUser
{
unsigned
type
;
unsigned
node_id
;
};
/** Log even data @ref NDB_LE_StartReport */
struct
ndb_logevent_StartReport
{
unsigned
report_type
;
unsigned
remaining_time
;
unsigned
bitmask_size
;
unsigned
bitmask_data
[
1
];
};
/**
* Structure to store and retrieve log event information.
* @see @ref secSLogEvents
...
...
@@ -305,354 +599,87 @@ extern "C" {
*/
union
{
/* CONNECT */
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
node
;
}
Connected
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
node
;
}
Disconnected
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
node
;
}
CommunicationClosed
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
node
;
}
CommunicationOpened
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
node
;
unsigned
version
;
}
ConnectedApiVersion
;
struct
ndb_logevent_Connected
Connected
;
struct
ndb_logevent_Disconnected
Disconnected
;
struct
ndb_logevent_CommunicationClosed
CommunicationClosed
;
struct
ndb_logevent_CommunicationOpened
CommunicationOpened
;
struct
ndb_logevent_ConnectedApiVersion
ConnectedApiVersion
;
/* CHECKPOINT */
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
gci
;
}
GlobalCheckpointStarted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
gci
;
}
GlobalCheckpointCompleted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
lci
;
unsigned
keep_gci
;
unsigned
restore_gci
;
}
LocalCheckpointStarted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
lci
;
}
LocalCheckpointCompleted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
data
;
}
LCPStoppedInCalcKeepGci
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
node
;
unsigned
table_id
;
unsigned
fragment_id
;
}
LCPFragmentCompleted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
acc_count
;
unsigned
tup_count
;
}
UndoLogBlocked
;
struct
ndb_logevent_GlobalCheckpointStarted
GlobalCheckpointStarted
;
struct
ndb_logevent_GlobalCheckpointCompleted
GlobalCheckpointCompleted
;
struct
ndb_logevent_LocalCheckpointStarted
LocalCheckpointStarted
;
struct
ndb_logevent_LocalCheckpointCompleted
LocalCheckpointCompleted
;
struct
ndb_logevent_LCPStoppedInCalcKeepGci
LCPStoppedInCalcKeepGci
;
struct
ndb_logevent_LCPFragmentCompleted
LCPFragmentCompleted
;
struct
ndb_logevent_UndoLogBlocked
UndoLogBlocked
;
/* STARTUP */
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
version
;
}
NDBStartStarted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
version
;
}
NDBStartCompleted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
}
STTORRYRecieved
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
phase
;
unsigned
starttype
;
}
StartPhaseCompleted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
own_id
;
unsigned
president_id
;
unsigned
dynamic_id
;
}
CM_REGCONF
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
own_id
;
unsigned
other_id
;
unsigned
cause
;
}
CM_REGREF
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
own_id
;
unsigned
left_id
;
unsigned
right_id
;
unsigned
dynamic_id
;
}
FIND_NEIGHBOURS
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
stoptype
;
}
NDBStopStarted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
action
;
unsigned
signum
;
}
NDBStopCompleted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
action
;
unsigned
signum
;
unsigned
error
;
unsigned
sphase
;
unsigned
extra
;
}
NDBStopForced
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
}
NDBStopAborted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
node
;
unsigned
keep_gci
;
unsigned
completed_gci
;
unsigned
restorable_gci
;
}
StartREDOLog
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
log_part
;
unsigned
start_mb
;
unsigned
stop_mb
;
unsigned
gci
;
}
StartLog
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
block
;
unsigned
data1
;
unsigned
data2
;
unsigned
data3
;
unsigned
data4
;
unsigned
data5
;
unsigned
data6
;
unsigned
data7
;
unsigned
data8
;
unsigned
data9
;
unsigned
data10
;
}
UNDORecordsExecuted
;
struct
ndb_logevent_NDBStartStarted
NDBStartStarted
;
struct
ndb_logevent_NDBStartCompleted
NDBStartCompleted
;
struct
ndb_logevent_STTORRYRecieved
STTORRYRecieved
;
struct
ndb_logevent_StartPhaseCompleted
StartPhaseCompleted
;
struct
ndb_logevent_CM_REGCONF
CM_REGCONF
;
struct
ndb_logevent_CM_REGREF
CM_REGREF
;
struct
ndb_logevent_FIND_NEIGHBOURS
FIND_NEIGHBOURS
;
struct
ndb_logevent_NDBStopStarted
NDBStopStarted
;
struct
ndb_logevent_NDBStopCompleted
NDBStopCompleted
;
struct
ndb_logevent_NDBStopForced
NDBStopForced
;
struct
ndb_logevent_NDBStopAborted
NDBStopAborted
;
struct
ndb_logevent_StartREDOLog
StartREDOLog
;
struct
ndb_logevent_StartLog
StartLog
;
struct
ndb_logevent_UNDORecordsExecuted
UNDORecordsExecuted
;
/* NODERESTART */
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
}
NR_CopyDict
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
}
NR_CopyDistr
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
dest_node
;
}
NR_CopyFragsStarted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
dest_node
;
unsigned
table_id
;
unsigned
fragment_id
;
}
NR_CopyFragDone
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
dest_node
;
}
NR_CopyFragsCompleted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
block
;
/* 0 = all */
unsigned
failed_node
;
unsigned
completing_node
;
/* 0 = all */
}
NodeFailCompleted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
failed_node
;
unsigned
failure_state
;
}
NODE_FAILREP
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
code
;
/* code & state << 16 */
unsigned
arbit_node
;
unsigned
ticket_0
;
unsigned
ticket_1
;
/* TODO */
}
ArbitState
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
code
;
/* code & state << 16 */
unsigned
arbit_node
;
unsigned
ticket_0
;
unsigned
ticket_1
;
/* TODO */
}
ArbitResult
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
}
GCP_TakeoverStarted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
}
GCP_TakeoverCompleted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
}
LCP_TakeoverStarted
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
state
;
}
LCP_TakeoverCompleted
;
struct
ndb_logevent_NR_CopyDict
NR_CopyDict
;
struct
ndb_logevent_NR_CopyDistr
NR_CopyDistr
;
struct
ndb_logevent_NR_CopyFragsStarted
NR_CopyFragsStarted
;
struct
ndb_logevent_NR_CopyFragDone
NR_CopyFragDone
;
struct
ndb_logevent_NR_CopyFragsCompleted
NR_CopyFragsCompleted
;
struct
ndb_logevent_NodeFailCompleted
NodeFailCompleted
;
struct
ndb_logevent_NODE_FAILREP
NODE_FAILREP
;
struct
ndb_logevent_ArbitState
ArbitState
;
struct
ndb_logevent_ArbitResult
ArbitResult
;
struct
ndb_logevent_GCP_TakeoverStarted
GCP_TakeoverStarted
;
struct
ndb_logevent_GCP_TakeoverCompleted
GCP_TakeoverCompleted
;
struct
ndb_logevent_LCP_TakeoverStarted
LCP_TakeoverStarted
;
struct
ndb_logevent_LCP_TakeoverCompleted
LCP_TakeoverCompleted
;
/* STATISTIC */
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
trans_count
;
unsigned
commit_count
;
unsigned
read_count
;
unsigned
simple_read_count
;
unsigned
write_count
;
unsigned
attrinfo_count
;
unsigned
conc_op_count
;
unsigned
abort_count
;
unsigned
scan_count
;
unsigned
range_scan_count
;
}
TransReportCounters
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
ops
;
}
OperationReportCounters
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
table_id
;
}
TableCreated
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
mean_loop_count
;
}
JobStatistic
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
to_node
;
unsigned
mean_sent_bytes
;
}
SendBytesStatistic
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
from_node
;
unsigned
mean_received_bytes
;
}
ReceiveBytesStatistic
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
int
gth
;
/* union is for compatibility backward.
* page_size_kb member variable should be removed in the future
*/
union
{
unsigned
page_size_kb
;
unsigned
page_size_bytes
;
};
unsigned
pages_used
;
unsigned
pages_total
;
unsigned
block
;
}
MemoryUsage
;
struct
ndb_logevent_TransReportCounters
TransReportCounters
;
struct
ndb_logevent_OperationReportCounters
OperationReportCounters
;
struct
ndb_logevent_TableCreated
TableCreated
;
struct
ndb_logevent_JobStatistic
JobStatistic
;
struct
ndb_logevent_SendBytesStatistic
SendBytesStatistic
;
struct
ndb_logevent_ReceiveBytesStatistic
ReceiveBytesStatistic
;
struct
ndb_logevent_MemoryUsage
MemoryUsage
;
/* ERROR */
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
to_node
;
unsigned
code
;
}
TransporterError
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
to_node
;
unsigned
code
;
}
TransporterWarning
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
node
;
unsigned
count
;
}
MissedHeartbeat
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
node
;
}
DeadDueToHeartbeat
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
/* TODO */
}
WarningEvent
;
struct
ndb_logevent_TransporterError
TransporterError
;
struct
ndb_logevent_TransporterWarning
TransporterWarning
;
struct
ndb_logevent_MissedHeartbeat
MissedHeartbeat
;
struct
ndb_logevent_DeadDueToHeartbeat
DeadDueToHeartbeat
;
struct
ndb_logevent_WarningEvent
WarningEvent
;
/* INFO */
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
node
;
}
SentHeartbeat
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
node
;
}
CreateLogBytes
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
/* TODO */
}
InfoEvent
;
/** Log event specific data for for corresponding NDB_LE_ log event */
struct
{
unsigned
usage
;
unsigned
alloc
;
unsigned
max
;
unsigned
apply_gci_l
;
unsigned
apply_gci_h
;
unsigned
latest_gci_l
;
unsigned
latest_gci_h
;
}
EventBufferStatus
;
struct
ndb_logevent_SentHeartbeat
SentHeartbeat
;
struct
ndb_logevent_CreateLogBytes
CreateLogBytes
;
struct
ndb_logevent_InfoEvent
InfoEvent
;
struct
ndb_logevent_EventBufferStatus
EventBufferStatus
;
/** Log event data for @ref NDB_LE_BackupStarted */
struct
{
unsigned
starting_node
;
unsigned
backup_id
;
}
BackupStarted
;
struct
ndb_logevent_BackupStarted
BackupStarted
;
/** Log event data @ref NDB_LE_BackupFailedToStart */
struct
{
unsigned
starting_node
;
unsigned
error
;
}
BackupFailedToStart
;
struct
ndb_logevent_BackupFailedToStart
BackupFailedToStart
;
/** Log event data @ref NDB_LE_BackupCompleted */
struct
{
unsigned
starting_node
;
unsigned
backup_id
;
unsigned
start_gci
;
unsigned
stop_gci
;
unsigned
n_records
;
unsigned
n_log_records
;
unsigned
n_bytes
;
unsigned
n_log_bytes
;
}
BackupCompleted
;
struct
ndb_logevent_BackupCompleted
BackupCompleted
;
/** Log event data @ref NDB_LE_BackupAborted */
struct
{
unsigned
starting_node
;
unsigned
backup_id
;
unsigned
error
;
}
BackupAborted
;
struct
ndb_logevent_BackupAborted
BackupAborted
;
/** Log event data @ref NDB_LE_SingleUser */
struct
{
unsigned
type
;
unsigned
node_id
;
}
SingleUser
;
struct
ndb_logevent_SingleUser
SingleUser
;
/** Log even data @ref NDB_LE_StartReport */
struct
{
unsigned
report_type
;
unsigned
remaining_time
;
unsigned
bitmask_size
;
unsigned
bitmask_data
[
1
];
}
StartReport
;
struct
ndb_logevent_StartReport
StartReport
;
#ifndef DOXYGEN_FIX
};
#else
...
...
tests/mysql_client_test.c
View file @
a0e44ec1
...
...
@@ -4262,7 +4262,7 @@ static void test_fetch_date()
myheader
(
"test_fetch_date"
);
/* Will not work if sql_mode is NO_ZERO_DATE (implicit if TRADITIONAL)
/
*/
/* Will not work if sql_mode is NO_ZERO_DATE (implicit if TRADITIONAL) */
rc
=
mysql_query
(
mysql
,
"SET SQL_MODE=''"
);
myquery
(
rc
);
...
...
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