~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_class.h

  • Committer: Monty Taylor
  • Date: 2008-09-15 00:46:33 UTC
  • mfrom: (383.1.55 client-split)
  • Revision ID: monty@inaugust.com-20080915004633-fmjw27fi41cxs35w
Merged from client-split.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1190
1190
  } transaction;
1191
1191
  Field      *dup_field;
1192
1192
  sigset_t signals;
1193
 
#ifdef SIGNAL_WITH_VIO_CLOSE
1194
 
  Vio* active_vio;
1195
 
#endif
1196
1193
  /*
1197
1194
    This is to track items changed during execution of a prepared
1198
1195
    statement/stored procedure. It's created by
1559
1556
  void cleanup(void);
1560
1557
  void cleanup_after_query();
1561
1558
  bool store_globals();
1562
 
#ifdef SIGNAL_WITH_VIO_CLOSE
1563
 
  inline void set_active_vio(Vio* vio)
1564
 
  {
1565
 
    pthread_mutex_lock(&LOCK_delete);
1566
 
    active_vio = vio;
1567
 
    pthread_mutex_unlock(&LOCK_delete);
1568
 
  }
1569
 
  inline void clear_active_vio()
1570
 
  {
1571
 
    pthread_mutex_lock(&LOCK_delete);
1572
 
    active_vio = 0;
1573
 
    pthread_mutex_unlock(&LOCK_delete);
1574
 
  }
1575
 
  void close_active_vio();
1576
 
#endif
1577
1559
  void awake(THD::killed_state state_to_set);
1578
1560
 
1579
1561
#ifndef DRIZZLE_CLIENT
1697
1679
    return;
1698
1680
  }
1699
1681
  inline bool vio_ok() const { return net.vio != 0; }
1700
 
  /** Return false if connection to client is broken. */
1701
 
  bool vio_is_connected();
 
1682
 
1702
1683
  /**
1703
1684
    Mark the current error as fatal. Warning: this does not
1704
1685
    set any error, it sets a property of the error, so must be