mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
s3:registry: update the seqnum in the subkey cache at the end of regval_store_keys
The purpose is to prevent next reads from going to disk. Note that this will currently only be effective with local tdbs, not with ctdb: For tdb, store and delete bump the seqnum while transaction commit does not. For ctdb, transaction commit bumps the seqnum, while store and delete don't... This needs fixing (in ctdb). Signed-off-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
4367071f62
commit
ab83005b30
@ -1260,7 +1260,11 @@ static NTSTATUS regdb_store_keys_action(struct db_context *db,
|
|||||||
W_ERROR_NOT_OK_GOTO_DONE(werr);
|
W_ERROR_NOT_OK_GOTO_DONE(werr);
|
||||||
}
|
}
|
||||||
|
|
||||||
werr = WERR_OK;
|
/*
|
||||||
|
* Update the seqnum in the container to possibly
|
||||||
|
* prevent next read from going to disk
|
||||||
|
*/
|
||||||
|
werr = regsubkey_ctr_set_seqnum(store_ctx->ctr, dbwrap_get_seqnum(db));
|
||||||
|
|
||||||
done:
|
done:
|
||||||
talloc_free(mem_ctx);
|
talloc_free(mem_ctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user