diff options
author | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2010-11-29 13:07:59 +1100 |
---|---|---|
committer | Ronnie Sahlberg <ronniesahlberg@gmail.com> | 2011-02-18 10:08:32 +1100 |
commit | b57bd0f896423e577937a3e5f3b3c8c99f011053 (patch) | |
tree | d34cd1c67c643d26d0aea393a0835c28b00dc127 /ctdb/common/ctdb_ltdb.c | |
parent | 0aa2282c9c26c87e55db6f9df435d5d932f2cbd1 (diff) | |
download | samba-b57bd0f896423e577937a3e5f3b3c8c99f011053.tar.gz |
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.
(This used to be ctdb commit 155dd1f4885fe142c6f8bd09430f65daf8a17e51)
Diffstat (limited to 'ctdb/common/ctdb_ltdb.c')
-rw-r--r-- | ctdb/common/ctdb_ltdb.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/ctdb/common/ctdb_ltdb.c b/ctdb/common/ctdb_ltdb.c index 35723714d0c..200cca41dc1 100644 --- a/ctdb/common/ctdb_ltdb.c +++ b/ctdb/common/ctdb_ltdb.c @@ -65,7 +65,6 @@ static void ltdb_initial_header(struct ctdb_db_context *ctdb_db, ZERO_STRUCTP(header); /* initial dmaster is the lmaster */ header->dmaster = ctdb_lmaster(ctdb_db->ctdb, &key); - header->laccessor = header->dmaster; } |