diff options
author | Volker Lendecke <vl@samba.org> | 2015-03-12 14:23:17 +0000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2015-03-17 11:30:52 +0100 |
commit | cf368cbdc5f1b6ee1f831e3a90d8d77ef8d317ed (patch) | |
tree | 0bab68ad481e3265aeff133a8d4628e45f67d773 /source3/lib | |
parent | f199e0ebfc6625406559864da4c18c038e903107 (diff) | |
download | samba-cf368cbdc5f1b6ee1f831e3a90d8d77ef8d317ed.tar.gz |
lib: Remove tdb_fetch_compat
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/dbwrap/dbwrap_ctdb.c | 6 | ||||
-rw-r--r-- | source3/lib/eventlog/eventlog.c | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c index e6dcc0e987c..947a888982d 100644 --- a/source3/lib/dbwrap/dbwrap_ctdb.c +++ b/source3/lib/dbwrap/dbwrap_ctdb.c @@ -498,7 +498,7 @@ static struct db_record *db_ctdb_fetch_locked_transaction(struct db_ctdb_ctx *ct return result; } - ctdb_data = tdb_fetch_compat(ctx->wtdb->tdb, key); + ctdb_data = tdb_fetch(ctx->wtdb->tdb, key); if (ctdb_data.dptr == NULL) { /* create the record */ result->value = tdb_null; @@ -584,7 +584,7 @@ static NTSTATUS db_ctdb_transaction_store(struct db_ctdb_transaction_handle *h, if (!pull_newest_from_marshall_buffer(h->m_write, key, &header, NULL, NULL)) { - rec = tdb_fetch_compat(h->ctx->wtdb->tdb, key); + rec = tdb_fetch(h->ctx->wtdb->tdb, key); if (rec.dptr != NULL) { memcpy(&header, rec.dptr, @@ -1094,7 +1094,7 @@ again: result->delete_rec = db_ctdb_delete; talloc_set_destructor(result, db_ctdb_record_destr); - ctdb_data = tdb_fetch_compat(ctx->wtdb->tdb, key); + ctdb_data = tdb_fetch(ctx->wtdb->tdb, key); /* * See if we have a valid record and we are the dmaster. If so, we can diff --git a/source3/lib/eventlog/eventlog.c b/source3/lib/eventlog/eventlog.c index 34752fd8006..f9ac0900150 100644 --- a/source3/lib/eventlog/eventlog.c +++ b/source3/lib/eventlog/eventlog.c @@ -204,7 +204,7 @@ static bool make_way_for_eventlogs( TDB_CONTEXT * the_tdb, int32_t needed, /* read a record, add the amt to nbytes */ key.dsize = sizeof(int32_t); key.dptr = (unsigned char *)&i; - ret = tdb_fetch_compat( the_tdb, key ); + ret = tdb_fetch( the_tdb, key ); if ( ret.dsize == 0 ) { DEBUG( 8, ( "Can't find a record for the key, record [%d]\n", @@ -687,7 +687,7 @@ struct eventlog_Record_tdb *evlog_pull_record_tdb(TALLOC_CTX *mem_ctx, key.dptr = (unsigned char *)&srecno; key.dsize = sizeof(int32_t); - data = tdb_fetch_compat(tdb, key); + data = tdb_fetch(tdb, key); if (data.dsize == 0) { DEBUG(8,("evlog_pull_record_tdb: " "Can't find a record for the key, record %d\n", |