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
55807d95
Commit
55807d95
authored
Sep 20, 2002
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trx0trx.ic, trx0trx.h, srv0srv.h, row0sel.h, dict0mem.h:
Modifications for query cache + trxs, fix of q.c.+ foreign keys
parent
9e493e91
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
1 deletion
+47
-1
innobase/include/dict0mem.h
innobase/include/dict0mem.h
+7
-0
innobase/include/row0sel.h
innobase/include/row0sel.h
+12
-0
innobase/include/srv0srv.h
innobase/include/srv0srv.h
+1
-1
innobase/include/trx0trx.h
innobase/include/trx0trx.h
+8
-0
innobase/include/trx0trx.ic
innobase/include/trx0trx.ic
+19
-0
No files found.
innobase/include/dict0mem.h
View file @
55807d95
...
...
@@ -333,6 +333,13 @@ struct dict_table_struct{
space from the lock heap of the trx:
otherwise the lock heap would grow rapidly
if we do a large insert from a select */
dulint
query_cache_inv_trx_id
;
/* transactions whose trx id < than this
number are not allowed to store to the MySQL
query cache or retrieve from it; when a trx
with undo logs commits, it sets this to the
value of the trx id counter for the tables it
had an IX lock on */
UT_LIST_BASE_NODE_T
(
lock_t
)
locks
;
/* list of locks on the table */
/*----------------------*/
...
...
innobase/include/row0sel.h
View file @
55807d95
...
...
@@ -133,6 +133,18 @@ row_search_for_mysql(
then prebuilt must have a pcur
with stored position! In opening of a
cursor 'direction' should be 0. */
/***********************************************************************
Checks if MySQL at the moment is allowed for this table to retrieve a
consistent read result, or store it to the query cache. */
ibool
row_search_check_if_query_cache_permitted
(
/*======================================*/
/* out: TRUE if storing or retrieving from
the query cache is permitted */
trx_t
*
trx
,
/* in: transaction object */
char
*
norm_name
);
/* in: concatenation of database name, '/'
char, table name */
/* A structure for caching column values for prefetched rows */
...
...
innobase/include/srv0srv.h
View file @
55807d95
...
...
@@ -53,7 +53,7 @@ extern ulint srv_n_log_files;
extern
ulint
srv_log_file_size
;
extern
ibool
srv_log_archive_on
;
extern
ulint
srv_log_buffer_size
;
extern
ulint
srv_flush_log_at_trx_commit
;
extern
ibool
srv_flush_log_at_trx_commit
;
extern
byte
srv_latin1_ordering
[
256
];
/* The sort order table of the latin1
character set */
...
...
innobase/include/trx0trx.h
View file @
55807d95
...
...
@@ -118,6 +118,14 @@ trx_start_if_not_started(
/*=====================*/
trx_t
*
trx
);
/* in: transaction */
/*****************************************************************
Starts the transaction if it is not yet started. Assumes we have reserved
the kernel mutex! */
UNIV_INLINE
void
trx_start_if_not_started_low
(
/*=========================*/
trx_t
*
trx
);
/* in: transaction */
/*****************************************************************
Starts the transaction if it is not yet started. */
void
...
...
innobase/include/trx0trx.ic
View file @
55807d95
...
...
@@ -21,3 +21,22 @@ trx_start_if_not_started(
trx_start(trx, ULINT_UNDEFINED);
}
}
/*****************************************************************
Starts the transaction if it is not yet started. Assumes we have reserved
the kernel mutex! */
UNIV_INLINE
void
trx_start_if_not_started_low(
/*=========================*/
trx_t* trx) /* in: transaction */
{
ut_ad(trx->conc_state != TRX_COMMITTED_IN_MEMORY);
if (trx->conc_state == TRX_NOT_STARTED) {
trx_start_low(trx, ULINT_UNDEFINED);
}
}
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