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
a25431a9
Commit
a25431a9
authored
Feb 16, 2007
by
tomas@poseidon.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb
into poseidon.mysql.com:/home/tomas/mysql-5.1-new-ndb
parents
d36db96c
80fe0fe4
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
36 additions
and
32 deletions
+36
-32
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
+3
-3
storage/ndb/src/kernel/blocks/dbtup/DbtupAbort.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupAbort.cpp
+2
-2
storage/ndb/src/kernel/blocks/dbtup/DbtupCommit.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupCommit.cpp
+1
-1
storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
+4
-4
storage/ndb/test/ndbapi/testDict.cpp
storage/ndb/test/ndbapi/testDict.cpp
+5
-1
storage/ndb/test/run-test/daily-basic-tests.txt
storage/ndb/test/run-test/daily-basic-tests.txt
+1
-1
storage/ndb/test/run-test/main.cpp
storage/ndb/test/run-test/main.cpp
+10
-13
storage/ndb/test/src/HugoOperations.cpp
storage/ndb/test/src/HugoOperations.cpp
+10
-7
No files found.
storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp
View file @
a25431a9
...
@@ -4257,7 +4257,7 @@ Dblqh::nr_copy_delete_row(Signal* signal,
...
@@ -4257,7 +4257,7 @@ Dblqh::nr_copy_delete_row(Signal* signal,
signal
->
theData
,
sizeof
(
Local_key
));
signal
->
theData
,
sizeof
(
Local_key
));
regTcPtr
.
p
->
m_nr_delete
.
m_page_id
[
pos
]
=
RNIL
;
regTcPtr
.
p
->
m_nr_delete
.
m_page_id
[
pos
]
=
RNIL
;
regTcPtr
.
p
->
m_nr_delete
.
m_cnt
=
pos
+
2
;
regTcPtr
.
p
->
m_nr_delete
.
m_cnt
=
pos
+
2
;
ndbout
<<
"PENDING DISK DELETE: "
<<
if
(
0
)
ndbout
<<
"PENDING DISK DELETE: "
<<
regTcPtr
.
p
->
m_nr_delete
.
m_disk_ref
[
pos
]
<<
endl
;
regTcPtr
.
p
->
m_nr_delete
.
m_disk_ref
[
pos
]
<<
endl
;
}
}
...
@@ -7573,7 +7573,7 @@ void Dblqh::lqhTransNextLab(Signal* signal)
...
@@ -7573,7 +7573,7 @@ void Dblqh::lqhTransNextLab(Signal* signal)
* THE RECEIVER OF THE COPY HAVE FAILED.
* THE RECEIVER OF THE COPY HAVE FAILED.
* WE HAVE TO CLOSE THE COPY PROCESS.
* WE HAVE TO CLOSE THE COPY PROCESS.
* ----------------------------------------------------------- */
* ----------------------------------------------------------- */
ndbout_c
(
"close copy"
);
if
(
0
)
ndbout_c
(
"close copy"
);
tcConnectptr
.
p
->
tcNodeFailrec
=
tcNodeFailptr
.
i
;
tcConnectptr
.
p
->
tcNodeFailrec
=
tcNodeFailptr
.
i
;
tcConnectptr
.
p
->
abortState
=
TcConnectionrec
::
NEW_FROM_TC
;
tcConnectptr
.
p
->
abortState
=
TcConnectionrec
::
NEW_FROM_TC
;
closeCopyRequestLab
(
signal
);
closeCopyRequestLab
(
signal
);
...
@@ -10834,7 +10834,7 @@ void Dblqh::tupCopyCloseConfLab(Signal* signal)
...
@@ -10834,7 +10834,7 @@ void Dblqh::tupCopyCloseConfLab(Signal* signal)
void
Dblqh
::
closeCopyRequestLab
(
Signal
*
signal
)
void
Dblqh
::
closeCopyRequestLab
(
Signal
*
signal
)
{
{
scanptr
.
p
->
scanErrorCounter
++
;
scanptr
.
p
->
scanErrorCounter
++
;
ndbout_c
(
"closeCopyRequestLab: scanState: %d"
,
scanptr
.
p
->
scanState
);
if
(
0
)
ndbout_c
(
"closeCopyRequestLab: scanState: %d"
,
scanptr
.
p
->
scanState
);
switch
(
scanptr
.
p
->
scanState
)
{
switch
(
scanptr
.
p
->
scanState
)
{
case
ScanRecord
:
:
WAIT_TUPKEY_COPY
:
case
ScanRecord
:
:
WAIT_TUPKEY_COPY
:
case
ScanRecord
:
:
WAIT_NEXT_SCAN_COPY
:
case
ScanRecord
:
:
WAIT_NEXT_SCAN_COPY
:
...
...
storage/ndb/src/kernel/blocks/dbtup/DbtupAbort.cpp
View file @
a25431a9
...
@@ -145,7 +145,7 @@ void Dbtup::do_tup_abortreq(Signal* signal, Uint32 flags)
...
@@ -145,7 +145,7 @@ void Dbtup::do_tup_abortreq(Signal* signal, Uint32 flags)
{
{
if
(
copy_bits
&
Tuple_header
::
MM_GROWN
)
if
(
copy_bits
&
Tuple_header
::
MM_GROWN
)
{
{
ndbout_c
(
"abort grow"
);
if
(
0
)
ndbout_c
(
"abort grow"
);
Ptr
<
Page
>
vpage
;
Ptr
<
Page
>
vpage
;
Uint32
idx
=
regOperPtr
.
p
->
m_tuple_location
.
m_page_idx
;
Uint32
idx
=
regOperPtr
.
p
->
m_tuple_location
.
m_page_idx
;
Uint32
mm_vars
=
regTabPtr
.
p
->
m_attributes
[
MM
].
m_no_of_varsize
;
Uint32
mm_vars
=
regTabPtr
.
p
->
m_attributes
[
MM
].
m_no_of_varsize
;
...
@@ -168,7 +168,7 @@ void Dbtup::do_tup_abortreq(Signal* signal, Uint32 flags)
...
@@ -168,7 +168,7 @@ void Dbtup::do_tup_abortreq(Signal* signal, Uint32 flags)
}
}
else
if
(
bits
&
Tuple_header
::
MM_SHRINK
)
else
if
(
bits
&
Tuple_header
::
MM_SHRINK
)
{
{
ndbout_c
(
"abort shrink"
);
if
(
0
)
ndbout_c
(
"abort shrink"
);
}
}
}
}
else
if
(
regOperPtr
.
p
->
is_first_operation
()
&&
else
if
(
regOperPtr
.
p
->
is_first_operation
()
&&
...
...
storage/ndb/src/kernel/blocks/dbtup/DbtupCommit.cpp
View file @
a25431a9
...
@@ -514,7 +514,7 @@ void Dbtup::execTUP_COMMITREQ(Signal* signal)
...
@@ -514,7 +514,7 @@ void Dbtup::execTUP_COMMITREQ(Signal* signal)
c_lgman
->
free_log_space
(
regFragPtr
.
p
->
m_logfile_group_id
,
c_lgman
->
free_log_space
(
regFragPtr
.
p
->
m_logfile_group_id
,
regOperPtr
.
p
->
m_undo_buffer_space
);
regOperPtr
.
p
->
m_undo_buffer_space
);
ndbout_c
(
"insert+delete"
);
if
(
0
)
ndbout_c
(
"insert+delete"
);
goto
skip_disk
;
goto
skip_disk
;
}
}
}
}
...
...
storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp
View file @
a25431a9
...
@@ -2857,7 +2857,7 @@ Dbtup::handle_size_change_after_update(KeyReqStruct* req_struct,
...
@@ -2857,7 +2857,7 @@ Dbtup::handle_size_change_after_update(KeyReqStruct* req_struct,
if
(
needed
<=
alloc
)
if
(
needed
<=
alloc
)
{
{
//ndbassert(!regOperPtr->is_first_operation());
//ndbassert(!regOperPtr->is_first_operation());
ndbout_c
(
" no grow"
);
if
(
0
)
ndbout_c
(
" no grow"
);
return
0
;
return
0
;
}
}
copy_bits
|=
Tuple_header
::
MM_GROWN
;
copy_bits
|=
Tuple_header
::
MM_GROWN
;
...
@@ -3143,7 +3143,7 @@ Dbtup::nr_delete(Signal* signal, Uint32 senderData,
...
@@ -3143,7 +3143,7 @@ Dbtup::nr_delete(Signal* signal, Uint32 senderData,
break
;
break
;
}
}
ndbout
<<
"DIRECT DISK DELETE: "
<<
disk
<<
endl
;
if
(
0
)
ndbout
<<
"DIRECT DISK DELETE: "
<<
disk
<<
endl
;
disk_page_free
(
signal
,
tablePtr
.
p
,
fragPtr
.
p
,
disk_page_free
(
signal
,
tablePtr
.
p
,
fragPtr
.
p
,
&
disk
,
*
(
PagePtr
*
)
&
disk_page
,
gci
);
&
disk
,
*
(
PagePtr
*
)
&
disk_page
,
gci
);
return
0
;
return
0
;
...
@@ -3195,7 +3195,7 @@ Dbtup::nr_delete_page_callback(Signal* signal,
...
@@ -3195,7 +3195,7 @@ Dbtup::nr_delete_page_callback(Signal* signal,
break
;
break
;
}
}
ndbout
<<
"PAGE CALLBACK DISK DELETE: "
<<
op
.
m_disk_ref
<<
endl
;
if
(
0
)
ndbout
<<
"PAGE CALLBACK DISK DELETE: "
<<
op
.
m_disk_ref
<<
endl
;
disk_page_free
(
signal
,
tablePtr
.
p
,
fragPtr
.
p
,
disk_page_free
(
signal
,
tablePtr
.
p
,
fragPtr
.
p
,
&
op
.
m_disk_ref
,
pagePtr
,
op
.
m_gci
);
&
op
.
m_disk_ref
,
pagePtr
,
op
.
m_gci
);
...
@@ -3227,7 +3227,7 @@ Dbtup::nr_delete_log_buffer_callback(Signal* signal,
...
@@ -3227,7 +3227,7 @@ Dbtup::nr_delete_log_buffer_callback(Signal* signal,
/**
/**
* reset page no
* reset page no
*/
*/
ndbout
<<
"LOGBUFFER CALLBACK DISK DELETE: "
<<
op
.
m_disk_ref
<<
endl
;
if
(
0
)
ndbout
<<
"LOGBUFFER CALLBACK DISK DELETE: "
<<
op
.
m_disk_ref
<<
endl
;
disk_page_free
(
signal
,
tablePtr
.
p
,
fragPtr
.
p
,
disk_page_free
(
signal
,
tablePtr
.
p
,
fragPtr
.
p
,
&
op
.
m_disk_ref
,
pagePtr
,
op
.
m_gci
);
&
op
.
m_disk_ref
,
pagePtr
,
op
.
m_gci
);
...
...
storage/ndb/test/ndbapi/testDict.cpp
View file @
a25431a9
...
@@ -322,6 +322,10 @@ int runCreateAndDropAtRandom(NDBT_Context* ctx, NDBT_Step* step)
...
@@ -322,6 +322,10 @@ int runCreateAndDropAtRandom(NDBT_Context* ctx, NDBT_Step* step)
i
++
;
i
++
;
}
}
for
(
Uint32
i
=
0
;
i
<
numTables
;
i
++
)
if
(
tabList
[
i
])
pDic
->
dropTable
(
NDBT_Tables
::
getTable
(
i
)
->
getName
());
delete
[]
tabList
;
delete
[]
tabList
;
return
result
;
return
result
;
}
}
...
...
storage/ndb/test/run-test/daily-basic-tests.txt
View file @
a25431a9
...
@@ -525,7 +525,7 @@ max-time: 1000
...
@@ -525,7 +525,7 @@ max-time: 1000
cmd: testNodeRestart
cmd: testNodeRestart
args: -n Bug25554 T1
args: -n Bug25554 T1
max-time:
1
000
max-time:
3
000
cmd: testNodeRestart
cmd: testNodeRestart
args: -n Bug25984
args: -n Bug25984
...
...
storage/ndb/test/run-test/main.cpp
View file @
a25431a9
...
@@ -239,10 +239,7 @@ main(int argc, char ** argv)
...
@@ -239,10 +239,7 @@ main(int argc, char ** argv)
if
(
!
stop_processes
(
g_config
,
~
0
))
if
(
!
stop_processes
(
g_config
,
~
0
))
goto
end
;
goto
end
;
if
(
!
setup_directories
(
g_config
,
2
))
if
(
!
setup_hosts
(
g_config
))
goto
end
;
if
(
!
setup_files
(
g_config
,
2
,
1
))
goto
end
;
goto
end
;
if
(
!
start
(
g_config
,
p_ndb
|
p_servers
))
if
(
!
start
(
g_config
,
p_ndb
|
p_servers
))
...
@@ -1070,6 +1067,7 @@ gather_result(atrt_config& config, int * result){
...
@@ -1070,6 +1067,7 @@ gather_result(atrt_config& config, int * result){
tmp
.
appfmt
(
" %s:%s/*"
,
tmp
.
appfmt
(
" %s:%s/*"
,
config
.
m_hosts
[
i
]
->
m_hostname
.
c_str
(),
config
.
m_hosts
[
i
]
->
m_hostname
.
c_str
(),
config
.
m_hosts
[
i
]
->
m_basedir
.
c_str
());
config
.
m_hosts
[
i
]
->
m_basedir
.
c_str
());
}
g_logger
.
debug
(
"system(%s)"
,
tmp
.
c_str
());
g_logger
.
debug
(
"system(%s)"
,
tmp
.
c_str
());
const
int
r1
=
system
(
tmp
.
c_str
());
const
int
r1
=
system
(
tmp
.
c_str
());
...
@@ -1078,7 +1076,6 @@ gather_result(atrt_config& config, int * result){
...
@@ -1078,7 +1076,6 @@ gather_result(atrt_config& config, int * result){
g_logger
.
critical
(
"Failed to gather result!"
);
g_logger
.
critical
(
"Failed to gather result!"
);
return
false
;
return
false
;
}
}
}
g_logger
.
debug
(
"system(%s)"
,
g_analyze_progname
);
g_logger
.
debug
(
"system(%s)"
,
g_analyze_progname
);
const
int
r2
=
system
(
g_analyze_progname
);
const
int
r2
=
system
(
g_analyze_progname
);
...
...
storage/ndb/test/src/HugoOperations.cpp
View file @
a25431a9
...
@@ -330,8 +330,8 @@ int HugoOperations::execute_Commit(Ndb* pNdb,
...
@@ -330,8 +330,8 @@ int HugoOperations::execute_Commit(Ndb* pNdb,
int
check
=
0
;
int
check
=
0
;
check
=
pTrans
->
execute
(
Commit
,
eao
);
check
=
pTrans
->
execute
(
Commit
,
eao
);
if
(
check
==
-
1
)
{
const
NdbError
err
=
pTrans
->
getNdbError
();
const
NdbError
err
=
pTrans
->
getNdbError
();
if
(
check
==
-
1
||
err
.
code
)
{
ERR
(
err
);
ERR
(
err
);
NdbOperation
*
pOp
=
pTrans
->
getNdbErrorOperation
();
NdbOperation
*
pOp
=
pTrans
->
getNdbErrorOperation
();
if
(
pOp
!=
NULL
){
if
(
pOp
!=
NULL
){
...
@@ -379,13 +379,16 @@ int HugoOperations::execute_NoCommit(Ndb* pNdb, AbortOption eao){
...
@@ -379,13 +379,16 @@ int HugoOperations::execute_NoCommit(Ndb* pNdb, AbortOption eao){
int
check
;
int
check
;
check
=
pTrans
->
execute
(
NoCommit
,
eao
);
check
=
pTrans
->
execute
(
NoCommit
,
eao
);
if
(
check
==
-
1
)
{
const
NdbError
err
=
pTrans
->
getNdbError
();
const
NdbError
err
=
pTrans
->
getNdbError
();
if
(
check
==
-
1
||
err
.
code
)
{
ERR
(
err
);
ERR
(
err
);
NdbOperation
*
pOp
;
const
NdbOperation
*
pOp
=
pTrans
->
getNdbErrorOperation
();
while
((
pOp
=
pTrans
->
getNdbErrorOperation
())
!=
NULL
){
while
(
pOp
!=
NULL
)
{
const
NdbError
err2
=
pOp
->
getNdbError
();
const
NdbError
err2
=
pOp
->
getNdbError
();
if
(
err2
.
code
)
ERR
(
err2
);
ERR
(
err2
);
pOp
=
pTrans
->
getNextCompletedOperation
(
pOp
);
}
}
if
(
err
.
code
==
0
)
if
(
err
.
code
==
0
)
return
NDBT_FAILED
;
return
NDBT_FAILED
;
...
...
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