summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common/ldb.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/ldb/common/ldb.c')
-rw-r--r--source4/lib/ldb/common/ldb.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb.c b/source4/lib/ldb/common/ldb.c
index e268a8d0d7..63526dfe2e 100644
--- a/source4/lib/ldb/common/ldb.c
+++ b/source4/lib/ldb/common/ldb.c
@@ -76,7 +76,7 @@ int ldb_connect(struct ldb_context *ldb, const char *url, unsigned int flags, co
#endif
#if HAVE_SQLITE3
else if (strncmp(url, "sqlite:", 7) == 0) {
- ldb_ctx = lsqlite3_connect(url, flags, options);
+ ret = lsqlite3_connect(ldb, url, flags, options);
}
#endif
else {
@@ -168,6 +168,22 @@ int ldb_rename(struct ldb_context *ldb, const char *olddn, const char *newdn)
}
/*
+ create a named lock
+*/
+int ldb_lock(struct ldb_context *ldb, const char *lockname)
+{
+ return ldb->modules->ops->named_lock(ldb->modules, lockname);
+}
+
+/*
+ release a named lock
+*/
+int ldb_unlock(struct ldb_context *ldb, const char *lockname)
+{
+ return ldb->modules->ops->named_unlock(ldb->modules, lockname);
+}
+
+/*
return extended error information
*/
const char *ldb_errstring(struct ldb_context *ldb)