summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-04 17:49:36 +0200
committerMichael Adam <obnox@samba.org>2013-10-02 00:06:23 +0200
commit266fddfe6a12d729c37b2cd28ee8095fa59b57a2 (patch)
tree7363a1ed9d0d1bd177200a96890e393f3d1812bc
parent4350bfba4624710e66f0d9775d146086054a97cc (diff)
downloadsamba-266fddfe6a12d729c37b2cd28ee8095fa59b57a2.tar.gz
samba-266fddfe6a12d729c37b2cd28ee8095fa59b57a2.tar.bz2
samba-266fddfe6a12d729c37b2cd28ee8095fa59b57a2.zip
idmap_autorid: for clarity, add a wrapper idmap_autorid_acquire_range() to idmap_autorid_addrange()
This one calls into the HWM bumping acquire code path. Pair-Programmed-With: Atul Kulkarni <atul.kulkarni@in.ibm.com> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Atul Kulkarni <atul.kulkarni@in.ibm.com> Reviewed-by: Volker Lendecke <vl@samba.org>
-rw-r--r--source3/winbindd/idmap_autorid_tdb.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/winbindd/idmap_autorid_tdb.c b/source3/winbindd/idmap_autorid_tdb.c
index 4220a9c787..a27f79a707 100644
--- a/source3/winbindd/idmap_autorid_tdb.c
+++ b/source3/winbindd/idmap_autorid_tdb.c
@@ -249,6 +249,12 @@ NTSTATUS idmap_autorid_setrange(struct db_context *db,
return status;
}
+static NTSTATUS idmap_autorid_acquire_range(struct db_context *db,
+ struct autorid_range_config *range)
+{
+ return idmap_autorid_addrange(db, range, true);
+}
+
static NTSTATUS idmap_autorid_getrange_int(struct db_context *db,
struct autorid_range_config *range)
{
@@ -328,7 +334,7 @@ NTSTATUS idmap_autorid_get_domainrange(struct db_context *db,
return NT_STATUS_NOT_FOUND;
}
- ret = idmap_autorid_addrange(db, range, true);
+ ret = idmap_autorid_acquire_range(db, range);
}
DEBUG(10, ("Using range #%d for domain %s "