This release stabilized the remote functionality. New samples for client/server scenarios are provided. The remote server can now write access logfiles. A unix daemon and a win32 Service were added. The dependency to Google Protocol Buffers for C was removed; instead, Google Protocol Buffers (C++) are now used. Compilation on ArchLinux (gcc 4.5.1) was fixed. Several functions are now deprecated. The source repository was moved to github. Sources, CHANGELOG and precompiled win32 libraries are available for download here!
I just imported the hamsterdb sources to a github repository.
There were a few reasons for this, mainly
I was fed up with repairing broken svn repositories, i had to use “svnadmin recover” every second week and afterwards i had to fix broken file permissions for the bdb logfiles. One repository was broken beyond repair.
I hope to make collaborating easier by moving to an open platform
github offers a lot of features (i.e. a Wiki) that i could utilise, and i am happy if someone else does the server maintenance for me
If you want to browse the sources, see the most recent changes or branch off your own hamsterdb then please go to http://github.com/cruppstahl/hamsterdb. Everyone’s invited
This release implements remote functionality over http. The protocol is implemented with Google’s Protocol Buffers, the client uses libcurl for network handling and the server is based on mongoose, an embedded micro http server.
The server interface is very simple, and the server can easily be embedded into an application.
There are no known bugs, but currently the remote functionality is only supported on Unix/Linux. The next version 1.1.6 will also support the new features on Win32; several other improvements are also pending for the next release: a unix daemon, a win32 service and some other minor issues.
This is mainly a bugfix release, and in case you’re not haunted by these bugs, there’s no need for you to update.
First one: hamsterdb only supports one Transaction at a time, but nevertheless it was allowed to create temporary, unnamed Transactions while another one was already running. -> fixed
Second one: on win32, if you have a cache size of more than a gigabyte and fill up the cache then the non-paged memory pool can be exhausted. -> fixed
What else? some macros in the header file were renamed for consistency reasons, but the old macros still exist and source compatibility was not broken.
Four weeks after 1.1.2, here’s the next! The headline is “partial read/write” – records can now be read or written partially. This can be a benefit if your records are REALLY big. But it will also enable you to “stream” records.
This feature caused changes in the layout of ham_record_t. Therefore the ABI of hamsterdb is no longer compatible (but the API and the database file format are compatible). To avoid crashes, i incremented the libtool version and embedded the hamsterdb version in the win32 dll/lib filenames.
Also, i fixed a performance related bug in the caching – 1.1.3 should therefore be much faster than 1.1.2.
I added a new function “ham_get_env” to retrieve the Environment handle of a Database. (This handle always exists, even if it was not created explicitely).
Duplicate keys can now be sorted. Sorting has to be enabled with HAM_SORT_DUPLICATES. The default collation can be overwritten with ham_set_duplicate_compare_func.
Bugfixes
If multiple Databases in an Environment are open, an open Transaction was not immediately closed when the first Database was closed (with ham_close)
If multiple Databases in an Environment are open, and just one Database was closed, then the pages of this Database were not flushed correctly
Fixed crash on Linux 64bit/gcc 4.4 with compiler optimization
Other Changes
The documentation is now reduced to public interfaces; internal documentation is only built when requested