~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table/concurrent.cc

  • Committer: Lee Bieber
  • Date: 2011-04-14 02:59:01 UTC
  • mfrom: (2275.3.4 cache)
  • mto: This revision was merged to the branch mainline in revision 2278.
  • Revision ID: kalebral@gmail.com-20110414025901-o0oici0e4ngtqz91
Merge Olaf - Refactor Thread

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
  pointer.
52
52
 
53
53
  NOTE
54
 
  This function assumes that its caller already acquired table::Cache::singleton().mutex() mutex.
 
54
  This function assumes that its caller already acquired table::Cache::mutex() mutex.
55
55
 
56
56
  RETURN VALUE
57
57
  false - Success
60
60
 
61
61
bool Concurrent::reopen_name_locked_table(TableList* table_list, Session *session)
62
62
{
63
 
  safe_mutex_assert_owner(table::Cache::singleton().mutex().native_handle());
 
63
  safe_mutex_assert_owner(table::Cache::mutex().native_handle());
64
64
 
65
65
  if (session->getKilled())
66
66
    return true;
109
109
 
110
110
  NOTES
111
111
  Extra argument for open is taken from session->open_options
112
 
  One must have a lock on table::Cache::singleton().mutex() when calling this function
 
112
  One must have a lock on table::Cache::mutex() when calling this function
113
113
 
114
114
  RETURN
115
115
  0     ok
124
124
  TableShare::shared_ptr share;
125
125
  uint32_t discover_retry_count= 0;
126
126
 
127
 
  safe_mutex_assert_owner(table::Cache::singleton().mutex().native_handle());
 
127
  safe_mutex_assert_owner(table::Cache::mutex().native_handle());
128
128
retry:
129
129
  if (not (share= table::instance::Shared::make_shared(session, identifier, error)))
130
130
  {