mirror of
https://github.com/samba-team/samba.git
synced 2025-12-18 08:23:51 +03:00
ridalloc: Don't skip the first RID of a pool
Previously, if either of the rIDPreviousAllocation and rIDNextRID attributes were not present in a RID Set, the first RID in rIDAllocationPool was skipped over when determining their values. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
This commit is contained in:
committed by
Andrew Bartlett
parent
59d293b606
commit
2a3b82ae23
@@ -136,10 +136,9 @@ class DsdbTests(TestCase):
|
||||
"rIDAllocationPool"))
|
||||
self.samdb.modify(msg)
|
||||
|
||||
# Ensure that next_free_rid() returns the start of the next pool
|
||||
# plus one.
|
||||
# Ensure that next_free_rid() returns the start of the next pool.
|
||||
next_free_rid3 = self.samdb.next_free_rid()
|
||||
self.assertEqual(next_lo + 1, next_free_rid3)
|
||||
self.assertEqual(next_lo, next_free_rid3)
|
||||
|
||||
# Check the result of allocate_rid() matches.
|
||||
rid = self.samdb.allocate_rid()
|
||||
|
||||
Reference in New Issue
Block a user