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
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
Show 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,
...
@@ -4844,9 +4844,9 @@ int ha_ndbcluster::create(const char *name,
if
(
info
->
storage_media
==
HA_SM_DISK
)
if
(
info
->
storage_media
==
HA_SM_DISK
)
{
{
if
(
info
->
tablespace
)
if
(
info
->
tablespace
)
tab
.
setTablespace
(
info
->
tablespace
);
tab
.
setTablespace
Name
(
info
->
tablespace
);
else
else
tab
.
setTablespace
(
"DEFAULT-TS"
);
tab
.
setTablespace
Name
(
"DEFAULT-TS"
);
}
}
else
if
(
info
->
tablespace
)
else
if
(
info
->
tablespace
)
{
{
...
@@ -4860,7 +4860,7 @@ int ha_ndbcluster::create(const char *name,
...
@@ -4860,7 +4860,7 @@ int ha_ndbcluster::create(const char *name,
"STORAGE DISK"
);
"STORAGE DISK"
);
DBUG_RETURN
(
HA_ERR_UNSUPPORTED
);
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
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:
...
@@ -809,9 +809,9 @@ public:
*/
*/
void
setMaxLoadFactor
(
int
);
void
setMaxLoadFactor
(
int
);
void
setTablespace
(
const
char
*
name
);
void
setTablespaceName
(
const
char
*
name
);
const
char
*
getTablespaceName
()
const
;
void
setTablespace
(
const
class
Tablespace
&
);
void
setTablespace
(
const
class
Tablespace
&
);
const
char
*
getTablespace
()
const
;
bool
getTablespace
(
Uint32
*
id
=
0
,
Uint32
*
version
=
0
)
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
...
@@ -663,8 +663,14 @@ NdbDictionary::Table::getTablespace(Uint32 *id, Uint32 *version) const
return
true
;
return
true
;
}
}
const
char
*
NdbDictionary
::
Table
::
getTablespaceName
()
const
{
return
m_impl
.
m_tablespace_name
.
c_str
();
}
void
void
NdbDictionary
::
Table
::
setTablespace
(
const
char
*
name
){
NdbDictionary
::
Table
::
setTablespace
Name
(
const
char
*
name
){
m_impl
.
m_tablespace_id
=
~
0
;
m_impl
.
m_tablespace_id
=
~
0
;
m_impl
.
m_tablespace_version
=
~
0
;
m_impl
.
m_tablespace_version
=
~
0
;
m_impl
.
m_tablespace_name
.
assign
(
name
);
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){
...
@@ -163,7 +163,7 @@ int Bank::createTable(const char* tabName, bool disk){
return
NDBT_FAILED
;
return
NDBT_FAILED
;
}
}
NdbDictionary
::
Table
copy
(
*
pTab
);
NdbDictionary
::
Table
copy
(
*
pTab
);
copy
.
setTablespace
(
"DEFAULT-TS"
);
copy
.
setTablespace
Name
(
"DEFAULT-TS"
);
for
(
Uint32
i
=
0
;
i
<
copy
.
getNoOfColumns
();
i
++
)
for
(
Uint32
i
=
0
;
i
<
copy
.
getNoOfColumns
();
i
++
)
copy
.
getColumn
(
i
)
->
setStorageType
(
NdbDictionary
::
Column
::
StorageTypeDisk
);
copy
.
getColumn
(
i
)
->
setStorageType
(
NdbDictionary
::
Column
::
StorageTypeDisk
);
if
(
m_ndb
.
getDictionary
()
->
createTable
(
copy
)
==
-
1
){
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)
...
@@ -37,7 +37,7 @@ g_create_hook(Ndb* ndb, NdbDictionary::Table& tab, int when, void* arg)
}
}
}
}
if
(
g_tsname
!=
NULL
)
{
if
(
g_tsname
!=
NULL
)
{
tab
.
setTablespace
(
g_tsname
);
tab
.
setTablespace
Name
(
g_tsname
);
}
}
}
}
return
0
;
return
0
;
...
...
storage/ndb/test/ndbapi/testDict.cpp
View file @
a9fa137d
...
@@ -1643,7 +1643,7 @@ runCreateDiskTable(NDBT_Context* ctx, NDBT_Step* step){
...
@@ -1643,7 +1643,7 @@ runCreateDiskTable(NDBT_Context* ctx, NDBT_Step* step){
Ndb
*
pNdb
=
GETNDB
(
step
);
Ndb
*
pNdb
=
GETNDB
(
step
);
NdbDictionary
::
Table
tab
=
*
ctx
->
getTab
();
NdbDictionary
::
Table
tab
=
*
ctx
->
getTab
();
tab
.
setTablespace
(
"DEFAULT-TS"
);
tab
.
setTablespace
Name
(
"DEFAULT-TS"
);
for
(
Uint32
i
=
0
;
i
<
tab
.
getNoOfColumns
();
i
++
)
for
(
Uint32
i
=
0
;
i
<
tab
.
getNoOfColumns
();
i
++
)
if
(
!
tab
.
getColumn
(
i
)
->
getPrimaryKey
())
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)
...
@@ -969,7 +969,7 @@ NDBT_TestSuite::createHook(Ndb* ndb, NdbDictionary::Table& tab, int when)
}
}
if
(
tsname
!=
NULL
)
{
if
(
tsname
!=
NULL
)
{
tab
.
setTablespace
(
tsname
);
tab
.
setTablespace
Name
(
tsname
);
}
}
}
}
return
0
;
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