[exim-cvs] DEBUG: db functions

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Exim Git Commits Mailing List
Dátum:  
Címzett: exim-cvs
Tárgy: [exim-cvs] DEBUG: db functions
Gitweb: https://git.exim.org/exim.git/commitdiff/6b1bf31e4494f50bab891890aefcc9a9161eba01
Commit:     6b1bf31e4494f50bab891890aefcc9a9161eba01
Parent:     251b9eb4698f569864c35127ddb7c309b92ccecb
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Fri Aug 31 22:41:02 2018 +0100
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Fri Aug 31 22:41:02 2018 +0100


    DEBUG: db functions
---
 src/src/dbfn.c | 4 ++++
 1 file changed, 4 insertions(+)


diff --git a/src/src/dbfn.c b/src/src/dbfn.c
index ec87eae..25c1a3f 100644
--- a/src/src/dbfn.c
+++ b/src/src/dbfn.c
@@ -382,6 +382,8 @@ dbfn_delete(open_db *dbblock, const uschar *key)
int klen = Ustrlen(key) + 1;
uschar * key_copy = store_get(klen);

+DEBUG(D_hints_lookup) debug_printf_indent("dbfn_delete: key=%s\n", key);
+
 memcpy(key_copy, key, klen);
 EXIM_DATUM key_datum;
 EXIM_DATUM_INIT(key_datum);         /* Some DBM libraries require clearing */
@@ -415,6 +417,8 @@ EXIM_DATUM key_datum, value_datum;
 uschar *yield;
 value_datum = value_datum;    /* dummy; not all db libraries use this */


+DEBUG(D_hints_lookup) debug_printf_indent("dbfn_scan\n");
+
/* Some dbm require an initialization */

if (start) EXIM_DBCREATE_CURSOR(dbblock->dbptr, cursor);