From: Kern Sibbald Date: Thu, 6 Nov 2008 21:45:21 +0000 (+0000) Subject: turn off code that does not compile X-Git-Tag: Release-7.0.0~3775 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9e5e91098725bcd42f782ba19f622f40d6dacba1;p=bacula%2Fbacula turn off code that does not compile git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8000 91ce42f0-d328-0410-95d8-f526ca767f89 --- 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 } /*