diff options
author | Simo Sorce <idra@samba.org> | 2004-11-21 15:51:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:02 -0500 |
commit | a4de8cd6a5a882a8d49fdb4b0e625ffdc6b401bb (patch) | |
tree | 734f3b138f68ca776eedd437386ef4e7320a15b8 /source4/lib/ldb/modules/timestamps.c | |
parent | 7e3503e2770a0473cb4f7d8d45b27cbee766d9fa (diff) | |
download | samba-a4de8cd6a5a882a8d49fdb4b0e625ffdc6b401bb.tar.gz samba-a4de8cd6a5a882a8d49fdb4b0e625ffdc6b401bb.tar.bz2 samba-a4de8cd6a5a882a8d49fdb4b0e625ffdc6b401bb.zip |
r3897: add a locking infrastructure
(This used to be commit a99c0adb09e2bc77b876d23cb2d0711ccffd83ca)
Diffstat (limited to 'source4/lib/ldb/modules/timestamps.c')
-rw-r--r-- | source4/lib/ldb/modules/timestamps.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/source4/lib/ldb/modules/timestamps.c b/source4/lib/ldb/modules/timestamps.c index 521c59d241..fde87ef4a6 100644 --- a/source4/lib/ldb/modules/timestamps.c +++ b/source4/lib/ldb/modules/timestamps.c @@ -230,6 +230,18 @@ static int timestamps_rename_record(struct ldb_module *module, const char *olddn return ldb_next_rename_record(module, olddn, newdn); } +static int timestamps_lock(struct ldb_module *module, const char *lockname) +{ + ldb_debug(module->ldb, LDB_DEBUG_TRACE, "timestamps_lock\n"); + return ldb_next_named_lock(module, lockname); +} + +static int timestamps_unlock(struct ldb_module *module, const char *lockname) +{ + ldb_debug(module->ldb, LDB_DEBUG_TRACE, "timestamps_unlock\n"); + return ldb_next_named_unlock(module, lockname); +} + /* return extended error information */ static const char *timestamps_errstring(struct ldb_module *module) { @@ -252,6 +264,8 @@ static const struct ldb_module_ops timestamps_ops = { timestamps_modify_record, timestamps_delete_record, timestamps_rename_record, + timestamps_lock, + timestamps_unlock, timestamps_errstring, timestamps_cache_free }; |