MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
pfs_setup_actor.h
Go to the documentation of this file.
1
/* Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
2
3
This program is free software; you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation; version 2 of the License.
6
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY; without even the implied warranty of
9
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
GNU General Public License for more details.
11
12
You should have received a copy of the GNU General Public License
13
along with this program; if not, write to the Free Software Foundation,
14
51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */
15
16
#ifndef PFS_SETUP_ACTOR_H
17
#define PFS_SETUP_ACTOR_H
18
24
#include "sql_string.h"
25
#include "
pfs_lock.h
"
26
#include "lf.h"
27
28
struct
PFS_global_param
;
29
30
/* WL#988 Roles Not implemented yet */
31
#define ROLENAME_LENGTH 64
32
39
struct
PFS_setup_actor_key
40
{
46
char
m_hash_key
[USERNAME_LENGTH + 1 + HOSTNAME_LENGTH + 1 + ROLENAME_LENGTH + 1];
48
uint
m_key_length
;
49
};
50
52
struct
PFS_ALIGNED
PFS_setup_actor
53
{
55
pfs_lock
m_lock
;
57
PFS_setup_actor_key
m_key
;
59
const
char
*
m_username
;
61
uint
m_username_length
;
63
const
char
*
m_hostname
;
65
uint
m_hostname_length
;
67
const
char
*
m_rolename
;
69
uint
m_rolename_length
;
70
};
71
72
int
init_setup_actor
(
const
PFS_global_param
*param);
73
void
cleanup_setup_actor
(
void
);
74
int
init_setup_actor_hash
(
void
);
75
void
cleanup_setup_actor_hash
(
void
);
76
77
int
insert_setup_actor(
const
String
*user,
const
String
*host,
const
String
*role);
78
int
delete_setup_actor(
const
String
*user,
const
String
*host,
const
String
*role);
79
int
reset_setup_actor(
void
);
80
long
setup_actor_count(
void
);
81
82
void
lookup_setup_actor(
PFS_thread
*thread,
83
const
char
*user, uint user_length,
84
const
char
*host, uint host_length,
85
bool
*enabled);
86
87
/* For iterators and show status. */
88
89
extern
ulong
setup_actor_max
;
90
91
/* Exposing the data directly, for iterators. */
92
93
extern
PFS_setup_actor
*
setup_actor_array
;
94
95
extern
LF_HASH
setup_actor_hash
;
96
98
#endif
99
storage
perfschema
pfs_setup_actor.h
Generated on Sat Nov 9 2013 01:28:39 for MySQL 5.6.14 Source Code Document by
1.8.1.2