diff options
author | monty@mysql.com <> | 2004-11-12 17:44:17 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2004-11-12 17:44:17 +0200 |
commit | e9c3887b583e06c7df5df3ca64c367022486a9fc (patch) | |
tree | ed1b1c23390d48668f06ceff0a8f851e16568f90 /sql | |
parent | 9252656d4985a4b35ccef85c127875978ace3990 (diff) | |
download | mariadb-git-e9c3887b583e06c7df5df3ca64c367022486a9fc.tar.gz |
After merge fixes
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_acl.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 9067d01a06d..98af43e17a7 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -970,6 +970,7 @@ ulong acl_get(const char *host, const char *ip, db_access=0; host_access= ~0; char key[ACL_KEY_LENGTH],*tmp_db,*end; acl_entry *entry; + DBUG_ENTER("acl_get"); VOID(pthread_mutex_lock(&acl_cache->lock)); end=strmov((tmp_db=strmov(strmov(key, ip ? ip : "")+1,user)+1),db); @@ -983,7 +984,8 @@ ulong acl_get(const char *host, const char *ip, { db_access=entry->access; VOID(pthread_mutex_unlock(&acl_cache->lock)); - return db_access; + DBUG_PRINT("exit", ("access: 0x%lx", db_access)); + DBUG_RETURN(db_access); } /* @@ -1035,7 +1037,8 @@ exit: acl_cache->add(entry); } VOID(pthread_mutex_unlock(&acl_cache->lock)); - return (db_access & host_access); + DBUG_PRINT("exit", ("access: 0x%lx", db_access & host_access)); + DBUG_RETURN(db_access & host_access); } /* |