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
13d83102
Commit
13d83102
authored
Sep 30, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.1
into dl145s.mysql.com:/data/bk/team_tree_merge/MERGE/mysql-5.1-opt
parents
ca2372d7
8b833dc9
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
35 additions
and
27 deletions
+35
-27
include/mysql/plugin.h
include/mysql/plugin.h
+0
-1
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+1
-1
sql/ha_partition.cc
sql/ha_partition.cc
+1
-1
sql/handler.h
sql/handler.h
+3
-3
sql/log.cc
sql/log.cc
+1
-1
sql/sql_cursor.cc
sql/sql_cursor.cc
+4
-4
storage/archive/ha_archive.cc
storage/archive/ha_archive.cc
+1
-1
storage/blackhole/ha_blackhole.cc
storage/blackhole/ha_blackhole.cc
+1
-1
storage/csv/ha_tina.cc
storage/csv/ha_tina.cc
+1
-1
storage/example/ha_example.cc
storage/example/ha_example.cc
+1
-1
storage/federated/ha_federated.cc
storage/federated/ha_federated.cc
+1
-1
storage/heap/ha_heap.cc
storage/heap/ha_heap.cc
+1
-1
storage/innobase/handler/ha_innodb.cc
storage/innobase/handler/ha_innodb.cc
+9
-5
storage/innobase/handler/ha_innodb.h
storage/innobase/handler/ha_innodb.h
+8
-3
storage/myisam/ha_myisam.cc
storage/myisam/ha_myisam.cc
+1
-1
storage/myisammrg/ha_myisammrg.cc
storage/myisammrg/ha_myisammrg.cc
+1
-1
No files found.
include/mysql/plugin.h
View file @
13d83102
...
@@ -301,7 +301,6 @@ struct st_mysql_ftparser
...
@@ -301,7 +301,6 @@ struct st_mysql_ftparser
struct
st_mysql_storage_engine
struct
st_mysql_storage_engine
{
{
int
interface_version
;
int
interface_version
;
struct
handlerton
*
handlerton
;
};
};
#endif
#endif
...
...
sql/ha_ndbcluster.cc
View file @
13d83102
...
@@ -10749,7 +10749,7 @@ SHOW_VAR ndb_status_variables_export[]= {
...
@@ -10749,7 +10749,7 @@ SHOW_VAR ndb_status_variables_export[]= {
};
};
struct
st_mysql_storage_engine
ndbcluster_storage_engine
=
struct
st_mysql_storage_engine
ndbcluster_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
ndbcluster_hton
};
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
mysql_declare_plugin
(
ndbcluster
)
mysql_declare_plugin
(
ndbcluster
)
{
{
...
...
sql/ha_partition.cc
View file @
13d83102
...
@@ -5632,7 +5632,7 @@ static int free_share(PARTITION_SHARE *share)
...
@@ -5632,7 +5632,7 @@ static int free_share(PARTITION_SHARE *share)
#endif
/* NOT_USED */
#endif
/* NOT_USED */
struct
st_mysql_storage_engine
partition_storage_engine
=
struct
st_mysql_storage_engine
partition_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
partition_hton
};
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
mysql_declare_plugin
(
partition
)
mysql_declare_plugin
(
partition
)
{
{
...
...
sql/handler.h
View file @
13d83102
...
@@ -630,9 +630,9 @@ struct handlerton
...
@@ -630,9 +630,9 @@ struct handlerton
int
(
*
recover
)(
XID
*
xid_list
,
uint
len
);
int
(
*
recover
)(
XID
*
xid_list
,
uint
len
);
int
(
*
commit_by_xid
)(
XID
*
xid
);
int
(
*
commit_by_xid
)(
XID
*
xid
);
int
(
*
rollback_by_xid
)(
XID
*
xid
);
int
(
*
rollback_by_xid
)(
XID
*
xid
);
void
*
(
*
create_cursor_read_view
)();
void
*
(
*
create_cursor_read_view
)(
THD
*
thd
);
void
(
*
set_cursor_read_view
)(
void
*
);
void
(
*
set_cursor_read_view
)(
THD
*
thd
,
void
*
read_view
);
void
(
*
close_cursor_read_view
)(
void
*
);
void
(
*
close_cursor_read_view
)(
THD
*
thd
,
void
*
read_view
);
handler
*
(
*
create
)(
TABLE_SHARE
*
table
,
MEM_ROOT
*
mem_root
);
handler
*
(
*
create
)(
TABLE_SHARE
*
table
,
MEM_ROOT
*
mem_root
);
void
(
*
drop_database
)(
char
*
path
);
void
(
*
drop_database
)(
char
*
path
);
int
(
*
panic
)(
enum
ha_panic_function
flag
);
int
(
*
panic
)(
enum
ha_panic_function
flag
);
...
...
sql/log.cc
View file @
13d83102
...
@@ -4678,7 +4678,7 @@ int TC_LOG_BINLOG::recover(IO_CACHE *log, Format_description_log_event *fdle)
...
@@ -4678,7 +4678,7 @@ int TC_LOG_BINLOG::recover(IO_CACHE *log, Format_description_log_event *fdle)
}
}
struct
st_mysql_storage_engine
binlog_storage_engine
=
struct
st_mysql_storage_engine
binlog_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
binlog_hton
};
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
mysql_declare_plugin
(
binlog
)
mysql_declare_plugin
(
binlog
)
{
{
...
...
sql/sql_cursor.cc
View file @
13d83102
...
@@ -323,7 +323,7 @@ Sensitive_cursor::post_open(THD *thd)
...
@@ -323,7 +323,7 @@ Sensitive_cursor::post_open(THD *thd)
if
(
ht
->
create_cursor_read_view
)
if
(
ht
->
create_cursor_read_view
)
{
{
info
->
ht
=
ht
;
info
->
ht
=
ht
;
info
->
read_view
=
(
ht
->
create_cursor_read_view
)();
info
->
read_view
=
(
ht
->
create_cursor_read_view
)(
thd
);
++
info
;
++
info
;
}
}
}
}
...
@@ -433,7 +433,7 @@ Sensitive_cursor::fetch(ulong num_rows)
...
@@ -433,7 +433,7 @@ Sensitive_cursor::fetch(ulong num_rows)
thd
->
set_n_backup_active_arena
(
this
,
&
backup_arena
);
thd
->
set_n_backup_active_arena
(
this
,
&
backup_arena
);
for
(
info
=
ht_info
;
info
->
read_view
;
info
++
)
for
(
info
=
ht_info
;
info
->
read_view
;
info
++
)
(
info
->
ht
->
set_cursor_read_view
)(
info
->
read_view
);
(
info
->
ht
->
set_cursor_read_view
)(
thd
,
info
->
read_view
);
join
->
fetch_limit
+=
num_rows
;
join
->
fetch_limit
+=
num_rows
;
...
@@ -454,7 +454,7 @@ Sensitive_cursor::fetch(ulong num_rows)
...
@@ -454,7 +454,7 @@ Sensitive_cursor::fetch(ulong num_rows)
reset_thd
(
thd
);
reset_thd
(
thd
);
for
(
info
=
ht_info
;
info
->
read_view
;
info
++
)
for
(
info
=
ht_info
;
info
->
read_view
;
info
++
)
(
info
->
ht
->
set_cursor_read_view
)(
0
);
(
info
->
ht
->
set_cursor_read_view
)(
thd
,
0
);
if
(
error
==
NESTED_LOOP_CURSOR_LIMIT
)
if
(
error
==
NESTED_LOOP_CURSOR_LIMIT
)
{
{
...
@@ -487,7 +487,7 @@ Sensitive_cursor::close()
...
@@ -487,7 +487,7 @@ Sensitive_cursor::close()
for
(
Engine_info
*
info
=
ht_info
;
info
->
read_view
;
info
++
)
for
(
Engine_info
*
info
=
ht_info
;
info
->
read_view
;
info
++
)
{
{
(
info
->
ht
->
close_cursor_read_view
)(
info
->
read_view
);
(
info
->
ht
->
close_cursor_read_view
)(
thd
,
info
->
read_view
);
info
->
read_view
=
0
;
info
->
read_view
=
0
;
info
->
ht
=
0
;
info
->
ht
=
0
;
}
}
...
...
storage/archive/ha_archive.cc
View file @
13d83102
...
@@ -1571,7 +1571,7 @@ bool ha_archive::check_and_repair(THD *thd)
...
@@ -1571,7 +1571,7 @@ bool ha_archive::check_and_repair(THD *thd)
}
}
struct
st_mysql_storage_engine
archive_storage_engine
=
struct
st_mysql_storage_engine
archive_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
archive_hton
};
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
mysql_declare_plugin
(
archive
)
mysql_declare_plugin
(
archive
)
{
{
...
...
storage/blackhole/ha_blackhole.cc
View file @
13d83102
...
@@ -212,7 +212,7 @@ static int blackhole_init(void *p)
...
@@ -212,7 +212,7 @@ static int blackhole_init(void *p)
}
}
struct
st_mysql_storage_engine
blackhole_storage_engine
=
struct
st_mysql_storage_engine
blackhole_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
blackhole_hton
};
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
mysql_declare_plugin
(
blackhole
)
mysql_declare_plugin
(
blackhole
)
{
{
...
...
storage/csv/ha_tina.cc
View file @
13d83102
...
@@ -1516,7 +1516,7 @@ bool ha_tina::check_if_incompatible_data(HA_CREATE_INFO *info,
...
@@ -1516,7 +1516,7 @@ bool ha_tina::check_if_incompatible_data(HA_CREATE_INFO *info,
}
}
struct
st_mysql_storage_engine
csv_storage_engine
=
struct
st_mysql_storage_engine
csv_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
tina_hton
};
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
mysql_declare_plugin
(
csv
)
mysql_declare_plugin
(
csv
)
{
{
...
...
storage/example/ha_example.cc
View file @
13d83102
...
@@ -703,7 +703,7 @@ int ha_example::create(const char *name, TABLE *table_arg,
...
@@ -703,7 +703,7 @@ int ha_example::create(const char *name, TABLE *table_arg,
}
}
struct
st_mysql_storage_engine
example_storage_engine
=
struct
st_mysql_storage_engine
example_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
example_hton
};
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
mysql_declare_plugin
(
example
)
mysql_declare_plugin
(
example
)
...
...
storage/federated/ha_federated.cc
View file @
13d83102
...
@@ -2882,7 +2882,7 @@ int ha_federated::execute_simple_query(const char *query, int len)
...
@@ -2882,7 +2882,7 @@ int ha_federated::execute_simple_query(const char *query, int len)
}
}
struct
st_mysql_storage_engine
federated_storage_engine
=
struct
st_mysql_storage_engine
federated_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
federated_hton
};
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
mysql_declare_plugin
(
federated
)
mysql_declare_plugin
(
federated
)
{
{
...
...
storage/heap/ha_heap.cc
View file @
13d83102
...
@@ -701,7 +701,7 @@ bool ha_heap::check_if_incompatible_data(HA_CREATE_INFO *info,
...
@@ -701,7 +701,7 @@ bool ha_heap::check_if_incompatible_data(HA_CREATE_INFO *info,
}
}
struct
st_mysql_storage_engine
heap_storage_engine
=
struct
st_mysql_storage_engine
heap_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
heap_hton
};
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
mysql_declare_plugin
(
heap
)
mysql_declare_plugin
(
heap
)
{
{
...
...
storage/innobase/handler/ha_innodb.cc
View file @
13d83102
...
@@ -7529,12 +7529,14 @@ This consistent view is then used inside of MySQL when accessing records
...
@@ -7529,12 +7529,14 @@ This consistent view is then used inside of MySQL when accessing records
using a cursor. */
using a cursor. */
void
*
void
*
innobase_create_cursor_view
(
void
)
innobase_create_cursor_view
(
/*=============================*/
/*========================*/
/* out: Pointer to cursor view or NULL */
/* out: pointer to cursor
view or NULL */
THD
*
thd
)
/* in: user thread handle */
{
{
return
(
read_cursor_view_create_for_mysql
(
return
(
read_cursor_view_create_for_mysql
(
check_trx_exists
(
current_
thd
)));
check_trx_exists
(
thd
)));
}
}
/***********************************************************************
/***********************************************************************
...
@@ -7545,6 +7547,7 @@ corresponding MySQL thread still lacks one. */
...
@@ -7545,6 +7547,7 @@ corresponding MySQL thread still lacks one. */
void
void
innobase_close_cursor_view
(
innobase_close_cursor_view
(
/*=======================*/
/*=======================*/
THD
*
thd
,
/* in: user thread handle */
void
*
curview
)
/* in: Consistent read view to be closed */
void
*
curview
)
/* in: Consistent read view to be closed */
{
{
read_cursor_view_close_for_mysql
(
check_trx_exists
(
current_thd
),
read_cursor_view_close_for_mysql
(
check_trx_exists
(
current_thd
),
...
@@ -7560,6 +7563,7 @@ restored to a transaction read view. */
...
@@ -7560,6 +7563,7 @@ restored to a transaction read view. */
void
void
innobase_set_cursor_view
(
innobase_set_cursor_view
(
/*=====================*/
/*=====================*/
THD
*
thd
,
/* in: user thread handle */
void
*
curview
)
/* in: Consistent cursor view to be set */
void
*
curview
)
/* in: Consistent cursor view to be set */
{
{
read_cursor_set_for_mysql
(
check_trx_exists
(
current_thd
),
read_cursor_set_for_mysql
(
check_trx_exists
(
current_thd
),
...
@@ -7607,7 +7611,7 @@ SHOW_VAR innodb_status_variables_export[]= {
...
@@ -7607,7 +7611,7 @@ SHOW_VAR innodb_status_variables_export[]= {
};
};
struct
st_mysql_storage_engine
innobase_storage_engine
=
struct
st_mysql_storage_engine
innobase_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
innobase_hton
};
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
mysql_declare_plugin
(
innobase
)
mysql_declare_plugin
(
innobase
)
{
{
...
...
storage/innobase/handler/ha_innodb.h
View file @
13d83102
...
@@ -313,9 +313,11 @@ This consistent view is then used inside of MySQL when accessing records
...
@@ -313,9 +313,11 @@ This consistent view is then used inside of MySQL when accessing records
using a cursor. */
using a cursor. */
void
*
void
*
innobase_create_cursor_view
(
void
);
innobase_create_cursor_view
(
/*=============================*/
/*========================*/
/* out: Pointer to cursor view or NULL */
/* out: pointer to cursor
view or NULL */
THD
*
thd
);
/* in: user thread handle */
/***********************************************************************
/***********************************************************************
Close the given consistent cursor view of a transaction and restore
Close the given consistent cursor view of a transaction and restore
...
@@ -325,8 +327,10 @@ corresponding MySQL thread still lacks one. */
...
@@ -325,8 +327,10 @@ corresponding MySQL thread still lacks one. */
void
void
innobase_close_cursor_view
(
innobase_close_cursor_view
(
/*=======================*/
/*=======================*/
THD
*
thd
,
/* in: user thread handle */
void
*
curview
);
/* in: Consistent read view to be closed */
void
*
curview
);
/* in: Consistent read view to be closed */
/***********************************************************************
/***********************************************************************
Set the given consistent cursor view to a transaction which is created
Set the given consistent cursor view to a transaction which is created
if the corresponding MySQL thread still lacks one. If the given
if the corresponding MySQL thread still lacks one. If the given
...
@@ -336,4 +340,5 @@ restored to a transaction read view. */
...
@@ -336,4 +340,5 @@ restored to a transaction read view. */
void
void
innobase_set_cursor_view
(
innobase_set_cursor_view
(
/*=====================*/
/*=====================*/
THD
*
thd
,
/* in: user thread handle */
void
*
curview
);
/* in: Consistent read view to be set */
void
*
curview
);
/* in: Consistent read view to be set */
storage/myisam/ha_myisam.cc
View file @
13d83102
...
@@ -1801,7 +1801,7 @@ static int myisam_init(void *p)
...
@@ -1801,7 +1801,7 @@ static int myisam_init(void *p)
}
}
struct
st_mysql_storage_engine
myisam_storage_engine
=
struct
st_mysql_storage_engine
myisam_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
myisam_hton
};
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
mysql_declare_plugin
(
myisam
)
mysql_declare_plugin
(
myisam
)
{
{
...
...
storage/myisammrg/ha_myisammrg.cc
View file @
13d83102
...
@@ -568,7 +568,7 @@ static int myisammrg_init(void *p)
...
@@ -568,7 +568,7 @@ static int myisammrg_init(void *p)
}
}
struct
st_mysql_storage_engine
myisammrg_storage_engine
=
struct
st_mysql_storage_engine
myisammrg_storage_engine
=
{
MYSQL_HANDLERTON_INTERFACE_VERSION
,
myisammrg_hton
};
{
MYSQL_HANDLERTON_INTERFACE_VERSION
};
mysql_declare_plugin
(
myisammrg
)
mysql_declare_plugin
(
myisammrg
)
{
{
...
...
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