Fix the mess with ldb includes.
[metze/samba/wip.git] / source4 / lib / ldb / tools / ldbmodify.c
index d73937cea42f6eeb65003c698d2c0eabded1e703..c3f55c6096d2f82ddc4bf46d74e4628f7b75f305 100644 (file)
@@ -31,7 +31,7 @@
  *  Author: Andrew Tridgell
  */
 
-#include "ldb_includes.h"
+#include "ldb.h"
 #include "tools/cmdline.h"
 
 static int failures;
@@ -93,11 +93,6 @@ int main(int argc, const char **argv)
 
        options = ldb_cmdline_process(ldb, argc, argv, usage);
 
-       if (ldb_transaction_start(ldb) != 0) {
-               printf("Failed to start transaction: %s\n", ldb_errstring(ldb));
-               exit(1);
-       }
-
        if (options->argc == 0) {
                ret = process_file(ldb, stdin, &count);
        } else {
@@ -113,11 +108,6 @@ int main(int argc, const char **argv)
                }
        }
 
-       if (count != 0 && ldb_transaction_commit(ldb) != 0) {
-               printf("Failed to commit transaction: %s\n", ldb_errstring(ldb));
-               exit(1);
-       }
-
        talloc_free(ldb);
 
        printf("Modified %d records with %d failures\n", count, failures);