summaryrefslogtreecommitdiffstats
path: root/server/db/sysdb_req.c
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2009-02-27 17:04:11 -0500
committerSimo Sorce <ssorce@redhat.com>2009-02-28 18:55:49 -0500
commitf0cefca80767664b876d10126f7f79fc36dc1993 (patch)
tree1cc4792533b512da6f16cdce77f171de6aa804ae /server/db/sysdb_req.c
parent60398e684b6d4f8880fcda357c8077ccca481041 (diff)
downloadsssd-f0cefca80767664b876d10126f7f79fc36dc1993.tar.gz
sssd-f0cefca80767664b876d10126f7f79fc36dc1993.tar.xz
sssd-f0cefca80767664b876d10126f7f79fc36dc1993.zip
Convert sync calls in sysdb to async, transaction dependent, calls.
Diffstat (limited to 'server/db/sysdb_req.c')
-rw-r--r--server/db/sysdb_req.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/db/sysdb_req.c b/server/db/sysdb_req.c
index fcbd17b88..161431cc9 100644
--- a/server/db/sysdb_req.c
+++ b/server/db/sysdb_req.c
@@ -34,6 +34,17 @@ struct sysdb_req {
bool transaction_active;
};
+bool sysdb_req_check_running(struct sysdb_req *req)
+{
+ if (req->ctx->queue == req) return true;
+ return false;
+}
+
+struct sysdb_ctx *sysdb_req_get_ctx(struct sysdb_req *req)
+{
+ return req->ctx;
+}
+
static void sysdb_req_run(struct tevent_context *ev,
struct tevent_timer *te,
struct timeval tv, void *ptr)