mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
regdb: get the seqnum before the record, to not miss something
metze
(This used to be commit c214107bd9
)
This commit is contained in:
parent
2b21b02c6a
commit
b55942a763
@ -723,14 +723,14 @@ int regdb_fetch_keys(const char *key, REGSUBKEY_CTR *ctr)
|
||||
}
|
||||
strupper_m(path);
|
||||
|
||||
ctr->seqnum = regdb_get_seqnum();
|
||||
|
||||
dbret = regdb->fetch(regdb, frame, string_term_tdb_data(path), &value);
|
||||
if (dbret != 0) {
|
||||
ret = 0;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
ctr->seqnum = regdb_get_seqnum();
|
||||
|
||||
buf = value.dptr;
|
||||
buflen = value.dsize;
|
||||
|
||||
@ -857,13 +857,13 @@ int regdb_fetch_values( const char* key, REGVAL_CTR *values )
|
||||
goto done;
|
||||
}
|
||||
|
||||
values->seqnum = regdb_get_seqnum();
|
||||
|
||||
dbret = regdb->fetch(regdb, ctx, string_term_tdb_data(keystr), &value);
|
||||
if (dbret != 0) {
|
||||
goto done;
|
||||
}
|
||||
|
||||
values->seqnum = regdb_get_seqnum();
|
||||
|
||||
if (!value.dptr) {
|
||||
/* all keys have zero values by default */
|
||||
goto done;
|
||||
|
Loading…
Reference in New Issue
Block a user