Skip to content

Commit 4afbb7f

Browse files
author
Omar Sharieff
committed
Bug#33339129 : Remove the redundant code.
Description: Redundant code removal in class Security_context, function Security_context::init and function Security_context::checkout_access_maps. Fix: Redundant code removed. RB#27342
1 parent 1f96640 commit 4afbb7f

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

sql/auth/sql_security_ctx.cc

-2
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ void Security_context::init() {
8787
m_master_access = 0;
8888
m_db_access = NO_ACCESS;
8989
m_acl_map = nullptr;
90-
m_map_checkout_count = 0;
9190
m_password_expired = false;
9291
m_is_locked = false;
9392
m_is_skip_grants_user = false;
@@ -396,7 +395,6 @@ void Security_context::checkout_access_maps(void) {
396395
}
397396

398397
if (m_active_roles.size() == 0) return;
399-
++m_map_checkout_count;
400398
Auth_id_ref uid;
401399
uid.first.str = this->m_priv_user;
402400
uid.first.length = this->m_priv_user_length;

sql/auth/sql_security_ctx.h

-1
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,6 @@ class Security_context {
371371
bool m_password_expired;
372372
List_of_auth_id_refs m_active_roles;
373373
Acl_map *m_acl_map;
374-
int m_map_checkout_count;
375374
/**
376375
True if this account can't be logged into.
377376
*/

0 commit comments

Comments
 (0)