22 #include <plugin/user_locks/module.h>
23 #include <plugin/user_locks/barrier_storage.h>
34 if (not res || not res->length())
36 my_error(drizzled::ER_USER_LOCKS_INVALID_NAME_BARRIER, MYF(0));
42 drizzled::identifier::user::ptr user_identifier(getSession().user());
44 barriers::return_t result= Barriers::getInstance().release(
Key(*user_identifier, res->c_str()), getSession().
getSessionId());
49 case barriers::SUCCESS:
55 my_error(drizzled::ER_USER_LOCKS_NOT_OWNER_OF_BARRIER, MYF(0));
60 list->erase(
Key(*user_identifier, res->c_str()));
65 case barriers::NOT_FOUND:
66 my_error(drizzled::ER_USER_LOCKS_UNKNOWN_BARRIER, MYF(0));
69 case barriers::NOT_OWNED_BY:
70 my_error(drizzled::ER_USER_LOCKS_NOT_OWNER_OF_BARRIER, MYF(0));
session_id_t getSessionId() const
virtual String * val_str(String *str)=0