dsdb/partition: Remove teardown of data->metadata on partition_metadata_set_sequence_...
authorAndrew Bartlett <abartlet@samba.org>
Thu, 16 May 2019 04:15:39 +0000 (16:15 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 May 2019 04:01:10 +0000 (04:01 +0000)
This changes variables that are not the responsiblity of this function, the unlock
implied by partition_del_trans() needs to be done carefully in the right spot.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source4/dsdb/samdb/ldb_modules/partition_metadata.c

index c0800f5e506b6631f5a84fcc40f38c0b91a639f2..02e56e175a36f323bfd0ab771d07960d86d84ee3 100644 (file)
@@ -406,8 +406,6 @@ int partition_metadata_sequence_number_increment(struct ldb_module *module, uint
                 */
                ret = partition_metadata_set_sequence_number(module);
                if (ret != LDB_SUCCESS) {
-                       TALLOC_FREE(data->metadata);
-                       partition_del_trans(module);
                        return ret;
                }