~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Brian Aker
  • Date: 2010-12-23 20:54:14 UTC
  • mfrom: (2022.2.1 clean)
  • mto: (2026.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2025.
  • Revision ID: brian@tangent.org-20101223205414-2xvdkdp77t0rvutg
Merge in session list.

Show diffs side-by-side

added added

removed removed

Lines of Context:
319
319
  typedef boost::unordered_map<std::string, util::Storable *, util::insensitive_hash, util::insensitive_equal_to> PropertyMap;
320
320
  typedef Session* Ptr;
321
321
  typedef boost::shared_ptr<Session> shared_ptr;
 
322
  typedef const Session& const_reference;
 
323
  typedef const Session* const_pointer;
 
324
  typedef Session* pointer;
322
325
 
323
326
  /*
324
327
    MARK_COLUMNS_NONE:  Means mark_used_colums is not set and no indicator to
529
532
  static const char * const DEFAULT_WHERE;
530
533
 
531
534
  memory::Root warn_root; /**< Allocation area for warnings and errors */
 
535
private:
532
536
  plugin::Client *client; /**< Pointer to client object */
533
537
 
 
538
public:
 
539
 
534
540
  void setClient(plugin::Client *client_arg);
535
541
 
536
542
  plugin::Client *getClient()
601
607
  /**
602
608
   * Is this session viewable by the current user?
603
609
   */
604
 
  bool isViewable() const;
 
610
  bool isViewable(identifier::User::const_reference) const;
605
611
 
606
612
  /**
607
613
    Used in error messages to tell user in what part of MySQL we found an
1217
1223
   */
1218
1224
  static bool schedule(Session::shared_ptr&);
1219
1225
 
 
1226
  static void unlink(session_id_t &session_id);
1220
1227
  static void unlink(Session::shared_ptr&);
1221
1228
 
1222
1229
  /*
1430
1437
   * updates any status variables necessary.
1431
1438
   *
1432
1439
   * @param errcode     Error code to print to console
1433
 
   * @param should_lock 1 if we have have to lock LOCK_thread_count
1434
1440
   *
1435
1441
   * @note  For the connection that is doing shutdown, this is called twice
1436
1442
   */
1437
 
  void disconnect(uint32_t errcode, bool lock);
 
1443
  void disconnect(enum drizzled_error_code errcode= EE_OK);
1438
1444
 
1439
1445
  /**
1440
1446
   * Check if user exists and the password supplied is correct.