19
#include <drizzled/internal/my_bit.h>
19
#include "drizzled/internal/my_bit.h"
20
20
#include "myisampack.h"
21
21
#include "ha_myisam.h"
22
22
#include "myisam_priv.h"
23
#include <drizzled/option.h>
24
#include <drizzled/internal/my_bit.h>
25
#include <drizzled/internal/m_string.h>
26
#include <drizzled/util/test.h>
27
#include <drizzled/error.h>
28
#include <drizzled/errmsg_print.h>
29
#include <drizzled/gettext.h>
30
#include <drizzled/session.h>
31
#include <drizzled/plugin.h>
32
#include <drizzled/plugin/client.h>
33
#include <drizzled/table.h>
34
#include <drizzled/memory/multi_malloc.h>
35
#include <drizzled/plugin/daemon.h>
37
#include <drizzled/plugin/storage_engine.h>
23
#include "drizzled/option.h"
24
#include "drizzled/internal/my_bit.h"
25
#include "drizzled/internal/m_string.h"
26
#include "drizzled/util/test.h"
27
#include "drizzled/error.h"
28
#include "drizzled/errmsg_print.h"
29
#include "drizzled/gettext.h"
30
#include "drizzled/session.h"
31
#include "drizzled/plugin.h"
32
#include "drizzled/plugin/client.h"
33
#include "drizzled/table.h"
34
#include "drizzled/memory/multi_malloc.h"
35
#include "drizzled/plugin/daemon.h"
39
37
#include <boost/algorithm/string.hpp>
40
38
#include <boost/scoped_ptr.hpp>
296
294
record= table_arg->getInsertRecord();
298
296
recinfo_pos= recinfo;
300
while (recpos < (uint) share->sizeStoredRecord())
297
while (recpos < (uint) share->stored_rec_length)
302
299
Field **field, *found= 0;
303
300
minpos= share->getRecordLength();
534
530
Session *cur_session;
535
531
if ((cur_session= file->in_use))
537
errmsg_printf(error::ERROR, _("Got an error from thread_id=%"PRIu64", %s:%d"),
532
errmsg_printf(ERRMSG_LVL_ERROR, _("Got an error from thread_id=%"PRIu64", %s:%d"),
538
533
cur_session->thread_id,
543
errmsg_printf(error::ERROR, _("Got an error from unknown thread, %s:%d"), sfile, sline);
536
errmsg_printf(ERRMSG_LVL_ERROR, _("Got an error from unknown thread, %s:%d"), sfile, sline);
547
errmsg_printf(error::ERROR, "%s", message);
538
errmsg_printf(ERRMSG_LVL_ERROR, "%s", message);
549
539
list<Session *>::iterator it= file->s->in_use->begin();
550
540
while (it != file->s->in_use->end())
552
errmsg_printf(error::ERROR, "%s", _("Unknown thread accessing table"));
542
errmsg_printf(ERRMSG_LVL_ERROR, "%s", _("Unknown thread accessing table"));
701
691
if (file->dfile == -1)
703
errmsg_printf(error::INFO, "Retrying repair of: '%s' failed. "
704
"Please try REPAIR EXTENDED or myisamchk",
705
getTable()->getShare()->getPath());
693
errmsg_printf(ERRMSG_LVL_INFO, "Retrying repair of: '%s' failed. "
694
"Please try REPAIR EXTENDED or myisamchk",
695
getTable()->getShare()->getPath());
706
696
return(HA_ADMIN_FAILED);
927
917
param.stats_method= MI_STATS_METHOD_NULLS_NOT_EQUAL;
928
918
if ((error= (repair(session,param,0) != HA_ADMIN_OK)) && param.retry_repair)
930
errmsg_printf(error::WARN, "Warning: Enabling keys got errno %d on %s.%s, retrying",
920
errmsg_printf(ERRMSG_LVL_WARN, "Warning: Enabling keys got errno %d on %s.%s, retrying",
931
921
errno, param.db_name, param.table_name);
932
922
/* Repairing by sort failed. Now try standard repair method. */
933
923
param.testflag&= ~(T_REP_BY_SORT | T_QUICK);
1529
1519
"Default engine as of MySQL 3.23 with great performance",
1530
1520
PLUGIN_LICENSE_GPL,
1531
1521
myisam_init, /* Plugin Init */
1522
NULL, /* system variables */
1533
1523
init_options /* config options */
1535
1525
DRIZZLE_DECLARE_PLUGIN_END;