smickles/DynamicMarket — Issue #52: OptimisticLockException
Author: smickles
Created: 2012-01-28 21:09:56+00:00
State: open

http://dev.bukkit.org/server-mods/dynamicmarket/tickets/29-optimistic-lock-exception/

This may be fixed by replacing all instances of getDatabase().save(x) with an object which performes the operation inside of a while loop with a try/catch surounding the .save(). a la http://forums.bukkit.org/threads/saving-database-entities-in-ondisable.54268/#post-909750 or with an object which uses a modification of this https://github.com/niftymonkey/NiftyWarp/commit/630b73546987f470c07e9a8ef515825ce4ff6cb0#L5R88