diff options
author | konstantin@mysql.com <> | 2005-07-20 20:02:36 +0400 |
---|---|---|
committer | konstantin@mysql.com <> | 2005-07-20 20:02:36 +0400 |
commit | 21957c423ecbe8b0126d56f586bc9997fe4d91bd (patch) | |
tree | 67f17393fe4e37a40bbcdee210b4e126d3cbb834 /sql/examples | |
parent | 4570ace8fb06244fe0e45f5617d5e3f9da815c11 (diff) | |
download | mariadb-git-21957c423ecbe8b0126d56f586bc9997fe4d91bd.tar.gz |
Implement MySQL framework to support consistent read views in
cursors. This should fix Bug#11813 when InnoDB part is in
(tested with a draft patch).
The idea of the patch is that if a storage engine supports
consistent read views, we open one when open a cursor,
set is as the active view when fetch from the cursor, and close
together with cursor close.
Diffstat (limited to 'sql/examples')
-rw-r--r-- | sql/examples/ha_archive.cc | 23 | ||||
-rw-r--r-- | sql/examples/ha_example.cc | 23 | ||||
-rw-r--r-- | sql/examples/ha_tina.cc | 23 |
3 files changed, 39 insertions, 30 deletions
diff --git a/sql/examples/ha_archive.cc b/sql/examples/ha_archive.cc index e5c35ae019d..fd47b45ce52 100644 --- a/sql/examples/ha_archive.cc +++ b/sql/examples/ha_archive.cc @@ -140,16 +140,19 @@ static handlerton archive_hton = { "archive", 0, /* slot */ 0, /* savepoint size. */ - 0, /* close_connection */ - 0, /* savepoint */ - 0, /* rollback to savepoint */ - 0, /* releas savepoint */ - 0, /* commit */ - 0, /* rollback */ - 0, /* prepare */ - 0, /* recover */ - 0, /* commit_by_xid */ - 0, /* rollback_by_xid */ + NULL, /* close_connection */ + NULL, /* savepoint */ + NULL, /* rollback to savepoint */ + NULL, /* releas savepoint */ + NULL, /* commit */ + NULL, /* rollback */ + NULL, /* prepare */ + NULL, /* recover */ + NULL, /* commit_by_xid */ + NULL, /* rollback_by_xid */ + NULL, /* create_cursor_read_view */ + NULL, /* set_cursor_read_view */ + NULL, /* close_cursor_read_view */ HTON_NO_FLAGS }; diff --git a/sql/examples/ha_example.cc b/sql/examples/ha_example.cc index 2818c176cd3..a7e193b9730 100644 --- a/sql/examples/ha_example.cc +++ b/sql/examples/ha_example.cc @@ -77,16 +77,19 @@ static handlerton example_hton= { "CSV", 0, /* slot */ 0, /* savepoint size. */ - 0, /* close_connection */ - 0, /* savepoint */ - 0, /* rollback to savepoint */ - 0, /* release savepoint */ - 0, /* commit */ - 0, /* rollback */ - 0, /* prepare */ - 0, /* recover */ - 0, /* commit_by_xid */ - 0, /* rollback_by_xid */ + NULL, /* close_connection */ + NULL, /* savepoint */ + NULL, /* rollback to savepoint */ + NULL, /* release savepoint */ + NULL, /* commit */ + NULL, /* rollback */ + NULL, /* prepare */ + NULL, /* recover */ + NULL, /* commit_by_xid */ + NULL, /* rollback_by_xid */ + NULL, /* create_cursor_read_view */ + NULL, /* set_cursor_read_view */ + NULL, /* close_cursor_read_view */ HTON_NO_FLAGS }; diff --git a/sql/examples/ha_tina.cc b/sql/examples/ha_tina.cc index 9c774c1f75c..1e2751f3016 100644 --- a/sql/examples/ha_tina.cc +++ b/sql/examples/ha_tina.cc @@ -58,16 +58,19 @@ static handlerton tina_hton= { "CSV", 0, /* slot */ 0, /* savepoint size. */ - 0, /* close_connection */ - 0, /* savepoint */ - 0, /* rollback to savepoint */ - 0, /* release savepoint */ - 0, /* commit */ - 0, /* rollback */ - 0, /* prepare */ - 0, /* recover */ - 0, /* commit_by_xid */ - 0, /* rollback_by_xid */ + NULL, /* close_connection */ + NULL, /* savepoint */ + NULL, /* rollback to savepoint */ + NULL, /* release savepoint */ + NULL, /* commit */ + NULL, /* rollback */ + NULL, /* prepare */ + NULL, /* recover */ + NULL, /* commit_by_xid */ + NULL, /* rollback_by_xid */ + NULL, /* create_cursor_read_view */ + NULL, /* set_cursor_read_view */ + NULL, /* close_cursor_read_view */ HTON_NO_FLAGS }; |