~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_info.cc

  • Committer: Brian Aker
  • Date: 2010-03-15 21:50:05 UTC
  • mto: This revision was merged to the branch mainline in revision 1343.
  • Revision ID: brian@gaz-20100315215005-oqoblpbll9n0albj
Merge of table cache/def DD.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
 
12
12
   You should have received a copy of the GNU General Public License
13
13
   along with this program; if not, write to the Free Software
14
 
   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
/* Return useful base information for an open table */
17
17
 
42
42
    return(0);                          /* Compatible with ISAM */
43
43
  if (!(flag & HA_STATUS_NO_LOCK))
44
44
  {
 
45
    pthread_mutex_lock(&share->intern_lock);
45
46
    _mi_readinfo(info,F_RDLCK,0);
46
47
    fast_mi_writeinfo(info);
 
48
    pthread_mutex_unlock(&share->intern_lock);
47
49
  }
48
50
  if (flag & HA_STATUS_VARIABLE)
49
51
  {
117
119
 
118
120
void mi_report_error(int errcode, const char *file_name)
119
121
{
120
 
  mi_report_error(errcode, file_name);
121
 
}
122
 
 
123
 
void mi_report_error(drizzled::error_t errcode, const char *file_name)
124
 
{
125
122
  size_t        lgt;
126
123
 
127
124
  if ((lgt= strlen(file_name)) > 64)
128
125
    file_name+= lgt - 64;
129
126
  my_error(errcode, MYF(ME_NOREFRESH), file_name);
 
127
  return;
130
128
}
131
129