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
a9fa137d
Commit
a9fa137d
authored
Jan 16, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed Dictionary::Table::setTablespace/getTablespace to setTablespaceName/getTablespaceName
parent
f97eae8a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
10 deletions
+16
-10
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+3
-3
storage/ndb/include/ndbapi/NdbDictionary.hpp
storage/ndb/include/ndbapi/NdbDictionary.hpp
+2
-2
storage/ndb/src/ndbapi/NdbDictionary.cpp
storage/ndb/src/ndbapi/NdbDictionary.cpp
+7
-1
storage/ndb/test/ndbapi/bank/BankLoad.cpp
storage/ndb/test/ndbapi/bank/BankLoad.cpp
+1
-1
storage/ndb/test/ndbapi/create_tab.cpp
storage/ndb/test/ndbapi/create_tab.cpp
+1
-1
storage/ndb/test/ndbapi/testDict.cpp
storage/ndb/test/ndbapi/testDict.cpp
+1
-1
storage/ndb/test/src/NDBT_Test.cpp
storage/ndb/test/src/NDBT_Test.cpp
+1
-1
No files found.
sql/ha_ndbcluster.cc
View file @
a9fa137d
...
...
@@ -4844,9 +4844,9 @@ int ha_ndbcluster::create(const char *name,
if
(
info
->
storage_media
==
HA_SM_DISK
)
{
if
(
info
->
tablespace
)
tab
.
setTablespace
(
info
->
tablespace
);
tab
.
setTablespace
Name
(
info
->
tablespace
);
else
tab
.
setTablespace
(
"DEFAULT-TS"
);
tab
.
setTablespace
Name
(
"DEFAULT-TS"
);
}
else
if
(
info
->
tablespace
)
{
...
...
@@ -4860,7 +4860,7 @@ int ha_ndbcluster::create(const char *name,
"STORAGE DISK"
);
DBUG_RETURN
(
HA_ERR_UNSUPPORTED
);
}
tab
.
setTablespace
(
info
->
tablespace
);
tab
.
setTablespace
Name
(
info
->
tablespace
);
info
->
storage_media
=
HA_SM_DISK
;
//if use tablespace, that also means store on disk
}
...
...
storage/ndb/include/ndbapi/NdbDictionary.hpp
View file @
a9fa137d
...
...
@@ -809,9 +809,9 @@ public:
*/
void
setMaxLoadFactor
(
int
);
void
setTablespace
(
const
char
*
name
);
void
setTablespaceName
(
const
char
*
name
);
const
char
*
getTablespaceName
()
const
;
void
setTablespace
(
const
class
Tablespace
&
);
const
char
*
getTablespace
()
const
;
bool
getTablespace
(
Uint32
*
id
=
0
,
Uint32
*
version
=
0
)
const
;
/**
...
...
storage/ndb/src/ndbapi/NdbDictionary.cpp
View file @
a9fa137d
...
...
@@ -663,8 +663,14 @@ NdbDictionary::Table::getTablespace(Uint32 *id, Uint32 *version) const
return
true
;
}
const
char
*
NdbDictionary
::
Table
::
getTablespaceName
()
const
{
return
m_impl
.
m_tablespace_name
.
c_str
();
}
void
NdbDictionary
::
Table
::
setTablespace
(
const
char
*
name
){
NdbDictionary
::
Table
::
setTablespace
Name
(
const
char
*
name
){
m_impl
.
m_tablespace_id
=
~
0
;
m_impl
.
m_tablespace_version
=
~
0
;
m_impl
.
m_tablespace_name
.
assign
(
name
);
...
...
storage/ndb/test/ndbapi/bank/BankLoad.cpp
View file @
a9fa137d
...
...
@@ -163,7 +163,7 @@ int Bank::createTable(const char* tabName, bool disk){
return
NDBT_FAILED
;
}
NdbDictionary
::
Table
copy
(
*
pTab
);
copy
.
setTablespace
(
"DEFAULT-TS"
);
copy
.
setTablespace
Name
(
"DEFAULT-TS"
);
for
(
Uint32
i
=
0
;
i
<
copy
.
getNoOfColumns
();
i
++
)
copy
.
getColumn
(
i
)
->
setStorageType
(
NdbDictionary
::
Column
::
StorageTypeDisk
);
if
(
m_ndb
.
getDictionary
()
->
createTable
(
copy
)
==
-
1
){
...
...
storage/ndb/test/ndbapi/create_tab.cpp
View file @
a9fa137d
...
...
@@ -37,7 +37,7 @@ g_create_hook(Ndb* ndb, NdbDictionary::Table& tab, int when, void* arg)
}
}
if
(
g_tsname
!=
NULL
)
{
tab
.
setTablespace
(
g_tsname
);
tab
.
setTablespace
Name
(
g_tsname
);
}
}
return
0
;
...
...
storage/ndb/test/ndbapi/testDict.cpp
View file @
a9fa137d
...
...
@@ -1643,7 +1643,7 @@ runCreateDiskTable(NDBT_Context* ctx, NDBT_Step* step){
Ndb
*
pNdb
=
GETNDB
(
step
);
NdbDictionary
::
Table
tab
=
*
ctx
->
getTab
();
tab
.
setTablespace
(
"DEFAULT-TS"
);
tab
.
setTablespace
Name
(
"DEFAULT-TS"
);
for
(
Uint32
i
=
0
;
i
<
tab
.
getNoOfColumns
();
i
++
)
if
(
!
tab
.
getColumn
(
i
)
->
getPrimaryKey
())
...
...
storage/ndb/test/src/NDBT_Test.cpp
View file @
a9fa137d
...
...
@@ -969,7 +969,7 @@ NDBT_TestSuite::createHook(Ndb* ndb, NdbDictionary::Table& tab, int when)
}
if
(
tsname
!=
NULL
)
{
tab
.
setTablespace
(
tsname
);
tab
.
setTablespace
Name
(
tsname
);
}
}
return
0
;
...
...
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