diff options
author | Simo Sorce <ssorce@redhat.com> | 2009-09-29 10:14:36 -0400 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2009-10-01 08:42:36 -0400 |
commit | f24c2dd7cc8414ea0a5c8c4ae7766ca71554480f (patch) | |
tree | cceff211fe8fc0c78c59b959af5367c0c4ce49f3 /server/tools/sss_sync_ops.h | |
parent | bc58f5892d3a8f6b28e2148c5a0cca34b63ef354 (diff) | |
download | sssd-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.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/tools/sss_sync_ops.h b/server/tools/sss_sync_ops.h index 525f2ff..c99b9b9 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__ */ |