22 #include <plugin/user_locks/module.h>
23 #include <plugin/user_locks/lock_storage.h>
27 namespace user_locks {
33 for (int64_t x= 0; x < arg_count; x++)
37 if (res && res->length())
39 list_of_locks.insert(
Key(*getSession().user(), res->c_str()));
43 my_error(drizzled::ER_USER_LOCKS_INVALID_NAME_LOCK, MYF(0));
48 boost::this_thread::restore_interruption dl(getSession().getThreadInterupt());
51 if (not user_locks::Locks::getInstance().lock(getSession().getSessionId(), list_of_locks))
54 catch (boost::thread_interrupted
const&)
56 my_error(drizzled::ER_QUERY_INTERRUPTED, MYF(0));
64 list= getSession().setProperty(
"user_locks",
new user_locks::Storable(getSession().getSessionId()));
65 BOOST_FOREACH(Keys::const_reference iter, list_of_locks)
virtual String * val_str(String *str)=0