diff options
-rw-r--r-- | source4/lib/ldb/ldb_tdb/ldb_cache.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/lib/ldb/ldb_tdb/ldb_cache.c b/source4/lib/ldb/ldb_tdb/ldb_cache.c index 55eeca56a4..571e952e76 100644 --- a/source4/lib/ldb/ldb_tdb/ldb_cache.c +++ b/source4/lib/ldb/ldb_tdb/ldb_cache.c @@ -481,6 +481,10 @@ int ltdb_increase_sequence_number(struct ldb_module *module) ltdb->sequence_number += 1; } + /* updating the tdb_seqnum here avoids us reloading the cache + records due to our own modification */ + ltdb->tdb_seqnum = tdb_get_seqnum(ltdb->tdb); + return ret; } |