summaryrefslogtreecommitdiff
path: root/src/account-server/dalstorage.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-30 17:38:30 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-30 17:38:30 +0000
commit328c46121fe7477a3c8a753379452c7a9f3f940e (patch)
treea567c726bdf4e8687ea46f8a5a210962a123df90 /src/account-server/dalstorage.cpp
parent25914cddf606e683a4226f46b56f800400d633d3 (diff)
downloadmanaserv-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/dalstorage.cpp')
-rw-r--r--src/account-server/dalstorage.cpp17
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 = '"