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
16698700
Commit
16698700
authored
Nov 14, 2007
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - Add new dump 8011
which dumps all subscribers
parent
5c059f7d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
storage/ndb/src/kernel/blocks/suma/Suma.cpp
storage/ndb/src/kernel/blocks/suma/Suma.cpp
+48
-0
No files found.
storage/ndb/src/kernel/blocks/suma/Suma.cpp
View file @
16698700
...
...
@@ -974,6 +974,54 @@ Suma::execDUMP_STATE_ORD(Signal* signal){
}
return
;
}
if
(
tCase
==
8011
)
{
jam
();
Uint32
bucket
=
signal
->
theData
[
1
];
KeyTable
<
Table
>::
Iterator
it
;
if
(
signal
->
getLength
()
==
1
)
{
jam
();
bucket
=
0
;
infoEvent
(
"-- Starting dump of subscribers --"
);
}
c_tables
.
next
(
bucket
,
it
);
const
Uint32
RT_BREAK
=
16
;
for
(
Uint32
i
=
0
;
i
<
RT_BREAK
||
it
.
bucket
==
bucket
;
i
++
)
{
jam
();
if
(
it
.
curr
.
i
==
RNIL
)
{
jam
();
infoEvent
(
"-- Ending dump of subscribers --"
);
return
;
}
infoEvent
(
"Table: %u ver: %u #n: %u (ref,data,subscritopn)"
,
it
.
curr
.
p
->
m_tableId
,
it
.
curr
.
p
->
m_schemaVersion
,
it
.
curr
.
p
->
n_subscribers
);
Ptr
<
Subscriber
>
ptr
;
LocalDLList
<
Subscriber
>
list
(
c_subscriberPool
,
it
.
curr
.
p
->
c_subscribers
);
for
(
list
.
first
(
ptr
);
!
ptr
.
isNull
();
list
.
next
(
ptr
),
i
++
)
{
jam
();
infoEvent
(
" [ %x %u %u ]"
,
ptr
.
p
->
m_senderRef
,
ptr
.
p
->
m_senderData
,
ptr
.
p
->
m_subPtrI
);
}
c_tables
.
next
(
it
);
}
signal
->
theData
[
0
]
=
tCase
;
signal
->
theData
[
1
]
=
it
.
bucket
;
sendSignalWithDelay
(
reference
(),
GSN_DUMP_STATE_ORD
,
signal
,
100
,
2
);
return
;
}
}
/*************************************************************
...
...
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