diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-04-01 12:48:08 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-04-01 14:04:20 +0200 |
commit | b55942a7637afdb60cace907fa2a9df4a58e84c4 (patch) | |
tree | 88ade2985ad3693d3077ce6129deeaf71d319786 /source3 | |
parent | 2b21b02c6af64ecff931dd1c01caf078804d95c4 (diff) | |
download | samba-b55942a7637afdb60cace907fa2a9df4a58e84c4.tar.gz samba-b55942a7637afdb60cace907fa2a9df4a58e84c4.tar.bz2 samba-b55942a7637afdb60cace907fa2a9df4a58e84c4.zip |
regdb: get the seqnum before the record, to not miss something
metze
(This used to be commit c214107bd9bbf9b17936757437ec211d7de3048e)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/registry/reg_backend_db.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 60800e790d..095393c307 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -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; |