Changeset 745 for trunk/server/lib/tdb/docs
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/lib/tdb/docs/README
r414 r745 106 106 107 107 ---------------------------------------------------------------------- 108 int 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 ---------------------------------------------------------------------- 108 127 int tdb_exists(TDB_CONTEXT *tdb, TDB_DATA key); 109 128
Note:
See TracChangeset
for help on using the changeset viewer.