summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2011-07-04 16:09:33 +0200
committerMichael Adam <obnox@samba.org>2011-07-04 20:02:09 +0200
commitcaf9c9996952e72e61f9c9f0efd27936f38eefda (patch)
tree62d194007a83948397e6d6c8249e76e587c748f2
parent2273650ca89c4042d073257383d0e5d28a8a555f (diff)
downloadsamba-caf9c9996952e72e61f9c9f0efd27936f38eefda.tar.gz
samba-caf9c9996952e72e61f9c9f0efd27936f38eefda.tar.bz2
samba-caf9c9996952e72e61f9c9f0efd27936f38eefda.zip
s3:registry: change regdb_store_regdb_version() to take db_context argument.
-rw-r--r--source3/registry/reg_backend_db.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 4fc2e39a26..5c7f48923f 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -408,16 +408,16 @@ static int regdb_normalize_keynames_fn(struct db_record *rec,
return 0;
}
-static WERROR regdb_store_regdb_version(uint32_t version)
+static WERROR regdb_store_regdb_version(struct db_context *db, uint32_t version)
{
NTSTATUS status;
const char *version_keyname = "INFO/version";
- if (!regdb) {
+ if (db == NULL) {
return WERR_CAN_NOT_COMPLETE;
}
- status = dbwrap_trans_store_int32(regdb, version_keyname, version);
+ status = dbwrap_trans_store_int32(db, version_keyname, version);
if (!NT_STATUS_IS_OK(status)) {
DEBUG(1, ("regdb_store_regdb_version: error storing %s = %d: %s\n",
version_keyname, version, nt_errstr(status)));
@@ -448,7 +448,7 @@ static WERROR regdb_upgrade_v1_to_v2(void)
return WERR_REG_IO_FAILURE;
}
- werr = regdb_store_regdb_version(REGVER_V2);
+ werr = regdb_store_regdb_version(regdb, REGVER_V2);
return werr;
}
@@ -496,7 +496,7 @@ WERROR regdb_init(void)
"(got %d), initializing to version %d\n",
vers_id, expected_version));
- werr = regdb_store_regdb_version(expected_version);
+ werr = regdb_store_regdb_version(regdb, expected_version);
return werr;
}