aboutsummaryrefslogtreecommitdiff
path: root/src/database-redis.cpp
AgeCommit message (Collapse)Author
2016-05-17Implement DatabaseException for databasesnerzhul
2016-05-17DB::loadBlock copy removal & DB backend cleanupLoic Blot
* Remove the copy from db::loadBlock by using a pointer to the destination * cleanup db backend, the child backend doesn't have to set their functions as virtual
2016-01-08Fix redis error reportingest31
Previously, we assumed that reply->str was NULL terminated. However, this turned out to be not true, as users reported crashes in strlen connected to where reply->str was appended to an std::string. Use the method recomended by the docs, to read the length separately.
2015-12-29Database backends: fix bug, and small speedupest31
-> Redis backend: break from switch to fix bug -> Dummy and redis backends: reserve the count so that creating the list is faster
2015-10-14Use warningstream for log messages with WARNINGShadowNinja
Remove DTIME macro and its uses, too
2015-09-26Fix redis erroring on non found blocksest31
Thanks to @netinetwalker for spotting the error, proposing a fix, and testing it. Error due to @est31's merging changes to PR #3202 to add more error reporting for invalid reply types, commit: 524a7656e3e5cd671b05c13e2ad69cb84bad0423 "redis: throw error if block request failed" Now we branch out on the valid reply type "not found".
2015-09-26redis: throw error if block request failednetinetwalker
Fixes #3196. Before, we didn't throw an error, and the engine thought the block isn't occupied. But in fact it might be that redis is still loading, and the block does exist in the database. The result was a cheesy map.
2015-05-06Improve Redis error messagesShadowNinja
2015-03-06Clean up database API and save the local map on an intervalShadowNinja
2015-02-17Replace std::list by std::vector into ServerMap::listAllLoadableBlocks ↵Loic Blot
ServerMap::listAllLoadedBlocks and their database backends. This adds a speedup on database migration and /clearobjects command
2015-01-15Add ability to delete MapBlocks from mapkwolekr
Also add a Lua API and chatcommand for this
2014-09-21Fix build with redisShadowNinja
Broken by 6bc4cad0eddd7a7cf593ca1471599e2d75727379 because database-redis.h depended on settings.h to include filesys.h.
2014-07-12Move MapBlock (de)serializing code out of Database classsfan5
2014-07-07Don't unload blocks if save failedkwolekr
Improve error handling in saveBlock()
2014-05-23Fix memory leak in redis backend, fixes #1325sfan5
2014-04-16Add redis database backendSfan5