Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/lib/tdb/docs/README

    r414 r745  
    106106
    107107----------------------------------------------------------------------
     108int tdb_parse_record(struct tdb_context *tdb, TDB_DATA key,
     109                     int (*parser)(TDB_DATA key, TDB_DATA data,
     110                                   void *private_data),
     111                     void *private_data);
     112
     113   Hand a record to a parser function without allocating it.
     114
     115   This function is meant as a fast tdb_fetch alternative for large records
     116   that are frequently read. The "key" and "data" arguments point directly
     117   into the tdb shared memory, they are not aligned at any boundary.
     118
     119   WARNING: The parser is called while tdb holds a lock on the record. DO NOT
     120   call other tdb routines from within the parser. Also, for good performance
     121   you should make the parser fast to allow parallel operations.
     122
     123   tdb_parse_record returns -1 if the record was not found.  If the record was
     124   found, the return value of "parser" is passed up to the caller.
     125
     126----------------------------------------------------------------------
    108127int tdb_exists(TDB_CONTEXT *tdb, TDB_DATA key);
    109128
Note: See TracChangeset for help on using the changeset viewer.