summaryrefslogtreecommitdiff
path: root/lib/ldb/tools/ldbedit.c
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2012-03-30 01:24:07 -0700
committerMatthieu Patou <mat@samba.org>2012-03-30 11:59:09 +0200
commit40a4aea8918c2637703af03383f440d068820e48 (patch)
tree2484c3b27227f190b69e1ae94b66ede966bf3631 /lib/ldb/tools/ldbedit.c
parent5df1c115391f2d673d3dd2dfb89146ce77639d41 (diff)
downloadsamba-40a4aea8918c2637703af03383f440d068820e48.tar.gz
samba-40a4aea8918c2637703af03383f440d068820e48.tar.bz2
samba-40a4aea8918c2637703af03383f440d068820e48.zip
ldb: Permit desactivation of autocomit for every ldb_xxx_ctrl function
Autobuild-User: Matthieu Patou <mat@samba.org> Autobuild-Date: Fri Mar 30 11:59:09 CEST 2012 on sn-devel-104
Diffstat (limited to 'lib/ldb/tools/ldbedit.c')
-rw-r--r--lib/ldb/tools/ldbedit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ldb/tools/ldbedit.c b/lib/ldb/tools/ldbedit.c
index cf4ab3f8ec..0a88efa766 100644
--- a/lib/ldb/tools/ldbedit.c
+++ b/lib/ldb/tools/ldbedit.c
@@ -81,7 +81,7 @@ static int modify_record(struct ldb_context *ldb,
ldif_write_msg(ldb, stdout, LDB_CHANGETYPE_MODIFY, mod);
}
- if (ldb_modify_ctrl(ldb, mod, req_ctrls) != LDB_SUCCESS) {
+ if (ldb_modify_ctrl(ldb, mod, req_ctrls, true) != LDB_SUCCESS) {
fprintf(stderr, "failed to modify %s - %s\n",
ldb_dn_get_linearized(msg1->dn), ldb_errstring(ldb));
ret = -1;
@@ -139,7 +139,7 @@ static int merge_edits(struct ldb_context *ldb,
if (options->verbose > 0) {
ldif_write_msg(ldb, stdout, LDB_CHANGETYPE_ADD, msgs2[i]);
}
- if (ldb_add_ctrl(ldb, msgs2[i], req_ctrls) != LDB_SUCCESS) {
+ if (ldb_add_ctrl(ldb, msgs2[i], req_ctrls, true) != LDB_SUCCESS) {
fprintf(stderr, "failed to add %s - %s\n",
ldb_dn_get_linearized(msgs2[i]->dn),
ldb_errstring(ldb));
@@ -165,7 +165,7 @@ static int merge_edits(struct ldb_context *ldb,
if (options->verbose > 0) {
ldif_write_msg(ldb, stdout, LDB_CHANGETYPE_DELETE, msgs1[i]);
}
- if (ldb_delete_ctrl(ldb, msgs1[i]->dn, req_ctrls) != LDB_SUCCESS) {
+ if (ldb_delete_ctrl(ldb, msgs1[i]->dn, req_ctrls, true) != LDB_SUCCESS) {
fprintf(stderr, "failed to delete %s - %s\n",
ldb_dn_get_linearized(msgs1[i]->dn),
ldb_errstring(ldb));