22 #include <plugin/user_locks/module.h>
23 #include <plugin/user_locks/barrier_storage.h>
27 namespace user_locks {
34 if (res and res->length())
36 Barrier::shared_ptr barrier= Barriers::getInstance().find(
Key(*getSession().user(), res->c_str()));
46 else if (not res || not res->length())
48 my_error(drizzled::ER_USER_LOCKS_INVALID_NAME_BARRIER, MYF(0));
52 my_error(drizzled::ER_USER_LOCKS_UNKNOWN_BARRIER, MYF(0));