~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/unlock_tables.cc

  • Committer: Patrick Galbraith
  • Date: 2009-10-08 22:42:05 UTC
  • mto: (1166.5.3 memcached_functions)
  • mto: This revision was merged to the branch mainline in revision 1189.
  • Revision ID: patg@patrick-galbraiths-macbook-pro.local-20091008224205-gq1pehjsivvx0qo9
Starting over with a fresh tree, moved in memcached functions.

Memcached Functions for Drizzle. 

All tests pass.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#include "config.h"
 
21
#include <drizzled/server_includes.h>
22
22
#include <drizzled/show.h>
23
23
#include <drizzled/session.h>
24
24
#include <drizzled/lock.h>
25
25
#include <drizzled/statement/unlock_tables.h>
26
26
 
27
 
namespace drizzled
28
 
{
 
27
using namespace drizzled;
29
28
 
30
29
bool statement::UnlockTables::execute()
31
30
{
35
34
     done FLUSH TABLES WITH READ LOCK + BEGIN. If this assumption becomes
36
35
     false, mysqldump will not work.
37
36
   */
38
 
  if (session->isGlobalReadLock())
 
37
  if (session->global_read_lock)
39
38
  {
40
 
    session->unlockGlobalReadLock();
 
39
    unlock_global_read_lock(session);
41
40
  }
42
41
  session->my_ok();
43
 
 
44
42
  return false;
45
43
}
46
 
 
47
 
} /* namespace drizzled */
48