From 6db6545d7539366296d8a7b50e7f77094a07d69b Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 6 Nov 2008 21:45:21 +0000 Subject: [PATCH] turn off code that does not compile git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8000 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/cats/sql.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/bacula/src/cats/sql.c b/bacula/src/cats/sql.c index 41b4b7fece..5ce1aeb695 100644 --- a/bacula/src/cats/sql.c +++ b/bacula/src/cats/sql.c @@ -311,7 +311,9 @@ char *db_strerror(B_DB *mdb) return mdb->errmsg; } -static void update_lock_dbg(B_DB *mdb) { +static void update_lock_dbg(B_DB *mdb) +{ +#ifdef xxx if (mdb->allow_transactions) { /* batch connection */ return; } @@ -321,9 +323,12 @@ static void update_lock_dbg(B_DB *mdb) { _db_lock_recurse_count++; _db_lock_time = (utime_t) time(NULL); _db_lock_threadid = pthread_self(); +#endif } -static void update_unlock_dbg(B_DB *mdb) { +static void update_unlock_dbg(B_DB *mdb) +{ +#ifdef xxx if (mdb->allow_transactions) { /* batch connection */ return; } @@ -334,6 +339,7 @@ static void update_unlock_dbg(B_DB *mdb) { if (!_db_lock_recurse_count) { memset(&_db_lock_threadid, 0, sizeof(_db_lock_threadid)); } +#endif } /* -- 2.39.5