This makes our intent clear, and avoids accidental attempts to use these
objects after they have been ‘disconnect()’ed.
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
# not use this any more as the data has all been copied under
# the transaction
samdb.disconnect()
- samdb = None
+ del samdb
# Open the new backed up samdb, flag it as backed up, and write
# the next SID so the restore tool can add objects. We use
# Close the backed up samdb
samdb.disconnect()
- samdb = None
+ del samdb
# Now handle all the LDB and TDB files that are not linked to
# anything else. Use transactions for LDBs.