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
83dbb2d4
Commit
83dbb2d4
authored
Dec 20, 2016
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-11487 Revert InnoDB internal temporary tables from WL#7682
Post-push fix: Remove the orphaned file sess0sess.h.
parent
1152b076
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
146 deletions
+0
-146
storage/innobase/include/sess0sess.h
storage/innobase/include/sess0sess.h
+0
-146
No files found.
storage/innobase/include/sess0sess.h
deleted
100644 → 0
View file @
1152b076
/*****************************************************************************
Copyright (c) 2013, 2014, Oracle and/or its affiliates. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; version 2 of the License.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA
*****************************************************************************/
/**************************************************//**
@file include/sess0sess.h
InnoDB session state tracker.
Multi file, shared, system tablespace implementation.
Created 2014-04-30 by Krunal Bauskar
*******************************************************/
#ifndef sess0sess_h
#define sess0sess_h
#include "univ.i"
#include "dict0mem.h"
#include "ut0new.h"
#include <map>
class
dict_intrinsic_table_t
{
public:
/** Constructor
@param[in,out] handler table handler. */
dict_intrinsic_table_t
(
dict_table_t
*
handler
)
:
m_handler
(
handler
)
{
/* Do nothing. */
}
/** Destructor */
~
dict_intrinsic_table_t
()
{
m_handler
=
NULL
;
}
public:
/* Table Handler holding other metadata information commonly needed
for any table. */
dict_table_t
*
m_handler
;
};
/** InnoDB private data that is cached in THD */
typedef
std
::
map
<
std
::
string
,
dict_intrinsic_table_t
*
,
std
::
less
<
std
::
string
>
,
ut_allocator
<
std
::
pair
<
const
std
::
string
,
dict_intrinsic_table_t
*>
>
>
table_cache_t
;
class
innodb_session_t
{
public:
/** Constructor */
innodb_session_t
()
:
m_trx
(),
m_open_tables
()
{
/* Do nothing. */
}
/** Destructor */
~
innodb_session_t
()
{
m_trx
=
NULL
;
for
(
table_cache_t
::
iterator
it
=
m_open_tables
.
begin
();
it
!=
m_open_tables
.
end
();
++
it
)
{
delete
(
it
->
second
);
}
}
/** Cache table handler.
@param[in] table_name name of the table
@param[in,out] table table handler to register */
void
register_table_handler
(
const
char
*
table_name
,
dict_table_t
*
table
)
{
ut_ad
(
lookup_table_handler
(
table_name
)
==
NULL
);
m_open_tables
.
insert
(
table_cache_t
::
value_type
(
table_name
,
new
dict_intrinsic_table_t
(
table
)));
}
/** Lookup for table handler given table_name.
@param[in] table_name name of the table to lookup */
dict_table_t
*
lookup_table_handler
(
const
char
*
table_name
)
{
table_cache_t
::
iterator
it
=
m_open_tables
.
find
(
table_name
);
return
((
it
==
m_open_tables
.
end
())
?
NULL
:
it
->
second
->
m_handler
);
}
/** Remove table handler entry.
@param[in] table_name name of the table to remove */
void
unregister_table_handler
(
const
char
*
table_name
)
{
table_cache_t
::
iterator
it
=
m_open_tables
.
find
(
table_name
);
if
(
it
==
m_open_tables
.
end
())
{
return
;
}
delete
(
it
->
second
);
m_open_tables
.
erase
(
table_name
);
}
/** Count of register table handler.
@return number of register table handlers */
uint
count_register_table_handler
()
const
{
return
(
static_cast
<
uint
>
(
m_open_tables
.
size
()));
}
public:
/** transaction handler. */
trx_t
*
m_trx
;
/** Handler of tables that are created or open but not added
to InnoDB dictionary as they are session specific.
Currently, limited to intrinsic temporary tables only. */
table_cache_t
m_open_tables
;
};
#endif
/* sess0sess_h */
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