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