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
78d42767
Commit
78d42767
authored
Jun 10, 2016
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some trivial changes.
parent
7ecb3049
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
+7
-4
sql/table.cc
sql/table.cc
+2
-1
sql/table_cache.cc
sql/table_cache.cc
+2
-3
sql/table_cache.h
sql/table_cache.h
+3
-0
No files found.
sql/table.cc
View file @
78d42767
...
...
@@ -279,7 +279,8 @@ TABLE_CATEGORY get_table_category(const LEX_STRING *db, const LEX_STRING *name)
SYNOPSIS
alloc_table_share()
TABLE_LIST Take database and table name from there
db Database name
table_name Table name
key Table cache key (db \0 table_name \0...)
key_length Length of key
...
...
sql/table_cache.cc
View file @
78d42767
...
...
@@ -741,10 +741,9 @@ void tdc_unlock_share(TDC_element *element)
tdc_acquire_share()
thd Thread handle
table_list Table that should be opened
key Table cache key
key_length Length of key
tl Table that should be opened
flags operation: what to open table or view
out_table TABLE for the requested table
IMPLEMENTATION
Get a table definition from the table definition cache.
...
...
sql/table_cache.h
View file @
78d42767
#ifndef TABLE_CACHE_H_INCLUDED
#define TABLE_CACHE_H_INCLUDED
/* Copyright (c) 2000, 2012, Oracle and/or its affiliates.
Copyright (c) 2010, 2011 Monty Program Ab
Copyright (C) 2013 Sergey Vojtovich and MariaDB Foundation
...
...
@@ -109,3 +111,4 @@ inline uint tdc_create_key(char *key, const char *db, const char *table_name)
return
(
uint
)
(
strmake
(
strmake
(
key
,
db
,
NAME_LEN
)
+
1
,
table_name
,
NAME_LEN
)
-
key
+
1
);
}
#endif
/* TABLE_CACHE_H_INCLUDED */
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