diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-30 17:38:30 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-30 17:38:30 +0000 |
commit | 328c46121fe7477a3c8a753379452c7a9f3f940e (patch) | |
tree | a567c726bdf4e8687ea46f8a5a210962a123df90 /src/account-server | |
parent | 25914cddf606e683a4226f46b56f800400d633d3 (diff) | |
download | manaserv-328c46121fe7477a3c8a753379452c7a9f3f940e.tar.gz manaserv-328c46121fe7477a3c8a753379452c7a9f3f940e.tar.bz2 manaserv-328c46121fe7477a3c8a753379452c7a9f3f940e.tar.xz manaserv-328c46121fe7477a3c8a753379452c7a9f3f940e.zip |
Missed a few occurrences of "open" when removing them.
Diffstat (limited to 'src/account-server')
-rw-r--r-- | src/account-server/dalstorage.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/account-server/dalstorage.cpp b/src/account-server/dalstorage.cpp index 6e3886a3..410f1371 100644 --- a/src/account-server/dalstorage.cpp +++ b/src/account-server/dalstorage.cpp @@ -594,9 +594,6 @@ bool DALStorage::updateCharacter(Character *character) std::map<unsigned short, ChatChannel> DALStorage::getChannelList() { - // If not opened already - open(); - // specialize the string_to functor to convert // a string to a short. string_to<int> toInt; @@ -644,13 +641,6 @@ DALStorage::getChannelList() void DALStorage::updateChannels(std::map<unsigned short, ChatChannel>& channelList) { -#if defined (SQLITE_SUPPORT) - // Reopen the db in this thread for sqlite, to avoid - // Library Call out of sequence problem due to thread safe. - close(); -#endif - open(); - try { // Empties the table std::stringstream sql; @@ -953,13 +943,6 @@ void DALStorage::addGuild(Guild* guild) */ void DALStorage::removeGuild(Guild* guild) { -#if defined (SQLITE_SUPPORT) - // Reopen the db in this thread for sqlite, to avoid - // Library Call out of sequence problem due to thread safe. - close(); -#endif - open(); - std::ostringstream sql; sql << "delete from " << GUILDS_TBL_NAME << " where id = '" |