diff options
author | Michael Adam <obnox@samba.org> | 2010-06-25 18:13:06 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-06-25 18:13:06 +0200 |
commit | 6d973607c3bfec6d82347727b1bf800348c74202 (patch) | |
tree | f37c938f3480e209de22b8acc94c3168c71ecb1c /source3/registry | |
parent | 2f44dcc96b5a02379995c8ba6270ff8d89e56953 (diff) | |
download | samba-6d973607c3bfec6d82347727b1bf800348c74202.tar.gz samba-6d973607c3bfec6d82347727b1bf800348c74202.tar.bz2 samba-6d973607c3bfec6d82347727b1bf800348c74202.zip |
s3:registry: use regdb_store_regdb_version() in regdb_init().
Diffstat (limited to 'source3/registry')
-rw-r--r-- | source3/registry/reg_backend_db.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c index 47f9590576..a31f7fbfb2 100644 --- a/source3/registry/reg_backend_db.c +++ b/source3/registry/reg_backend_db.c @@ -521,23 +521,12 @@ WERROR regdb_init(void) vers_id = dbwrap_fetch_int32(regdb, vstring); if (vers_id == -1) { - NTSTATUS status; - DEBUG(10, ("regdb_init: registry version uninitialized " "(got %d), initializing to version %d\n", vers_id, expected_version)); - status = dbwrap_trans_store_int32(regdb, vstring, REGVER_V2); - if (!NT_STATUS_IS_OK(status)) { - DEBUG(1, ("regdb_init: error storing %s = %d: %s\n", - vstring, expected_version, nt_errstr(status))); - return ntstatus_to_werror(status); - } else { - DEBUG(10, ("regdb_init: stored %s = %d\n", - vstring, expected_version)); - } - - return WERR_OK; + werr = regdb_store_regdb_version(expected_version); + return werr; } if (vers_id > expected_version || vers_id == 0) { |