Commit 042c9f2a authored by Mathieu Parent's avatar Mathieu Parent

New upstream version 1.4.3

parent f8019a9d
......@@ -35,7 +35,6 @@ ldb_dn_add_base: bool (struct ldb_dn *, struct ldb_dn *)
ldb_dn_add_base_fmt: bool (struct ldb_dn *, const char *, ...)
ldb_dn_add_child: bool (struct ldb_dn *, struct ldb_dn *)
ldb_dn_add_child_fmt: bool (struct ldb_dn *, const char *, ...)
ldb_dn_add_child_val: bool (struct ldb_dn *, const char *, struct ldb_val)
ldb_dn_alloc_casefold: char *(TALLOC_CTX *, struct ldb_dn *)
ldb_dn_alloc_linearized: char *(TALLOC_CTX *, struct ldb_dn *)
ldb_dn_canonical_ex_string: char *(TALLOC_CTX *, struct ldb_dn *)
......
......@@ -674,23 +674,42 @@ def SAMBA_CONFIG_H(conf, path=None):
return
# we need to build real code that can't be optimized away to test
if conf.check(fragment='''
#include <stdio.h>
int main(void)
{
char t[100000];
while (fgets(t, sizeof(t), stdin));
return 0;
}
''',
execute=0,
ccflags='-fstack-protector',
ldflags='-fstack-protector',
mandatory=False,
msg='Checking if toolchain accepts -fstack-protector'):
conf.ADD_CFLAGS('-fstack-protector')
conf.ADD_LDFLAGS('-fstack-protector')
stack_protect_list = ['-fstack-protector-strong', '-fstack-protector']
for stack_protect_flag in stack_protect_list:
flag_supported = conf.check(fragment='''
#include <stdio.h>
int main(void)
{
char t[100000];
while (fgets(t, sizeof(t), stdin));
return 0;
}
''',
execute=0,
ccflags=[ '-Werror', '-Wp,-D_FORTIFY_SOURCE=2', stack_protect_flag],
mandatory=False,
msg='Checking if compiler accepts %s' % (stack_protect_flag))
if flag_supported:
conf.ADD_CFLAGS('-Wp,-D_FORTIFY_SOURCE=2 %s' % (stack_protect_flag))
break
flag_supported = conf.check(fragment='''
#include <stdio.h>
int main(void)
{
char t[100000];
while (fgets(t, sizeof(t), stdin));
return 0;
}
''',
execute=0,
ccflags=[ '-Werror', '-fstack-clash-protection'],
mandatory=False,
msg='Checking if compiler accepts -fstack-clash-protection')
if flag_supported:
conf.ADD_CFLAGS('-fstack-clash-protection')
if Options.options.debug:
conf.ADD_CFLAGS('-g', testflags=True)
......
......@@ -467,6 +467,7 @@ def CHECK_MAKEFLAGS(bld):
if makeflags is None:
return
jobs_set = False
jobs = None
# we need to use shlex.split to cope with the escaping of spaces
# in makeflags
for opt in shlex.split(makeflags):
......@@ -489,17 +490,21 @@ def CHECK_MAKEFLAGS(bld):
setattr(Options.options, opt[0:loc], opt[loc+1:])
elif opt[0] != '-':
for v in opt:
if v == 'j':
if re.search(r'j[0-9]*$', v):
jobs_set = True
jobs = opt.strip('j')
elif v == 'k':
Options.options.keep = True
elif opt == '-j':
elif re.search(r'-j[0-9]*$', opt):
jobs_set = True
jobs = opt.strip('-j')
elif opt == '-k':
Options.options.keep = True
if not jobs_set:
# default to one job
Options.options.jobs = 1
elif jobs_set and jobs:
Options.options.jobs = int(jobs)
Build.BuildContext.CHECK_MAKEFLAGS = CHECK_MAKEFLAGS
......
......@@ -498,6 +498,9 @@ int ldb_transaction_commit(struct ldb_context *ldb)
ldb_debug(next_module->ldb, LDB_DEBUG_TRACE, "commit ldb transaction error: %s",
ldb_errstring(next_module->ldb));
}
/* cancel the transaction */
FIRST_OP(ldb, del_transaction);
next_module->ops->del_transaction(next_module);
}
return status;
}
......
......@@ -1605,41 +1605,6 @@ bool ldb_dn_add_child_fmt(struct ldb_dn *dn, const char *child_fmt, ...)
return ret;
}
/* modify the given dn by adding a single child element.
*
* return true if successful and false if not
* if false is returned the dn may be marked invalid
*/
bool ldb_dn_add_child_val(struct ldb_dn *dn,
const char *rdn,
struct ldb_val value)
{
bool ret;
int ldb_ret;
struct ldb_dn *child = NULL;
if ( !dn || dn->invalid) {
return false;
}
child = ldb_dn_new(dn, dn->ldb, "X=Y");
ret = ldb_dn_add_child(dn, child);
if (ret == false) {
return false;
}
ldb_ret = ldb_dn_set_component(dn,
0,
rdn,
value);
if (ldb_ret != LDB_SUCCESS) {
return false;
}
return true;
}
bool ldb_dn_remove_base_components(struct ldb_dn *dn, unsigned int num)
{
unsigned int i;
......
......@@ -1882,9 +1882,6 @@ bool ldb_dn_add_child(struct ldb_dn *dn, struct ldb_dn *child);
bool ldb_dn_add_child_fmt(struct ldb_dn *dn, const char *child_fmt, ...) PRINTF_ATTRIBUTE(2,3);
bool ldb_dn_remove_base_components(struct ldb_dn *dn, unsigned int num);
bool ldb_dn_remove_child_components(struct ldb_dn *dn, unsigned int num);
bool ldb_dn_add_child_val(struct ldb_dn *dn,
const char *rdn,
struct ldb_val value);
struct ldb_dn *ldb_dn_copy(TALLOC_CTX *mem_ctx, struct ldb_dn *dn);
struct ldb_dn *ldb_dn_get_parent(TALLOC_CTX *mem_ctx, struct ldb_dn *dn);
......
This diff is collapsed.
#include "replace.h"
#include "system/filesys.h"
#include "system/time.h"
#include "tdb.h"
#include "ldb_module.h"
struct ldb_kv_private;
typedef int (*ldb_kv_traverse_fn)(struct ldb_kv_private *ldb_kv,
struct ldb_val key,
struct ldb_val data,
void *ctx);
struct kv_db_ops {
int (*store)(struct ldb_kv_private *ldb_kv,
struct ldb_val key,
struct ldb_val data,
int flags);
int (*delete)(struct ldb_kv_private *ldb_kv, struct ldb_val key);
int (*iterate)(struct ldb_kv_private *ldb_kv,
ldb_kv_traverse_fn fn,
void *ctx);
int (*update_in_iterate)(struct ldb_kv_private *ldb_kv,
struct ldb_val key,
struct ldb_val key2,
struct ldb_val data,
void *ctx);
int (*fetch_and_parse)(struct ldb_kv_private *ldb_kv,
struct ldb_val key,
int (*parser)(struct ldb_val key,
struct ldb_val data,
void *private_data),
void *ctx);
int (*lock_read)(struct ldb_module *);
int (*unlock_read)(struct ldb_module *);
int (*begin_write)(struct ldb_kv_private *);
int (*prepare_write)(struct ldb_kv_private *);
int (*abort_write)(struct ldb_kv_private *);
int (*finish_write)(struct ldb_kv_private *);
int (*error)(struct ldb_kv_private *ldb_kv);
const char *(*errorstr)(struct ldb_kv_private *ldb_kv);
const char *(*name)(struct ldb_kv_private *ldb_kv);
bool (*has_changed)(struct ldb_kv_private *ldb_kv);
bool (*transaction_active)(struct ldb_kv_private *ldb_kv);
};
/* this private structure is used by the key value backends in the
ldb_context */
struct ldb_kv_private {
const struct kv_db_ops *kv_ops;
struct ldb_module *module;
TDB_CONTEXT *tdb;
struct lmdb_private *lmdb_private;
unsigned int connect_flags;
unsigned long long sequence_number;
/* the low level tdb seqnum - used to avoid loading BASEINFO when
possible */
int tdb_seqnum;
struct ldb_kv_cache {
struct ldb_message *indexlist;
bool one_level_indexes;
bool attribute_indexes;
const char *GUID_index_attribute;
const char *GUID_index_dn_component;
} *cache;
bool check_base;
bool disallow_dn_filter;
struct ldb_kv_idxptr *idxptr;
bool prepared_commit;
int read_lock_count;
bool warn_unindexed;
bool warn_reindex;
bool read_only;
bool reindex_failed;
const struct ldb_schema_syntax *GUID_index_syntax;
/*
* Maximum index key length. If non zero keys longer than this length
* will be truncated for non unique indexes. Keys for unique indexes
* greater than this length will be rejected.
*/
unsigned max_key_length;
/*
* To allow testing that ensures the DB does not fall back
* to a full scan
*/
bool disable_full_db_scan;
/*
* The PID that opened this database so we don't work in a
* fork()ed child.
*/
pid_t pid;
};
struct ldb_kv_context {
struct ldb_module *module;
struct ldb_request *req;
bool request_terminated;
struct ldb_kv_req_spy *spy;
/* search stuff */
const struct ldb_parse_tree *tree;
struct ldb_dn *base;
enum ldb_scope scope;
const char * const *attrs;
struct tevent_timer *timeout_event;
/* error handling */
int error;
};
struct ldb_kv_reindex_context {
struct ldb_module *module;
int error;
uint32_t count;
};
/* special record types */
#define LDB_KV_INDEX "@INDEX"
#define LDB_KV_INDEXLIST "@INDEXLIST"
#define LDB_KV_IDX "@IDX"
#define LDB_KV_IDXVERSION "@IDXVERSION"
#define LDB_KV_IDXATTR "@IDXATTR"
#define LDB_KV_IDXONE "@IDXONE"
#define LDB_KV_IDXDN "@IDXDN"
#define LDB_KV_IDXGUID "@IDXGUID"
#define LDB_KV_IDX_DN_GUID "@IDX_DN_GUID"
/*
* This will be used to indicate when a new, yet to be developed
* sub-database version of the indicies are in use, to ensure we do
* not load future databases unintentionally.
*/
#define LDB_KV_IDX_LMDB_SUBDB "@IDX_LMDB_SUBDB"
#define LDB_KV_BASEINFO "@BASEINFO"
#define LDB_KV_OPTIONS "@OPTIONS"
#define LDB_KV_ATTRIBUTES "@ATTRIBUTES"
/* special attribute types */
#define LDB_KV_SEQUENCE_NUMBER "sequenceNumber"
#define LDB_KV_CHECK_BASE "checkBaseOnSearch"
#define LDB_KV_DISALLOW_DN_FILTER "disallowDNFilter"
#define LDB_KV_MOD_TIMESTAMP "whenChanged"
#define LDB_KV_OBJECTCLASS "objectClass"
/* DB keys */
#define LDB_KV_GUID_KEY_PREFIX "GUID="
#define LDB_KV_GUID_SIZE 16
#define LDB_KV_GUID_KEY_SIZE (LDB_KV_GUID_SIZE + sizeof(LDB_KV_GUID_KEY_PREFIX) - 1)
/*
* The following definitions come from lib/ldb/ldb_key_value/ldb_kv_cache.c
*/
int ldb_kv_cache_reload(struct ldb_module *module);
int ldb_kv_cache_load(struct ldb_module *module);
int ldb_kv_increase_sequence_number(struct ldb_module *module);
int ldb_kv_check_at_attributes_values(const struct ldb_val *value);
/*
* The following definitions come from lib/ldb/ldb_key_value/ldb_kv_index.c
*/
struct ldb_parse_tree;
int ldb_kv_search_indexed(struct ldb_kv_context *ctx, uint32_t *);
int ldb_kv_index_add_new(struct ldb_module *module,
struct ldb_kv_private *ldb_kv,
const struct ldb_message *msg);
int ldb_kv_index_delete(struct ldb_module *module,
const struct ldb_message *msg);
int ldb_kv_index_del_element(struct ldb_module *module,
struct ldb_kv_private *ldb_kv,
const struct ldb_message *msg,
struct ldb_message_element *el);
int ldb_kv_index_add_element(struct ldb_module *module,
struct ldb_kv_private *ldb_kv,
const struct ldb_message *msg,
struct ldb_message_element *el);
int ldb_kv_index_del_value(struct ldb_module *module,
struct ldb_kv_private *ldb_kv,
const struct ldb_message *msg,
struct ldb_message_element *el,
unsigned int v_idx);
int ldb_kv_reindex(struct ldb_module *module);
int ldb_kv_index_transaction_start(struct ldb_module *module);
int ldb_kv_index_transaction_commit(struct ldb_module *module);
int ldb_kv_index_transaction_cancel(struct ldb_module *module);
int ldb_kv_key_dn_from_idx(struct ldb_module *module,
struct ldb_kv_private *ldb_kv,
TALLOC_CTX *mem_ctx,
struct ldb_dn *dn,
struct ldb_val *key);
/*
* The following definitions come from lib/ldb/ldb_key_value/ldb_kv_search.c
*/
int ldb_kv_search_dn1(struct ldb_module *module,
struct ldb_dn *dn,
struct ldb_message *msg,
unsigned int unpack_flags);
int ldb_kv_search_base(struct ldb_module *module,
TALLOC_CTX *mem_ctx,
struct ldb_dn *dn,
struct ldb_dn **ret_dn);
int ldb_kv_search_key(struct ldb_module *module,
struct ldb_kv_private *ldb_kv,
const struct ldb_val ldb_key,
struct ldb_message *msg,
unsigned int unpack_flags);
int ldb_kv_filter_attrs(TALLOC_CTX *mem_ctx,
const struct ldb_message *msg,
const char *const *attrs,
struct ldb_message **filtered_msg);
int ldb_kv_search(struct ldb_kv_context *ctx);
/*
* The following definitions come from lib/ldb/ldb_key_value/ldb_kv.c */
/*
* Determine if this key could hold a record. We allow the new GUID
* index, the old DN index and a possible future ID=
*/
bool ldb_kv_key_is_record(struct ldb_val key);
struct ldb_val ldb_kv_key_dn(struct ldb_module *module,
TALLOC_CTX *mem_ctx,
struct ldb_dn *dn);
struct ldb_val ldb_kv_key_msg(struct ldb_module *module,
TALLOC_CTX *mem_ctx,
const struct ldb_message *msg);
int ldb_kv_guid_to_key(struct ldb_module *module,
struct ldb_kv_private *ldb_kv,
const struct ldb_val *GUID_val,
struct ldb_val *key);
int ldb_kv_idx_to_key(struct ldb_module *module,
struct ldb_kv_private *ldb_kv,
TALLOC_CTX *mem_ctx,
const struct ldb_val *idx_val,
struct ldb_val *key);
int ldb_kv_store(struct ldb_module *module,
const struct ldb_message *msg,
int flgs);
int ldb_kv_modify_internal(struct ldb_module *module,
const struct ldb_message *msg,
struct ldb_request *req);
int ldb_kv_delete_noindex(struct ldb_module *module,
const struct ldb_message *msg);
int ldb_kv_init_store(struct ldb_kv_private *ldb_kv,
const char *name,
struct ldb_context *ldb,
const char *options[],
struct ldb_module **_module);
This diff is collapsed.
This diff is collapsed.
......@@ -4,13 +4,245 @@
#include "tdb.h"
#include "ldb_module.h"
struct ltdb_private;
typedef int (*ldb_kv_traverse_fn)(struct ltdb_private *ltdb,
struct ldb_val key, struct ldb_val data,
void *ctx);
struct kv_db_ops {
int (*store)(struct ltdb_private *ltdb, struct ldb_val key, struct ldb_val data, int flags);
int (*delete)(struct ltdb_private *ltdb, struct ldb_val key);
int (*iterate)(struct ltdb_private *ltdb, ldb_kv_traverse_fn fn, void *ctx);
int (*update_in_iterate)(struct ltdb_private *ltdb, struct ldb_val key,
struct ldb_val key2, struct ldb_val data, void *ctx);
int (*fetch_and_parse)(struct ltdb_private *ltdb, struct ldb_val key,
int (*parser)(struct ldb_val key, struct ldb_val data,
void *private_data),
void *ctx);
int (*lock_read)(struct ldb_module *);
int (*unlock_read)(struct ldb_module *);
int (*begin_write)(struct ltdb_private *);
int (*prepare_write)(struct ltdb_private *);
int (*abort_write)(struct ltdb_private *);
int (*finish_write)(struct ltdb_private *);
int (*error)(struct ltdb_private *ltdb);
const char * (*errorstr)(struct ltdb_private *ltdb);
const char * (*name)(struct ltdb_private *ltdb);
bool (*has_changed)(struct ltdb_private *ltdb);
bool (*transaction_active)(struct ltdb_private *ltdb);
};
/* this private structure is used by the ltdb backend in the
ldb_context */
struct ltdb_private {
const struct kv_db_ops *kv_ops;
struct ldb_module *module;
TDB_CONTEXT *tdb;
struct lmdb_private *lmdb_private;
unsigned int connect_flags;
unsigned long long sequence_number;
/* the low level tdb seqnum - used to avoid loading BASEINFO when
possible */
int tdb_seqnum;
struct ltdb_cache {
struct ldb_message *indexlist;
bool one_level_indexes;
bool attribute_indexes;
const char *GUID_index_attribute;
const char *GUID_index_dn_component;
} *cache;
bool check_base;
bool disallow_dn_filter;
struct ltdb_idxptr *idxptr;
bool prepared_commit;
int read_lock_count;
bool warn_unindexed;
bool warn_reindex;
bool read_only;
bool reindex_failed;
const struct ldb_schema_syntax *GUID_index_syntax;
/*
* Maximum index key length. If non zero keys longer than this length
* will be truncated for non unique indexes. Keys for unique indexes
* greater than this length will be rejected.
*/
unsigned max_key_length;
/*
* To allow testing that ensures the DB does not fall back
* to a full scan
*/
bool disable_full_db_scan;
/*
* The PID that opened this database so we don't work in a
* fork()ed child.
*/
pid_t pid;
};
struct ltdb_context {
struct ldb_module *module;
struct ldb_request *req;
bool request_terminated;
struct ltdb_req_spy *spy;
/* search stuff */
const struct ldb_parse_tree *tree;
struct ldb_dn *base;
enum ldb_scope scope;
const char * const *attrs;
struct tevent_timer *timeout_event;
/* error handling */
int error;
};
struct ltdb_reindex_context {
struct ldb_module *module;
int error;
uint32_t count;
};
/* special record types */
#define LTDB_INDEX "@INDEX"
#define LTDB_INDEXLIST "@INDEXLIST"
#define LTDB_IDX "@IDX"
#define LTDB_IDXVERSION "@IDXVERSION"
#define LTDB_IDXATTR "@IDXATTR"
#define LTDB_IDXONE "@IDXONE"
#define LTDB_IDXDN "@IDXDN"
#define LTDB_IDXGUID "@IDXGUID"
#define LTDB_IDX_DN_GUID "@IDX_DN_GUID"
/*
* This will be used to indicate when a new, yet to be developed
* sub-database version of the indicies are in use, to ensure we do
* not load future databases unintentionally.
*/
#define LTDB_IDX_LMDB_SUBDB "@IDX_LMDB_SUBDB"
#define LTDB_BASEINFO "@BASEINFO"
#define LTDB_OPTIONS "@OPTIONS"
#define LTDB_ATTRIBUTES "@ATTRIBUTES"
/* special attribute types */
#define LTDB_SEQUENCE_NUMBER "sequenceNumber"
#define LTDB_CHECK_BASE "checkBaseOnSearch"
#define LTDB_DISALLOW_DN_FILTER "disallowDNFilter"
#define LTDB_MOD_TIMESTAMP "whenChanged"
#define LTDB_OBJECTCLASS "objectClass"
/* DB keys */
#define LTDB_GUID_KEY_PREFIX "GUID="
#define LTDB_GUID_SIZE 16
#define LTDB_GUID_KEY_SIZE (LTDB_GUID_SIZE + sizeof(LTDB_GUID_KEY_PREFIX) - 1)
/* The following definitions come from lib/ldb/ldb_tdb/ldb_cache.c */
int ltdb_cache_reload(struct ldb_module *module);
int ltdb_cache_load(struct ldb_module *module);
int ltdb_increase_sequence_number(struct ldb_module *module);
int ltdb_check_at_attributes_values(const struct ldb_val *value);
/* The following definitions come from lib/ldb/ldb_tdb/ldb_index.c */
struct ldb_parse_tree;
int ltdb_search_indexed(struct ltdb_context *ctx, uint32_t *);
int ltdb_index_add_new(struct ldb_module *module,
struct ltdb_private *ltdb,
const struct ldb_message *msg);
int ltdb_index_delete(struct ldb_module *module, const struct ldb_message *msg);
int ltdb_index_del_element(struct ldb_module *module,
struct ltdb_private *ltdb,
const struct ldb_message *msg,
struct ldb_message_element *el);
int ltdb_index_add_element(struct ldb_module *module,
struct ltdb_private *ltdb,
const struct ldb_message *msg,
struct ldb_message_element *el);
int ltdb_index_del_value(struct ldb_module *module,
struct ltdb_private *ltdb,
const struct ldb_message *msg,
struct ldb_message_element *el, unsigned int v_idx);
int ltdb_reindex(struct ldb_module *module);
int ltdb_index_transaction_start(struct ldb_module *module);
int ltdb_index_transaction_commit(struct ldb_module *module);
int ltdb_index_transaction_cancel(struct ldb_module *module);
int ltdb_key_dn_from_idx(struct ldb_module *module,
struct ltdb_private *ltdb,
TALLOC_CTX *mem_ctx,
struct ldb_dn *dn,
TDB_DATA *tdb_key);
/* The following definitions come from lib/ldb/ldb_tdb/ldb_search.c */
int ltdb_has_wildcard(struct ldb_module *module, const char *attr_name,
const struct ldb_val *val);
void ltdb_search_dn1_free(struct ldb_module *module, struct ldb_message *msg);
int ltdb_search_dn1(struct ldb_module *module, struct ldb_dn *dn, struct ldb_message *msg,
unsigned int unpack_flags);
int ltdb_search_base(struct ldb_module *module,
TALLOC_CTX *mem_ctx,
struct ldb_dn *dn,
struct ldb_dn **ret_dn);
int ltdb_search_key(struct ldb_module *module, struct ltdb_private *ltdb,
struct TDB_DATA tdb_key,
struct ldb_message *msg,
unsigned int unpack_flags);
int ltdb_filter_attrs(TALLOC_CTX *mem_ctx,
const struct ldb_message *msg, const char * const *attrs,
struct ldb_message **filtered_msg);
int ltdb_search(struct ltdb_context *ctx);
/* The following definitions come from lib/ldb/ldb_tdb/ldb_tdb.c */
/*
* Determine if this key could hold a record. We allow the new GUID
* index, the old DN index and a possible future ID=
*/
bool ltdb_key_is_record(TDB_DATA key);
TDB_DATA ltdb_key_dn(struct ldb_module *module, TALLOC_CTX *mem_ctx,
struct ldb_dn *dn);
TDB_DATA ltdb_key_msg(struct ldb_module *module, TALLOC_CTX *mem_ctx,
const struct ldb_message *msg);
int ltdb_guid_to_key(struct ldb_module *module,
struct ltdb_private *ltdb,
const struct ldb_val *GUID_val,
TDB_DATA *key);
int ltdb_idx_to_key(struct ldb_module *module,
struct ltdb_private *ltdb,
TALLOC_CTX *mem_ctx,
const struct ldb_val *idx_val,
TDB_DATA *key);
TDB_DATA ltdb_key(struct ldb_module *module, struct ldb_dn *dn);
int ltdb_store(struct ldb_module *module, const struct ldb_message *msg, int flgs);
int ltdb_modify_internal(struct ldb_module *module, const struct ldb_message *msg, struct ldb_request *req);
int ltdb_delete_noindex(struct ldb_module *module,
const struct ldb_message *msg);
int ltdb_err_map(enum TDB_ERROR tdb_code);
struct tdb_context *ltdb_wrap_open(TALLOC_CTX *mem_ctx,
const char *path, int hash_size, int tdb_flags,
int open_flags, mode_t mode,
struct ldb_context *ldb);
int init_store(struct ltdb_private *ltdb, const char *name,
struct ldb_context *ldb, const char *options[],
struct ldb_module **_module);
int ltdb_connect(struct ldb_context *ldb, const char *url,
unsigned int flags, const char *options[],
struct ldb_module **_module);
/*
ldb database library
Copyright (C) Andrew Tridgell 2004
Copyright (C) Stefan Metzmacher 2004
Copyright (C) Simo Sorce 2006-2008
Copyright (C) Matthias Dieter Wallnöfer 2009-2010
** NOTE! The following LGPL license applies to the ldb
** library. This does NOT imply that all of Samba is released
** under the LGPL
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, see <http://www.gnu.org/licenses/>.
*/
/*
* Name: ldb_tdb
*
* Component: ldb tdb backend
*
* Description: core functions for tdb backend
*