~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin.h

  • Committer: Brian Aker
  • Date: 2010-11-07 00:54:27 UTC
  • mfrom: (1909.1.2 merge)
  • Revision ID: brian@tangent.org-20101107005427-a3kcx1lytrm36a97
Rollup merge of iocache work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
405
405
*/
406
406
int mysql_tmpfile(const char *prefix);
407
407
 
408
 
/**
409
 
  Check the killed state of a connection
410
 
 
411
 
  @details
412
 
  In MySQL support for the KILL statement is cooperative. The KILL
413
 
  statement only sets a "killed" flag. This function returns the value
414
 
  of that flag.  A thread should check it often, especially inside
415
 
  time-consuming loops, and gracefully abort the operation if it is
416
 
  non-zero.
417
 
 
418
 
  @param session  user thread connection handle
419
 
  @retval 0  the connection is active
420
 
  @retval 1  the connection has been killed
421
 
*/
422
 
int session_killed(const Session *session);
423
 
 
424
 
 
425
 
const charset_info_st *session_charset(Session *session);
426
 
 
427
 
/**
428
 
  Invalidate the query cache for a given table.
429
 
 
430
 
  @param session         user thread connection handle
431
 
  @param key         databasename\\0tablename\\0
432
 
  @param key_length  length of key in bytes, including the NUL bytes
433
 
  @param using_trx   flag: TRUE if using transactions, FALSE otherwise
434
 
*/
435
 
void mysql_query_cache_invalidate4(Session *session,
436
 
                                   const char *key, unsigned int key_length,
437
 
                                   int using_trx);
438
 
 
439
408
} /* namespace drizzled */
440
409
 
441
410
#endif /* DRIZZLED_PLUGIN_H */