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
15621600
Commit
15621600
authored
Nov 18, 2004
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-mysqladmin
parents
19067008
f2110823
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
ndb/src/kernel/blocks/dbdict/Dbdict.cpp
ndb/src/kernel/blocks/dbdict/Dbdict.cpp
+10
-2
ndb/src/kernel/blocks/dbdict/Dbdict.hpp
ndb/src/kernel/blocks/dbdict/Dbdict.hpp
+2
-2
No files found.
ndb/src/kernel/blocks/dbdict/Dbdict.cpp
View file @
15621600
...
@@ -239,7 +239,11 @@ Dbdict::packTableIntoPagesImpl(SimpleProperties::Writer & w,
...
@@ -239,7 +239,11 @@ Dbdict::packTableIntoPagesImpl(SimpleProperties::Writer & w,
w
.
add
(
DictTabInfo
::
TableName
,
tablePtr
.
p
->
tableName
);
w
.
add
(
DictTabInfo
::
TableName
,
tablePtr
.
p
->
tableName
);
w
.
add
(
DictTabInfo
::
TableId
,
tablePtr
.
i
);
w
.
add
(
DictTabInfo
::
TableId
,
tablePtr
.
i
);
#ifdef HAVE_TABLE_REORG
w
.
add
(
DictTabInfo
::
SecondTableId
,
tablePtr
.
p
->
secondTable
);
w
.
add
(
DictTabInfo
::
SecondTableId
,
tablePtr
.
p
->
secondTable
);
#else
w
.
add
(
DictTabInfo
::
SecondTableId
,
(
Uint32
)
0
);
#endif
w
.
add
(
DictTabInfo
::
TableVersion
,
tablePtr
.
p
->
tableVersion
);
w
.
add
(
DictTabInfo
::
TableVersion
,
tablePtr
.
p
->
tableVersion
);
w
.
add
(
DictTabInfo
::
NoOfKeyAttr
,
tablePtr
.
p
->
noOfPrimkey
);
w
.
add
(
DictTabInfo
::
NoOfKeyAttr
,
tablePtr
.
p
->
noOfPrimkey
);
w
.
add
(
DictTabInfo
::
NoOfAttributes
,
tablePtr
.
p
->
noOfAttributes
);
w
.
add
(
DictTabInfo
::
NoOfAttributes
,
tablePtr
.
p
->
noOfAttributes
);
...
@@ -1436,6 +1440,7 @@ Uint32 Dbdict::getFreeTableRecord(Uint32 primaryTableId)
...
@@ -1436,6 +1440,7 @@ Uint32 Dbdict::getFreeTableRecord(Uint32 primaryTableId)
jam
();
jam
();
return
RNIL
;
return
RNIL
;
}
//if
}
//if
#ifdef HAVE_TABLE_REORG
bool
secondFound
=
false
;
bool
secondFound
=
false
;
for
(
tablePtr
.
i
=
firstTablePtr
.
i
+
1
;
tablePtr
.
i
<
tabSize
;
tablePtr
.
i
++
)
{
for
(
tablePtr
.
i
=
firstTablePtr
.
i
+
1
;
tablePtr
.
i
<
tabSize
;
tablePtr
.
i
++
)
{
jam
();
jam
();
...
@@ -1455,6 +1460,7 @@ Uint32 Dbdict::getFreeTableRecord(Uint32 primaryTableId)
...
@@ -1455,6 +1460,7 @@ Uint32 Dbdict::getFreeTableRecord(Uint32 primaryTableId)
firstTablePtr
.
p
->
tabState
=
TableRecord
::
NOT_DEFINED
;
firstTablePtr
.
p
->
tabState
=
TableRecord
::
NOT_DEFINED
;
return
RNIL
;
return
RNIL
;
}
//if
}
//if
#endif
return
firstTablePtr
.
i
;
return
firstTablePtr
.
i
;
}
//Dbdict::getFreeTableRecord()
}
//Dbdict::getFreeTableRecord()
...
@@ -4623,7 +4629,7 @@ void Dbdict::handleTabInfoInit(SimpleProperties::Reader & it,
...
@@ -4623,7 +4629,7 @@ void Dbdict::handleTabInfoInit(SimpleProperties::Reader & it,
jam
();
jam
();
tablePtr
.
p
->
tabState
=
TableRecord
::
DEFINING
;
tablePtr
.
p
->
tabState
=
TableRecord
::
DEFINING
;
}
//if
}
//if
#ifdef HAVE_TABLE_REORG
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
// Get id of second table id and check that table doesn't already exist
// Get id of second table id and check that table doesn't already exist
// and set up links between first and second table.
// and set up links between first and second table.
...
@@ -4637,7 +4643,7 @@ void Dbdict::handleTabInfoInit(SimpleProperties::Reader & it,
...
@@ -4637,7 +4643,7 @@ void Dbdict::handleTabInfoInit(SimpleProperties::Reader & it,
secondTablePtr
.
p
->
tabState
=
TableRecord
::
REORG_TABLE_PREPARED
;
secondTablePtr
.
p
->
tabState
=
TableRecord
::
REORG_TABLE_PREPARED
;
secondTablePtr
.
p
->
secondTable
=
tablePtr
.
i
;
secondTablePtr
.
p
->
secondTable
=
tablePtr
.
i
;
tablePtr
.
p
->
secondTable
=
secondTablePtr
.
i
;
tablePtr
.
p
->
secondTable
=
secondTablePtr
.
i
;
#endif
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
// Set table version
// Set table version
/* ---------------------------------------------------------------- */
/* ---------------------------------------------------------------- */
...
@@ -5535,10 +5541,12 @@ void Dbdict::releaseTableObject(Uint32 tableId, bool removeFromHash)
...
@@ -5535,10 +5541,12 @@ void Dbdict::releaseTableObject(Uint32 tableId, bool removeFromHash)
nextAttrRecord
=
attrPtr
.
p
->
nextAttrInTable
;
nextAttrRecord
=
attrPtr
.
p
->
nextAttrInTable
;
c_attributeRecordPool
.
release
(
attrPtr
);
c_attributeRecordPool
.
release
(
attrPtr
);
}
//if
}
//if
#ifdef HAVE_TABLE_REORG
Uint32
secondTableId
=
tablePtr
.
p
->
secondTable
;
Uint32
secondTableId
=
tablePtr
.
p
->
secondTable
;
initialiseTableRecord
(
tablePtr
);
initialiseTableRecord
(
tablePtr
);
c_tableRecordPool
.
getPtr
(
tablePtr
,
secondTableId
);
c_tableRecordPool
.
getPtr
(
tablePtr
,
secondTableId
);
initialiseTableRecord
(
tablePtr
);
initialiseTableRecord
(
tablePtr
);
#endif
return
;
return
;
}
//releaseTableObject()
}
//releaseTableObject()
...
...
ndb/src/kernel/blocks/dbdict/Dbdict.hpp
View file @
15621600
...
@@ -151,10 +151,10 @@ public:
...
@@ -151,10 +151,10 @@ public:
/* Temporary record used during add/drop table */
/* Temporary record used during add/drop table */
Uint32
myConnect
;
Uint32
myConnect
;
#ifdef HAVE_TABLE_REORG
/* Second table used by this table (for table reorg) */
/* Second table used by this table (for table reorg) */
Uint32
secondTable
;
Uint32
secondTable
;
#endif
/* Next record in Pool */
/* Next record in Pool */
Uint32
nextPool
;
Uint32
nextPool
;
...
...
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