Commit 78d42767 authored by Nirbhay Choubey's avatar Nirbhay Choubey

Some trivial changes.

parent 7ecb3049
...@@ -279,7 +279,8 @@ TABLE_CATEGORY get_table_category(const LEX_STRING *db, const LEX_STRING *name) ...@@ -279,7 +279,8 @@ TABLE_CATEGORY get_table_category(const LEX_STRING *db, const LEX_STRING *name)
SYNOPSIS SYNOPSIS
alloc_table_share() 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 Table cache key (db \0 table_name \0...)
key_length Length of key key_length Length of key
......
...@@ -741,10 +741,9 @@ void tdc_unlock_share(TDC_element *element) ...@@ -741,10 +741,9 @@ void tdc_unlock_share(TDC_element *element)
tdc_acquire_share() tdc_acquire_share()
thd Thread handle thd Thread handle
table_list Table that should be opened tl Table that should be opened
key Table cache key
key_length Length of key
flags operation: what to open table or view flags operation: what to open table or view
out_table TABLE for the requested table
IMPLEMENTATION IMPLEMENTATION
Get a table definition from the table definition cache. Get a table definition from the table definition cache.
......
#ifndef TABLE_CACHE_H_INCLUDED
#define TABLE_CACHE_H_INCLUDED
/* Copyright (c) 2000, 2012, Oracle and/or its affiliates. /* Copyright (c) 2000, 2012, Oracle and/or its affiliates.
Copyright (c) 2010, 2011 Monty Program Ab Copyright (c) 2010, 2011 Monty Program Ab
Copyright (C) 2013 Sergey Vojtovich and MariaDB Foundation 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) ...@@ -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, return (uint) (strmake(strmake(key, db, NAME_LEN) + 1, table_name,
NAME_LEN) - key + 1); NAME_LEN) - key + 1);
} }
#endif /* TABLE_CACHE_H_INCLUDED */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment