mirror of
https://github.com/samba-team/samba.git
synced 2025-01-06 13:18:07 +03:00
f8748b8bfc
This fixes upgrading from 4.7 and earlier releases, and makes the DB
reindexing more transparent. It should also make it easier to handle
future normalisation rule changes, e.g. if we change the pack-format
of integer indexes in a future release.
Without this change, the should have still handled reindexing the
database. We don't know why exactly this wasn't happening correctly,
but opening a transaction early in the samba process startup should
now guarantee that the DB is correctly reindexed by the time the main
samba code runs.
An alternative fix would have been to open a transaction in the the
DSDB module stack every time we connect to the database. However, this
would add an extra write lock every time we open the DB, whereas
starting samba happens much more infrequently.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13760
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Tim Beale <timbeale@catalyst.net.nz>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Mar 7 04:58:42 UTC 2019 on sn-devel-144
(cherry picked from commit
|
||
---|---|---|
.. | ||
process_model.c | ||
process_model.h | ||
process_prefork.c | ||
process_single.c | ||
process_standard.c | ||
server.c | ||
service_named_pipe.c | ||
service_stream.c | ||
service_stream.h | ||
service_task.c | ||
service_task.h | ||
service.c | ||
service.h | ||
wscript_build |