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
415053f2
Commit
415053f2
authored
Nov 23, 2005
by
joerg@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/M51/mysql-5.1
parents
d45d43e6
3a7d8125
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
41 additions
and
20 deletions
+41
-20
scripts/make_binary_distribution.sh
scripts/make_binary_distribution.sh
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+3
-0
storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp
storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp
+5
-3
storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp
storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp
+19
-16
storage/ndb/src/kernel/blocks/dbtup/test_varpage.cpp
storage/ndb/src/kernel/blocks/dbtup/test_varpage.cpp
+4
-0
storage/ndb/src/kernel/blocks/pgman.hpp
storage/ndb/src/kernel/blocks/pgman.hpp
+3
-0
storage/ndb/src/kernel/blocks/print_file.cpp
storage/ndb/src/kernel/blocks/print_file.cpp
+3
-0
storage/ndb/src/kernel/blocks/restore.hpp
storage/ndb/src/kernel/blocks/restore.hpp
+3
-0
No files found.
scripts/make_binary_distribution.sh
View file @
415053f2
...
@@ -308,7 +308,7 @@ fi
...
@@ -308,7 +308,7 @@ fi
# NDB Cluster
# NDB Cluster
if
[
x
$NDBCLUSTER
=
x1
]
;
then
if
[
x
$NDBCLUSTER
=
x1
]
;
then
(
cd
ndb
;
@MAKE@
DESTDIR
=
$BASE
/ndb-stage
install
)
(
cd
storage/ndb
;
@MAKE@
DESTDIR
=
$BASE
/ndb-stage
install
)
(
cd
mysql-test/ndb
;
@MAKE@
DESTDIR
=
$BASE
/ndb-stage
install
)
(
cd
mysql-test/ndb
;
@MAKE@
DESTDIR
=
$BASE
/ndb-stage
install
)
$CP
$BASE
/ndb-stage@bindir@/
*
$BASE
/bin/.
$CP
$BASE
/ndb-stage@bindir@/
*
$BASE
/bin/.
$CP
$BASE
/ndb-stage@libexecdir@/
*
$BASE
/bin/.
$CP
$BASE
/ndb-stage@libexecdir@/
*
$BASE
/bin/.
...
...
sql/mysqld.cc
View file @
415053f2
...
@@ -390,6 +390,9 @@ extern ulong srv_commit_concurrency;
...
@@ -390,6 +390,9 @@ extern ulong srv_commit_concurrency;
}
}
#endif
#endif
#ifdef WITH_BERKELEY_STORAGE_ENGINE
#ifdef WITH_BERKELEY_STORAGE_ENGINE
#ifndef HAVE_U_INT32_T
typedef
unsigned
int
u_int32_t
;
#endif
extern
const
u_int32_t
bdb_DB_TXN_NOSYNC
,
bdb_DB_RECOVER
,
bdb_DB_PRIVATE
;
extern
const
u_int32_t
bdb_DB_TXN_NOSYNC
,
bdb_DB_RECOVER
,
bdb_DB_PRIVATE
;
extern
bool
berkeley_shared_data
;
extern
bool
berkeley_shared_data
;
extern
u_int32_t
berkeley_init_flags
,
berkeley_env_flags
,
berkeley_lock_type
,
extern
u_int32_t
berkeley_init_flags
,
berkeley_env_flags
,
berkeley_lock_type
,
...
...
storage/ndb/src/kernel/blocks/dbtup/Dbtup.hpp
View file @
415053f2
...
@@ -250,6 +250,7 @@ class Dbtup: public SimulatedBlock {
...
@@ -250,6 +250,7 @@ class Dbtup: public SimulatedBlock {
friend
class
Suma
;
friend
class
Suma
;
public:
public:
struct
KeyReqStruct
;
struct
KeyReqStruct
;
friend
struct
KeyReqStruct
;
// CC
typedef
bool
(
Dbtup
::*
ReadFunction
)(
Uint32
*
,
typedef
bool
(
Dbtup
::*
ReadFunction
)(
Uint32
*
,
KeyReqStruct
*
,
KeyReqStruct
*
,
AttributeHeader
*
,
AttributeHeader
*
,
...
@@ -2345,14 +2346,15 @@ private:
...
@@ -2345,14 +2346,15 @@ private:
//---------------------------------------------------------------
//---------------------------------------------------------------
//
//
// Public methods
// Public methods
Uint32
*
alloc_var_rec
(
Fragrecord
*
,
Tablerec
*
,
Uint32
,
Local_key
*
,
Uint32
*
,
Uint32
*
alloc_var_rec
(
Fragrecord
*
const
,
Tablerec
*
const
,
Uint32
,
Local_key
*
,
Uint32
base
);
Uint32
*
,
Uint32
base
);
void
free_var_part
(
Fragrecord
*
,
Tablerec
*
,
Var_part_ref
,
Uint32
chain
);
void
free_var_part
(
Fragrecord
*
,
Tablerec
*
,
Var_part_ref
,
Uint32
chain
);
void
free_var_part
(
Fragrecord
*
,
Tablerec
*
,
Local_key
*
,
Var_page
*
,
Uint32
chain
);
void
free_var_part
(
Fragrecord
*
,
Tablerec
*
,
Local_key
*
,
Var_page
*
,
Uint32
chain
);
void
validate_page
(
Tablerec
*
,
Var_page
*
page
);
void
validate_page
(
Tablerec
*
,
Var_page
*
page
);
Uint32
*
alloc_fix_rec
(
Fragrecord
*
,
Tablerec
*
,
Local_key
*
,
Uint32
*
);
Uint32
*
alloc_fix_rec
(
Fragrecord
*
const
,
Tablerec
*
const
,
Local_key
*
,
Uint32
*
);
void
free_fix_rec
(
Fragrecord
*
,
Tablerec
*
,
Local_key
*
,
Fix_page
*
);
void
free_fix_rec
(
Fragrecord
*
,
Tablerec
*
,
Local_key
*
,
Fix_page
*
);
// Private methods
// Private methods
...
...
storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp
View file @
415053f2
...
@@ -113,22 +113,25 @@ Dbtup::setUpQueryRoutines(Tablerec* const regTabPtr)
...
@@ -113,22 +113,25 @@ Dbtup::setUpQueryRoutines(Tablerec* const regTabPtr)
}
}
if
(
AttributeDescriptor
::
getDiskBased
(
attrDescr
))
if
(
AttributeDescriptor
::
getDiskBased
(
attrDescr
))
{
{
ReadFunction
r
[]
=
{
// array initializer crashes gcc-2.95.3
&
Dbtup
::
readDiskBitsNotNULL
,
ReadFunction
r
[
6
];
&
Dbtup
::
readDiskBitsNULLable
,
{
&
Dbtup
::
readDiskFixedSizeNotNULL
,
r
[
0
]
=
&
Dbtup
::
readDiskBitsNotNULL
;
&
Dbtup
::
readDiskFixedSizeNULLable
,
r
[
1
]
=
&
Dbtup
::
readDiskBitsNULLable
;
&
Dbtup
::
readDiskVarSizeNULLable
,
r
[
2
]
=
&
Dbtup
::
readDiskFixedSizeNotNULL
;
&
Dbtup
::
readDiskVarSizeNotNULL
r
[
3
]
=
&
Dbtup
::
readDiskFixedSizeNULLable
;
};
r
[
4
]
=
&
Dbtup
::
readDiskVarSizeNULLable
;
UpdateFunction
u
[]
=
{
r
[
5
]
=
&
Dbtup
::
readDiskVarSizeNotNULL
;
&
Dbtup
::
updateDiskBitsNotNULL
,
}
&
Dbtup
::
updateDiskBitsNULLable
,
UpdateFunction
u
[
6
];
&
Dbtup
::
updateDiskFixedSizeNotNULL
,
{
&
Dbtup
::
updateDiskFixedSizeNULLable
,
u
[
0
]
=
&
Dbtup
::
updateDiskBitsNotNULL
;
&
Dbtup
::
updateDiskVarSizeNULLable
,
u
[
1
]
=
&
Dbtup
::
updateDiskBitsNULLable
;
&
Dbtup
::
updateDiskVarSizeNotNULL
u
[
2
]
=
&
Dbtup
::
updateDiskFixedSizeNotNULL
;
};
u
[
3
]
=
&
Dbtup
::
updateDiskFixedSizeNULLable
;
u
[
4
]
=
&
Dbtup
::
updateDiskVarSizeNULLable
;
u
[
5
]
=
&
Dbtup
::
updateDiskVarSizeNotNULL
;
}
Uint32
a
=
Uint32
a
=
AttributeDescriptor
::
getArrayType
(
attrDescr
)
==
NDB_ARRAYTYPE_FIXED
?
2
:
4
;
AttributeDescriptor
::
getArrayType
(
attrDescr
)
==
NDB_ARRAYTYPE_FIXED
?
2
:
4
;
...
...
storage/ndb/src/kernel/blocks/dbtup/test_varpage.cpp
View file @
415053f2
...
@@ -123,3 +123,7 @@ main(void)
...
@@ -123,3 +123,7 @@ main(void)
}
}
template
class
Vector
<
Record
>;
template
class
Vector
<
Record
>;
// hp3750
struct
Signal
{
Signal
();
int
foo
;
};
Signal
::
Signal
(){}
storage/ndb/src/kernel/blocks/pgman.hpp
View file @
415053f2
...
@@ -243,6 +243,9 @@ public:
...
@@ -243,6 +243,9 @@ public:
private:
private:
friend
class
Page_cache_client
;
friend
class
Page_cache_client
;
struct
Page_entry
;
// CC
friend
struct
Page_entry
;
struct
Page_request
{
struct
Page_request
{
enum
Flags
{
enum
Flags
{
OP_MASK
=
0x000F
// 4 bits for TUP operation
OP_MASK
=
0x000F
// 4 bits for TUP operation
...
...
storage/ndb/src/kernel/blocks/print_file.cpp
View file @
415053f2
...
@@ -368,3 +368,6 @@ print_undo_page(int count, void* ptr, Uint32 sz){
...
@@ -368,3 +368,6 @@ print_undo_page(int count, void* ptr, Uint32 sz){
return
0
;
return
0
;
}
}
// hp3750
Signal
::
Signal
(){}
storage/ndb/src/kernel/blocks/restore.hpp
View file @
415053f2
...
@@ -72,6 +72,9 @@ public:
...
@@ -72,6 +72,9 @@ public:
};
};
private:
private:
struct
File
;
// CC
friend
struct
File
;
struct
File
struct
File
{
{
File
()
{}
File
()
{}
...
...
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