summaryrefslogtreecommitdiffstats
path: root/server/tools/sss_sync_ops.h
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-09-29 10:14:36 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-10-01 08:42:36 -0400
commitf24c2dd7cc8414ea0a5c8c4ae7766ca71554480f (patch)
treecceff211fe8fc0c78c59b959af5367c0c4ce49f3 /server/tools/sss_sync_ops.h
parentbc58f5892d3a8f6b28e2148c5a0cca34b63ef354 (diff)
downloadsssd-f24c2dd7cc8414ea0a5c8c4ae7766ca71554480f.tar.gz
sssd-f24c2dd7cc8414ea0a5c8c4ae7766ca71554480f.tar.xz
sssd-f24c2dd7cc8414ea0a5c8c4ae7766ca71554480f.zip
Fix tools sync operations and mem hierarchy
Tools were using nested loops that are illegal. (and enforced in latest tevent with a nice abort()) Fix them by creating appropriate synchronous transaction calls. Also fix tools_ctx mem hierarchy setup.
Diffstat (limited to 'server/tools/sss_sync_ops.h')
-rw-r--r--server/tools/sss_sync_ops.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/tools/sss_sync_ops.h b/server/tools/sss_sync_ops.h
index 525f2ff1f..c99b9b911 100644
--- a/server/tools/sss_sync_ops.h
+++ b/server/tools/sss_sync_ops.h
@@ -21,6 +21,7 @@
#ifndef __SSS_OPS_H__
#define __SSS_OPS_H__
+#include "tools/tools_util.h"
#include <stdbool.h>
#define DO_LOCK 1
@@ -82,5 +83,8 @@ int groupmod(TALLOC_CTX *mem_ctx,
struct sysdb_handle *handle,
struct ops_ctx *data);
+void start_transaction(struct tools_ctx *tctx);
+void end_transaction(struct tools_ctx *tctx);
+
#endif /* __SSS_OPS_H__ */