Gregor Beck
a6cd71da85
s3:dbwrap: traverse records created within this transaction.
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-12 03:49:05 +02:00
Michael Adam
6760011761
s3:dbwrap: change dbwrap_store_uint32() to NTSTATUS return type
...
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
2011-10-11 15:51:00 +02:00
Michael Adam
c9bc1e4924
s3:dbwrap: change dbwrap_store_int32() to NTSTATUS return type
...
for consistency and better error propagation
2011-10-11 14:17:58 +02:00
Michael Adam
658f72128f
s3:dbwrap: change dbwrap_fetch_uint32() to NTSTATUS return type (instead of bool)
...
for consistency and better error propagation
2011-10-11 14:17:58 +02:00
Michael Adam
603c3e1bcb
s3:dbwrap: convert dbwrap_fetch_int32() to NTSTATUS return code
...
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.
2011-10-11 14:17:58 +02:00
Michael Adam
8750e3f22c
s3:dbwrap: move definitions of db_record and db_contect structs to dbwrap_private.h
...
The API and callers now only need the forward declarations.
2011-10-11 14:17:58 +02:00
Michael Adam
e2328ac33c
s3:messages: convert to use only dbwrap wrapper functions
...
Avoid direct use of the db_record and db_context structs.
2011-10-11 14:17:57 +02:00
Michael Adam
608ac61729
s3:conn_tdb: convert connections tdb to only use dbwrap wrapper functions
...
Avoid direct use of the db_record and db_context structs.
2011-10-11 14:17:57 +02:00
Michael Adam
79a4911d75
s3:privileges: convert privileges.c to use dbwrap wrapper functions.
...
Avoid direct use of the db_record and db_context structs.
2011-10-11 14:17:57 +02:00
Michael Adam
736af26062
s3:g_lock: convert to use only dbwrap wrapper functions.
...
Avoid direct use of the db_record and db_context structs.
2011-10-11 14:17:57 +02:00
Michael Adam
ff7918770d
s3:talloc_dict: change to only use dbwrap wrapper functions
...
Avoid direct use of the db_record and db_context structs.
2011-10-11 14:17:57 +02:00
Michael Adam
248cb2310c
s3:sharesec: convert sharesec.c to use dbwrap wrapper functions
...
Avoid direct use of the db_record and db_context structs
2011-10-11 14:17:56 +02:00
Michael Adam
bbe7811019
s3:sessionid: convert to using dbwrap wrapper functions only
...
Avoid direct use of the db_record and db_context structs.
2011-10-11 14:17:56 +02:00
Michael Adam
bdee9458f6
s3:sessionid: use dbwrap_travers_read() in sessionid_travers_read()
...
This also changes the return code of sessionid_traverse_read() to NTSTATUS.
It also uses traverse_read instead of traverse.
2011-10-11 14:17:56 +02:00
Michael Adam
6656de1346
s3:sessionid: use dbwrap_travers() in sessionid_traverse()
...
This also changes sessionid_traverse to NTSTATUS return type.
2011-10-11 14:17:56 +02:00
Michael Adam
85ae3c3fd4
s3:serverid: convert to using dbwrap wrapper functions only
...
Avoid direct use of the db_record and db_context structs.
2011-10-11 14:17:56 +02:00
Michael Adam
91e77f3640
s3:serverid: use dbwrap_traverse_read() in serverid_traverse_read()
...
This also fixes the return value: originally the int return value
of traverse_read which is a count of the records traversed or negative
upon failure, was simply casted into a bool return value.
2011-10-11 14:17:56 +02:00
Michael Adam
81258c01b8
s3:serverid: use dbwrap_traverse() in serverid_traverse()
...
This also fixes the return value: Originally, the int returned
by the traverse method, which is the count of the traverse was
casted into a bool return value.
2011-10-11 14:17:56 +02:00
Michael Adam
f21a66f70b
s3:dbwrap: convert dbwrap_util.c to use dbwrap wrapper functions
2011-10-11 14:17:56 +02:00
Michael Adam
e39cd86381
s3:dbwrap: use dbwrap_fetch_bystring() in dbwrap_fetch_[u]int32()
2011-10-11 14:17:56 +02:00
Michael Adam
0e28448a78
s3:dbwrap: convert dbwrap_fetch(), dbwrap_fetch_bystring() and dbwrap_fetch_bystring_upper() to NTSTATUS
2011-10-11 14:17:56 +02:00
Michael Adam
25a9978c2c
s3:dbwrap: add dbwrap_fetch_locked(), a wrapper for db->fetch_locked
2011-10-11 14:17:56 +02:00
Michael Adam
46370441b7
s3:dbwrap: add dbwrap_record_delete(), a wrapper for record->delete_rec
2011-10-11 14:17:56 +02:00
Michael Adam
b257e83d89
s3:dbwrap: add dbwrap_record_store(), a wrapper for record->store
2011-10-11 14:17:56 +02:00
Michael Adam
bfed62c169
s3:dbwrap: add get-functions for db_record key, value and private_data
2011-10-11 14:17:56 +02:00
Michael Adam
3ed2fb4a87
s3:dbwrap: add wrapper function dbwrap_get_seqnum()
2011-10-11 14:17:56 +02:00
Michael Adam
373b0606a3
s3:dbwrap: add wrappers for transactions start/cancel/commit
2011-10-11 14:17:56 +02:00
Michael Adam
d8ce5bc656
s3:dbwrap: add wrapper dbwrap_get_flags()
2011-10-11 14:17:56 +02:00
Gregor Beck
7b9bf28514
s3:dbwrap: fix db_rbt_traverse() to return the record count on success
...
this makes it consistent with documented behaviour of tdb_traverse()
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11 14:17:56 +02:00
Gregor Beck
ebcb921182
s3:dbwrap: add specific dbwrap_wipe() implementation to dbwrap_rbt
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11 14:17:56 +02:00
Gregor Beck
97fef0c2fd
s3:dbwrap: add specific dbwrap_wipe() implementation to dbwrap_tdb
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11 14:17:55 +02:00
Michael Adam
3dc607c0c6
s3:dbwrap: add a comment
2011-10-11 14:17:55 +02:00
Gregor Beck
dc4a5f5323
s3:dbwrap: add function dbwrap_wipe()
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11 14:17:55 +02:00
Gregor Beck
63c5c0eccf
s3:dbwrap: add specific dbwrap_parse_record() implementation to dbwrap_rbt
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11 14:17:55 +02:00
Gregor Beck
c5d03cbff8
s3:dbwrap: implement dbwrap_fallback_exists() with dbwrap_parse_record()
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11 14:17:55 +02:00
Gregor Beck
99fa6fa4a3
s3:dbwrap: allow NULL parser for dbwrap_parse_record()
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11 14:17:55 +02:00
Gregor Beck
f5b7d87c25
s3:dbwrap: dbwrap_parse_record() should always return -1 on "not found"
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11 14:17:55 +02:00
Gregor Beck
893805b99c
s3:dbwrap: add function dbwrap_parse_record()
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11 14:17:55 +02:00
Gregor Beck
fff09d066f
s3:dbwrap: add specific dbwrap_exists() implementation to dbwrap_rbt
2011-10-11 14:17:55 +02:00
Gregor Beck
28e4c41d5b
s3:dbwrap: factor out db_rpt_search_internal()
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11 14:17:55 +02:00
Gregor Beck
5953839b18
s3:dbwrap: add specific dbwrap_exists() implementation to dbwrap_tdb
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11 14:17:55 +02:00
Gregor Beck
87b68cea5b
s3:dbwrap: add function dbwrap_exists()
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-11 14:17:55 +02:00
Michael Adam
87f51bfa99
s3:dbwrap: add a wrapper dbwrap_traverse_read()
2011-10-11 14:17:55 +02:00
Michael Adam
8f098a635f
s3:dbwrap: change the dbwrap_traverse() wrapper to return the count in an additional parameter
2011-10-11 14:17:55 +02:00
Michael Adam
6608ba850b
s3:dbwrap: reorganize dbwrap.h some
2011-10-11 14:17:55 +02:00
Michael Adam
2d52f6f8f5
s3:dbwrap: move dbwrap_traverse() to dbwrap.c, the core of the dbrwap subsystem
2011-10-11 14:17:55 +02:00
Michael Adam
663c661b11
s3:dbwrap: move dbwrap_store() back to dbwrap.c, the core of the dbwrap subsystem
2011-10-11 14:17:55 +02:00
Michael Adam
2aa5601c0a
s3:dbwrap: move dbwrap_delete() back to dbwrap.c, the core of the dbwrap subsystem
2011-10-11 14:17:55 +02:00
Michael Adam
c3868b7488
s3:dbwrap: move dbwrap_fetch() back to dbwrap.c, the core of the dbwrap subsystem
2011-10-11 14:17:55 +02:00
Michael Adam
7a72c84ee7
s3:dbwrap: move the db_open_rbt() prototype to a new header dbwrap_rbt.h
2011-10-11 14:17:55 +02:00