Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text | Andrew Tridgell | 2007-07-10 | 1 | -2/+1 |
| | |||||
* | r23780: Find and fix more GPL2 -> GPL3. | Jeremy Allison | 2007-07-09 | 1 | -1/+1 |
| | | | | Jeremy. | ||||
* | r23313: Janitor for tridge: | Volker Lendecke | 2007-06-03 | 1 | -24/+13 |
| | | | | | | we need to use tdb_wrap_open in both these backends to allow for multiple opens. This is done for notify.tdb. Otherwise we die when a 2nd share with notify is setup | ||||
* | r23220: Add traverse_read to dbwrap | Volker Lendecke | 2007-05-29 | 1 | -0/+41 |
| | |||||
* | r23170: Add map_nt_error_from_tdb() | Volker Lendecke | 2007-05-28 | 1 | -2/+8 |
| | |||||
* | r22945: merge 22009 from SAMBA_3_0 + some warning fixes for new code: | Stefan Metzmacher | 2007-05-16 | 1 | -5/+3 |
| | | | | | | | | change TDB_DATA from char * to unsigned char * and fix all compiler warnings in the users metze | ||||
* | r22890: Fix cast. | Michael Adam | 2007-05-15 | 1 | -2/+2 |
| | | | | (In 3_0_26, TDB_DATA.dptr is still char, not unsigned char.) | ||||
* | r22775: For the cluster code I've developed a wrapper around tdb to put ↵ | Volker Lendecke | 2007-05-10 | 1 | -0/+227 |
different database backends in place dynamically. The main abstractions are db_context and db_record, it should be mainly self-describing, see include/dbwrap.h. You open the db just as you would open a tdb, this time with db_open(). If you want to fetch a record, just do the db->fetch() call, if you want to do operations on it, you need to get it with fetch_locked(). I added dbwrap_file.c (not heavily tested lately) as an example for what can be done with that abstraction, uses a file per key. So if anybody is willing to shape that up, we might have a chance on reiserfs again.... :-) This abstraction works fine for brlock.tdb, locking.tdb, connections.tdb and sessionid.tdb. It should work fine for the others as well, I just did not yet get around to convert them. If nobody loudly screams NO, then I will import the code that uses this soon. Volker |