diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-10-30 10:54:27 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2010-10-30 12:51:31 +0200 |
commit | 6129e5bf1fe0128eb7742a7270e1264b65798bbb (patch) | |
tree | f54afc81e8dcc0d14a13721170f497f8e2df6d2b /src/account-server/storage.hpp | |
parent | e4713d0203311fdfcfef72ae5632782075159a56 (diff) | |
download | manaserv-6129e5bf1fe0128eb7742a7270e1264b65798bbb.tar.gz manaserv-6129e5bf1fe0128eb7742a7270e1264b65798bbb.tar.bz2 manaserv-6129e5bf1fe0128eb7742a7270e1264b65798bbb.tar.xz manaserv-6129e5bf1fe0128eb7742a7270e1264b65798bbb.zip |
Have the PerformTransaction class automatically handle nesting
No need to fiddle around with "startTransaction" booleans now that the
helper class is a little more intelligent. When the database is already
performing a transaction, no new one will be started.
Diffstat (limited to 'src/account-server/storage.hpp')
-rw-r--r-- | src/account-server/storage.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/account-server/storage.hpp b/src/account-server/storage.hpp index 8651d20e..27d12997 100644 --- a/src/account-server/storage.hpp +++ b/src/account-server/storage.hpp @@ -74,8 +74,8 @@ class Storage void banCharacter(int id, int duration); - void delCharacter(int charId, bool startTransaction) const; - void delCharacter(Character *character, bool startTransaction) const; + void delCharacter(int charId) const; + void delCharacter(Character *character) const; void checkBannedAccounts(); @@ -83,8 +83,7 @@ class Storage bool doesEmailAddressExist(const std::string &email); bool doesCharacterNameExist(const std::string &name); - bool updateCharacter(Character *ptr, - bool startTransaction = true); + bool updateCharacter(Character *ptr); void flushSkill(const Character *character, int skill_id); |