From: Adrian S. J. <AS...@pa...> - 2002-01-14 14:30:37
|
> From: Peter Crowther [mailto:pet...@ne...] > > From: Adrian St. John [mailto:AS...@pa...] > > Taking a step back, what problem are we trying to solve? >=20 > I have no idea. I presume it's the problem that the game=20 > sometimes crashes > without a database dump. This is rare, and getting rarer. I=20 > can see no > other reason for using such a database. I've found the reason for that happening; It occurs if you overwrite the running executable. Solaris nicely trashes the entire game because the 'mv' seems to truncate the file, rather than unlink & recreate. > > If we're looking for a secure way of storing the data, then > > this isn't it. It is in-process, and therefore prone to the > > same problems we have already (if we crash unexpectedly the > > data could be in a bad state). >=20 > Does it transaction-log? Not that I can tell. All it gives you is a way of storing arbitrary objects to disk, and it looks like it does it by having a custom memory allocator that writes into a mmap'd file. Adrian. |