mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
e7424897a1
Old war story completely from memory, I could not find the commit that introduced TDB_SEQNUM so far...: Back in the days when ctdb was initially developed, TDB_SEQNUM's only user was the notify.tdb that held one huge record for all notify records. With that use case in mind it made perfect sense to keep the SEQNUM stable locally, sacrificing precision. By now notify.tdb is long gone, an the only user of TDB_SEQNUM right now is brlock.tdb, which contains special case code for the imprecise ctdb implementation of TDB_SEQNUM. With this commit, that special code can go: The TDB_SEQNUM will also increment when just the DMASTER header field changes, indicating to smbd that someone else might have changed the record. This will of course increase the SEQNUM frequency, but it should not increase the load on ctdb: If you look at the brlock.c workaround, it just does not do the caching that is possible with precise TDB_SEQNUMs working. How did I get here? I want to move brl_num_read_oplocks() from brlock.tdb into locking.tdb, and for that I need precise TDB_SEQNUMs for locking.tdb. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri May 24 00:42:17 UTC 2019 on sn-devel-184 |
||
---|---|---|
.. | ||
cmdline.c | ||
cmdline.h | ||
comm.c | ||
comm.h | ||
common.h | ||
conf_tool.c | ||
conf_tool.h | ||
conf.c | ||
conf.h | ||
ctdb_io.c | ||
ctdb_ltdb.c | ||
ctdb_util.c | ||
db_hash.c | ||
db_hash.h | ||
event_script.c | ||
event_script.h | ||
hash_count.c | ||
hash_count.h | ||
line.c | ||
line.h | ||
logging_conf.c | ||
logging_conf.h | ||
logging.c | ||
logging.h | ||
path_tool.c | ||
path_tool.h | ||
path.c | ||
path.h | ||
pidfile.c | ||
pidfile.h | ||
pkt_read.c | ||
pkt_read.h | ||
pkt_write.c | ||
pkt_write.h | ||
rb_tree.c | ||
rb_tree.h | ||
reqid.c | ||
reqid.h | ||
run_event.c | ||
run_event.h | ||
run_proc.c | ||
run_proc.h | ||
sock_client.c | ||
sock_client.h | ||
sock_daemon.c | ||
sock_daemon.h | ||
sock_io.c | ||
sock_io.h | ||
srvid.c | ||
srvid.h | ||
system_socket.c | ||
system_socket.h | ||
system.c | ||
system.h | ||
tunable.c | ||
tunable.h |