1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-28 12:23:49 +03:00

r3897: add a locking infrastructure

This commit is contained in:
Simo Sorce
2004-11-21 15:51:54 +00:00
committed by Gerald (Jerry) Carter
parent 9fca748fe3
commit a99c0adb09
6 changed files with 111 additions and 18 deletions

View File

@@ -250,6 +250,22 @@ int ldb_next_rename_record(struct ldb_module *module, const char *olddn, const c
return module->next->ops->rename_record(module->next, olddn, newdn);
}
int ldb_next_named_lock(struct ldb_module *module, const char *lockname)
{
if (!module->next) {
return -1;
}
return module->next->ops->named_lock(module->next, lockname);
}
int ldb_next_named_unlock(struct ldb_module *module, const char *lockname)
{
if (!module->next) {
return -1;
}
return module->next->ops->named_unlock(module->next, lockname);
}
const char *ldb_next_errstring(struct ldb_module *module)
{
if (!module->next) {