diff options
author | Haru <haru@dotalux.com> | 2017-05-31 02:28:06 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2017-05-31 02:34:10 +0200 |
commit | 4b208e41d1d5cc995c2816e8f34c1ad8b0a7327d (patch) | |
tree | 5359f1cef645f89bfdd7d783b8e4d1176e192c5d /src/char/int_pet.h | |
parent | b950a589e59e2bf074f67c75aaacf3f82424d4fe (diff) | |
download | hercules-4b208e41d1d5cc995c2816e8f34c1ad8b0a7327d.tar.gz hercules-4b208e41d1d5cc995c2816e8f34c1ad8b0a7327d.tar.bz2 hercules-4b208e41d1d5cc995c2816e8f34c1ad8b0a7327d.tar.xz hercules-4b208e41d1d5cc995c2816e8f34c1ad8b0a7327d.zip |
Fix a race condition when saving the storage on logout
The storage data is no longer cached in the char server. This removal
doesn't cause any performance loss, since the cached data was refreshed
(loaded from the database) after every save operation. This commit
moves the load at the beginning of the save rather than at the end, and
discars the cached copy after the save is completed.
Related to #1754
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/int_pet.h')
0 files changed, 0 insertions, 0 deletions