The Samba-Bugzilla – Attachment 9549 Details for
Bug 10347
Failure in partition_start_trans results in infinite loops
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
partition_start_trans.diff (text/plain), 679 bytes, created by
herwin
on 2013-12-25 16:36:00 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
herwin
Created:
2013-12-25 16:36:00 UTC
Size:
679 bytes
patch
obsolete
>diff --git a/source4/dsdb/samdb/ldb_modules/partition.c b/source4/dsdb/samdb/ldb_modules/partition.c >index 39e85e4..150ac40 100644 >--- a/source4/dsdb/samdb/ldb_modules/partition.c >+++ b/source4/dsdb/samdb/ldb_modules/partition.c >@@ -839,8 +839,8 @@ static int partition_start_trans(struct ldb_module *module) > ret = ldb_next_start_trans(data->partitions[i]->module); > if (ret != LDB_SUCCESS) { > /* Back it out, if it fails on one */ >- for (i--; i >= 0; i--) { >- ldb_next_del_trans(data->partitions[i]->module); >+ while (i > 0) { >+ ldb_next_del_trans(data->partitions[--i]->module); > } > ldb_next_del_trans(module); > partition_metadata_del_trans(module);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 10347
: 9549