Remove LACOUNT and LACCESSOR and migrate the records immediately.
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 29 Nov 2010 02:07:59 +0000 (13:07 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Mon, 6 Dec 2010 03:47:36 +0000 (14:47 +1100)
commit41ff8fd5aabda7d180d6c9458f43eb436ebcf947
tree8dabb207232edf0f949e21d51f3e679f8d2b9573
parentf5acdbc1fa120446f870789bcfb44e3d6e30b479
Remove LACOUNT and LACCESSOR and migrate the records immediately.

This concept didnt work out and it is really just as expensive as a full migration
anyway, without the benefit of caching the data for subsequence accesses.

Now, migrate the records immediately on first access.
This will be combined with a "cheap vacuum-lite" for special empty records to
prevent growth of databases.

Later extensions to mimic read-only behaviour of records will include proper shared read-only locking of database records, making the laccessor/lacount read-only access to the data obsolete anyway.

By removing this special case and handling of lacount laccessor makes the codapath where shared read-only locking will be be implemented simpler, and frees up space in the ctdb_ltdb header for use by vacuuming flags as well as read-only locking flags.
client/ctdb_client.c
common/ctdb_ltdb.c
include/ctdb_client.h
include/ctdb_private.h
include/ctdb_protocol.h
server/ctdb_call.c
server/ctdb_tunables.c