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
406620d7
Commit
406620d7
authored
Apr 10, 2007
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge perch.ndb.mysql.com:/home/jonas/src/51-telco-gca
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb
parents
d2225f08
cd3c4a97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
+16
-4
No files found.
storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp
View file @
406620d7
...
...
@@ -983,7 +983,7 @@ NdbEventOperationImpl::printAll()
NdbEventBuffer
::
NdbEventBuffer
(
Ndb
*
ndb
)
:
m_system_nodes
(
ndb
->
theImpl
->
theNoOfDBnodes
),
m_ndb
(
ndb
),
m_latestGCI
(
0
),
m_latestGCI
(
0
),
m_latest_complete_GCI
(
0
),
m_total_alloc
(
0
),
m_free_thresh
(
10
),
m_min_free_thresh
(
10
),
...
...
@@ -1475,7 +1475,7 @@ NdbEventBuffer::execSUB_GCP_COMPLETE_REP(const SubGcpCompleteRep * const rep)
,
m_flush_gci
#endif
);
Uint32
idx
=
bucket
-
(
Gci_container
*
)
m_active_gci
.
getBase
();
if
(
unlikely
(
bucket
==
0
))
{
/**
...
...
@@ -1520,8 +1520,20 @@ NdbEventBuffer::execSUB_GCP_COMPLETE_REP(const SubGcpCompleteRep * const rep)
}
reportStatus
();
bzero
(
bucket
,
sizeof
(
Gci_container
));
bucket
->
m_gci
=
gci
+
ACTIVE_GCI_DIRECTORY_SIZE
;
bucket
->
m_gcp_complete_rep_count
=
m_system_nodes
;
if
(
likely
(
idx
<
ACTIVE_GCI_DIRECTORY_SIZE
))
{
/**
* Only "prepare" next GCI if we're in
* the first 4 highest GCI's...else
* this is somekind of "late" GCI...
* which is only initialized to 0
*
* This to make sure we dont get several buckets with same GCI
*/
bucket
->
m_gci
=
gci
+
ACTIVE_GCI_DIRECTORY_SIZE
;
bucket
->
m_gcp_complete_rep_count
=
m_system_nodes
;
}
if
(
unlikely
(
m_latest_complete_GCI
>
gci
))
{
complete_outof_order_gcis
();
...
...
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