Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | move the dbwrap library to the top level | Michael Adam | 2012-05-14 | 1 | -398/+0 |
| | | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon May 14 04:04:55 CEST 2012 on sn-devel-104 | ||||
* | s3-dbwrap: Add dbwrap_set_stored_callback | Volker Lendecke | 2012-04-20 | 1 | -2/+36 |
| | | | | 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/+6 |
| | |||||
* | s3-dbwrap: Add dbwrap_db_id | Volker Lendecke | 2012-04-20 | 1 | -0/+5 |
| | | | | This returns a blob uniquely identifying the database | ||||
* | s3-dbwrap: Remove dead code: talloc_stackframe() cannot fail | Andrew Bartlett | 2012-04-19 | 1 | -10/+1 |
| | |||||
* | s3-dbwrap: Add talloc_stackframe() calls | Andrew Bartlett | 2012-04-18 | 1 | -5/+21 |
| | | | | | | | This is in preperation for calling dbwrap from common code, where we may not have a stackframe set up. Andrew Bartlett | ||||
* | s3: Add dbwrap_try_fetch_locked | Volker Lendecke | 2012-04-17 | 1 | -4/+23 |
| | | | | | | | | | | 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. | ||||
* | dbwrap: changed log level for information about lock order | Andrew Tridgell | 2012-02-27 | 1 | -1/+1 |
| | | | | | | | | | we were filling our logs with lock ordering debug lines Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Feb 27 12:50:29 CET 2012 on sn-devel-104 | ||||
* | s3: Enforce a lock order in dbwrap | Volker Lendecke | 2012-01-18 | 1 | -1/+80 |
| | | | | | | | This makes sure we do not deadlock from doing two dbwrap_fetch_locked in two processes in different orders. At open time, we assign a strict order to all databases. lock_order 1 will be locked first, lock_order 2 second. No two records of the same lock order may be locked at the same time. | ||||
* | s3-dbwrap: All relevant backends provide parse_record(). Remove the fallback. | Volker Lendecke | 2011-12-15 | 1 | -37/+0 |
| | | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Thu Dec 15 17:41:53 CET 2011 on sn-devel-104 | ||||
* | s3-dbwrap: Remove the "fetch" db_context callback | Volker Lendecke | 2011-12-15 | 1 | -21/+0 |
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> | ||||
* | s3-dbwrap: Rewrite dbwrap_fetch in terms of dbwrap_parse_record | Volker Lendecke | 2011-12-15 | 1 | -3/+30 |
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> | ||||
* | s3-dbwrap: Rewrite dbwrap_fallback_parse_record based on dbwrap_fetch_locked | Volker Lendecke | 2011-12-15 | 1 | -4/+13 |
| | | | | | | This is in preparation to remove the db_context->fetch function pointer Signed-off-by: Michael Adam <obnox@samba.org> | ||||
* | s3-dbwrap: Make dbwrap_parse_record return NTSTATUS | Volker Lendecke | 2011-12-15 | 1 | -18/+16 |
| | | | | | | | 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-dbwrap: Fix a typo | Volker Lendecke | 2011-12-09 | 1 | -1/+1 |
| | | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Dec 9 13:37:51 CET 2011 on sn-devel-104 | ||||
* | s3-dbwrap: & is not required when taking a function pointer | Volker Lendecke | 2011-12-08 | 1 | -1/+1 |
| | | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Dec 8 16:39:29 CET 2011 on sn-devel-104 | ||||
* | s3-dbwrap: Make dbwrap_fallback_wipe private | Volker Lendecke | 2011-12-08 | 1 | -1/+4 |
| | |||||
* | s3-dbwrap: Avoid an "else" by an early return | Volker Lendecke | 2011-12-08 | 1 | -4/+4 |
| | |||||
* | s3-dbwrap: Make dbwrap_fallback_parse_record private | Volker Lendecke | 2011-12-08 | 1 | -5/+5 |
| | | | | We have the private fallback in dbwrap_parse_record anyway | ||||
* | s3-dbwrap: Make dbwrap_fallback_fetch private | Volker Lendecke | 2011-12-08 | 1 | -3/+6 |
| | |||||
* | s3-dbwrap: use wrappers where appropriate | Volker Lendecke | 2011-12-08 | 1 | -7/+7 |
| | |||||
* | s3: Fix some nonblank line endings | Volker Lendecke | 2011-12-02 | 1 | -4/+4 |
| | | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Dec 2 20:39:33 CET 2011 on sn-devel-104 | ||||
* | s3: Remove unused dbwrap_record_get_private_data | Volker Lendecke | 2011-12-02 | 1 | -5/+0 |
| | | | | | db_record->private_data is for backends which can include dbwrap_private.h anyway. | ||||
* | s3:dbwrap: turn the fetch dbwrap method to NTSTATUS return code. | Michael Adam | 2011-11-29 | 1 | -12/+10 |
| | | | | | This implement more correct NTSTATUS handling inside the backends. This ensures that data.dptr != NULL if return code is NT_STATUS_OK. | ||||
* | s3:dbwrap: convert dbwrap_fetch(), dbwrap_fetch_bystring() and ↵ | Michael Adam | 2011-10-11 | 1 | -6/+8 |
| | | | | 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/+7 |
| | |||||
* | s3:dbwrap: add dbwrap_record_delete(), a wrapper for record->delete_rec | Michael Adam | 2011-10-11 | 1 | -0/+5 |
| | |||||
* | s3:dbwrap: add dbwrap_record_store(), a wrapper for record->store | Michael Adam | 2011-10-11 | 1 | -0/+5 |
| | |||||
* | s3:dbwrap: add get-functions for db_record key, value and private_data | Michael Adam | 2011-10-11 | 1 | -0/+15 |
| | |||||
* | s3:dbwrap: add wrapper function dbwrap_get_seqnum() | Michael Adam | 2011-10-11 | 1 | -0/+5 |
| | |||||
* | s3:dbwrap: add wrappers for transactions start/cancel/commit | Michael Adam | 2011-10-11 | 1 | -0/+15 |
| | |||||
* | s3:dbwrap: add wrapper dbwrap_get_flags() | Michael Adam | 2011-10-11 | 1 | -0/+5 |
| | |||||
* | s3:dbwrap: add a comment | Michael Adam | 2011-10-11 | 1 | -0/+4 |
| | |||||
* | s3:dbwrap: add function dbwrap_wipe() | Gregor Beck | 2011-10-11 | 1 | -0/+22 |
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> | ||||
* | s3:dbwrap: implement dbwrap_fallback_exists() with dbwrap_parse_record() | Gregor Beck | 2011-10-11 | 1 | -10/+2 |
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> | ||||
* | s3:dbwrap: allow NULL parser for dbwrap_parse_record() | Gregor Beck | 2011-10-11 | 1 | -0/+9 |
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> | ||||
* | s3:dbwrap: dbwrap_parse_record() should always return -1 on "not found" | Gregor Beck | 2011-10-11 | 1 | -1/+1 |
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> | ||||
* | s3:dbwrap: add function dbwrap_parse_record() | Gregor Beck | 2011-10-11 | 1 | -0/+12 |
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> | ||||
* | s3:dbwrap: add function dbwrap_exists() | Gregor Beck | 2011-10-11 | 1 | -0/+29 |
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> | ||||
* | s3:dbwrap: add a wrapper dbwrap_traverse_read() | Michael Adam | 2011-10-11 | 1 | -0/+18 |
| | |||||
* | s3:dbwrap: change the dbwrap_traverse() wrapper to return the count in an ↵ | Michael Adam | 2011-10-11 | 1 | -2/+12 |
| | | | | additional parameter | ||||
* | s3:dbwrap: move dbwrap_traverse() to dbwrap.c, the core of the dbrwap subsystem | Michael Adam | 2011-10-11 | 1 | -0/+8 |
| | |||||
* | s3:dbwrap: move dbwrap_store() back to dbwrap.c, the core of the dbwrap ↵ | Michael Adam | 2011-10-11 | 1 | -0/+16 |
| | | | | subsystem | ||||
* | s3:dbwrap: move dbwrap_delete() back to dbwrap.c, the core of the dbwrap ↵ | Michael Adam | 2011-10-11 | 1 | -0/+14 |
| | | | | subsystem | ||||
* | s3:dbwrap: move dbwrap_fetch() back to dbwrap.c, the core of the dbwrap ↵ | Michael Adam | 2011-10-11 | 1 | -0/+14 |
| | | | | subsystem | ||||
* | s3:dbwrap: move all .c and .h files of dbwrap to lib/dbwrap/ | Michael Adam | 2011-07-29 | 1 | -0/+66 |
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Fri Jul 29 13:34:22 CEST 2011 on sn-devel-104 |