Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | move the dbwrap library to the top level | Michael Adam | 2012-05-14 | 1 | -131/+0 |
| | | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon May 14 04:04:55 CEST 2012 on sn-devel-104 | ||||
* | s3:dbwrap: move definition of dbwrap_lock_order to dbwrap.h | Michael Adam | 2012-05-13 | 1 | -0/+6 |
| | | | | This is needed in all of the library, not only in the dbwrap_open part. | ||||
* | s3-dbwrap: Add dbwrap_set_stored_callback | Volker Lendecke | 2012-04-20 | 1 | -0/+5 |
| | | | | This is a per-db function that is called whenever some record is modified | ||||
* | s3-dbwrap: Add "db_context" to "db_record" | Volker Lendecke | 2012-04-20 | 1 | -0/+1 |
| | |||||
* | s3-dbwrap: Add dbwrap_db_id | Volker Lendecke | 2012-04-20 | 1 | -0/+1 |
| | | | | This returns a blob uniquely identifying the database | ||||
* | s3: Add dbwrap_try_fetch_locked | Volker Lendecke | 2012-04-17 | 1 | -0/+3 |
| | | | | | | | | | | This is designed to spread the load on individual ctdb records to allow upper layers to do backoff mechanisms. In the ctdb case, do not get the record if a local lock is already taken. If we are not dmaster, do at most one migrate attempt. For the tdb case, this is a nonblocking fetch_locked. If someone else has the lock, give up. | ||||
* | s3-dbwrap: Make dbwrap_parse_record return NTSTATUS | Volker Lendecke | 2011-12-15 | 1 | -4/+4 |
| | | | | | | | Also, the parser now returns void. The parser is called if and only if dbwrap_parse_record returns NT_STATUS_OK. Signed-off-by: Michael Adam <obnox@samba.org> | ||||
* | s3: Remove unused dbwrap_record_get_private_data | Volker Lendecke | 2011-12-02 | 1 | -1/+0 |
| | | | | | db_record->private_data is for backends which can include dbwrap_private.h anyway. | ||||
* | s3:dbwrap: change dbwrap_store_uint32() to NTSTATUS return type | Michael Adam | 2011-10-11 | 1 | -1/+2 |
| | | | | | | | for consistency and better error propagation Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Tue Oct 11 15:51:00 CEST 2011 on sn-devel-104 | ||||
* | s3:dbwrap: change dbwrap_store_int32() to NTSTATUS return type | Michael Adam | 2011-10-11 | 1 | -1/+2 |
| | | | | for consistency and better error propagation | ||||
* | s3:dbwrap: change dbwrap_fetch_uint32() to NTSTATUS return type (instead of ↵ | Michael Adam | 2011-10-11 | 1 | -2/+2 |
| | | | | | | bool) for consistency and better error propagation | ||||
* | s3:dbwrap: convert dbwrap_fetch_int32() to NTSTATUS return code | Michael Adam | 2011-10-11 | 1 | -1/+2 |
| | | | | | | Return the int32 value retrieved from the db by reference. Before this, return value "-1" was used as a error indication, but it could also be a valid value from the database. | ||||
* | s3:dbwrap: move definitions of db_record and db_contect structs to ↵ | Michael Adam | 2011-10-11 | 1 | -35/+2 |
| | | | | | | dbwrap_private.h The API and callers now only need the forward declarations. | ||||
* | s3:dbwrap: convert dbwrap_fetch(), dbwrap_fetch_bystring() and ↵ | Michael Adam | 2011-10-11 | 1 | -6/+6 |
| | | | | dbwrap_fetch_bystring_upper() to NTSTATUS | ||||
* | s3:dbwrap: add dbwrap_fetch_locked(), a wrapper for db->fetch_locked | Michael Adam | 2011-10-11 | 1 | -0/+3 |
| | |||||
* | s3:dbwrap: add dbwrap_record_delete(), a wrapper for record->delete_rec | Michael Adam | 2011-10-11 | 1 | -0/+1 |
| | |||||
* | s3:dbwrap: add dbwrap_record_store(), a wrapper for record->store | Michael Adam | 2011-10-11 | 1 | -0/+1 |
| | |||||
* | s3:dbwrap: add get-functions for db_record key, value and private_data | Michael Adam | 2011-10-11 | 1 | -0/+4 |
| | |||||
* | s3:dbwrap: add wrapper function dbwrap_get_seqnum() | Michael Adam | 2011-10-11 | 1 | -0/+1 |
| | |||||
* | s3:dbwrap: add wrappers for transactions start/cancel/commit | Michael Adam | 2011-10-11 | 1 | -0/+3 |
| | |||||
* | s3:dbwrap: add wrapper dbwrap_get_flags() | Michael Adam | 2011-10-11 | 1 | -0/+1 |
| | |||||
* | s3:dbwrap: add function dbwrap_wipe() | Gregor Beck | 2011-10-11 | 1 | -0/+2 |
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> | ||||
* | s3:dbwrap: add function dbwrap_parse_record() | Gregor Beck | 2011-10-11 | 1 | -0/+4 |
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> | ||||
* | s3:dbwrap: add function dbwrap_exists() | Gregor Beck | 2011-10-11 | 1 | -0/+2 |
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> | ||||
* | s3:dbwrap: add a wrapper dbwrap_traverse_read() | Michael Adam | 2011-10-11 | 1 | -0/+4 |
| | |||||
* | s3:dbwrap: change the dbwrap_traverse() wrapper to return the count in an ↵ | Michael Adam | 2011-10-11 | 1 | -1/+2 |
| | | | | additional parameter | ||||
* | s3:dbwrap: reorganize dbwrap.h some | Michael Adam | 2011-10-11 | 1 | -5/+8 |
| | |||||
* | s3:dbwrap: move the db_open_rbt() prototype to a new header dbwrap_rbt.h | Michael Adam | 2011-10-11 | 1 | -2/+0 |
| | |||||
* | s3:dbwrap: move the db_open_file() prototype to a new header dbwrap_file.h | Michael Adam | 2011-10-11 | 1 | -8/+0 |
| | |||||
* | s3:dbwrap: move the db_open_tdb() prototype to a new header dbwrap_tdb.h | Michael Adam | 2011-10-11 | 1 | -5/+0 |
| | |||||
* | s3:dbwrap: move the db_open_ctdb() prototype to a new header dbwrap_ctdb.h | Michael Adam | 2011-10-11 | 1 | -7/+0 |
| | |||||
* | s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/ | Michael Adam | 2011-07-29 | 1 | -0/+138 |
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104 |