diff options
author | Volker Lendecke <vl@samba.org> | 2014-03-18 08:01:40 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-03-18 13:42:10 +0100 |
commit | 92ce9fd9afd080954c0509cf62def6b355d79e94 (patch) | |
tree | 50e063ea29be2b139085285b0c1618ca0a3007b0 /lib | |
parent | 4ca018692f1bd9fe85b6d8be546bbaf704ba038d (diff) | |
download | samba-92ce9fd9afd080954c0509cf62def6b355d79e94.tar.gz samba-92ce9fd9afd080954c0509cf62def6b355d79e94.tar.xz samba-92ce9fd9afd080954c0509cf62def6b355d79e94.zip |
tdb: Make "tdb_find_dead" internally public
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tdb/common/tdb.c | 6 | ||||
-rw-r--r-- | lib/tdb/common/tdb_private.h | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/lib/tdb/common/tdb.c b/lib/tdb/common/tdb.c index b71be98f673..df4dd4daa9f 100644 --- a/lib/tdb/common/tdb.c +++ b/lib/tdb/common/tdb.c @@ -445,9 +445,9 @@ _PUBLIC_ int tdb_delete(struct tdb_context *tdb, TDB_DATA key) /* * See if we have a dead record around with enough space */ -static tdb_off_t tdb_find_dead(struct tdb_context *tdb, uint32_t hash, - struct tdb_record *r, tdb_len_t length, - tdb_off_t *p_last_ptr) +tdb_off_t tdb_find_dead(struct tdb_context *tdb, uint32_t hash, + struct tdb_record *r, tdb_len_t length, + tdb_off_t *p_last_ptr) { tdb_off_t rec_ptr, last_ptr; tdb_off_t best_rec_ptr = 0; diff --git a/lib/tdb/common/tdb_private.h b/lib/tdb/common/tdb_private.h index 7227b43d2c8..4c73bb64f51 100644 --- a/lib/tdb/common/tdb_private.h +++ b/lib/tdb/common/tdb_private.h @@ -272,6 +272,9 @@ int tdb_parse_data(struct tdb_context *tdb, TDB_DATA key, void *private_data); tdb_off_t tdb_find_lock_hash(struct tdb_context *tdb, TDB_DATA key, uint32_t hash, int locktype, struct tdb_record *rec); +tdb_off_t tdb_find_dead(struct tdb_context *tdb, uint32_t hash, + struct tdb_record *r, tdb_len_t length, + tdb_off_t *p_last_ptr); void tdb_io_init(struct tdb_context *tdb); int tdb_expand(struct tdb_context *tdb, tdb_off_t size); tdb_off_t tdb_expand_adjust(tdb_off_t map_size, tdb_off_t size, int page_size); |