]>
git.sur5r.net Git - bacula/bacula/log
Marco van Wieringen [Tue, 6 Apr 2010 20:29:50 +0000 (22:29 +0200)]
Fix error introduced when refactoring some of the code.
Marco van Wieringen [Tue, 6 Apr 2010 18:09:22 +0000 (20:09 +0200)]
Lets uniformly call a INGconn a dbconn in all Ingres functions.
Marco van Wieringen [Tue, 6 Apr 2010 13:41:21 +0000 (15:41 +0200)]
Regenerated Ingres code using esqlcc
Marco van Wieringen [Tue, 6 Apr 2010 13:35:18 +0000 (15:35 +0200)]
Replace INGcheck with EXEC SQL WHENEVER SQLERROR GOTO construction used by Ingres embedded SQL.
Marco van Wieringen [Mon, 5 Apr 2010 20:22:50 +0000 (22:22 +0200)]
Fix typo
Marco van Wieringen [Mon, 5 Apr 2010 20:11:51 +0000 (22:11 +0200)]
Added empty db_check_backend_thread_safe to dbi backend.
Marco van Wieringen [Mon, 5 Apr 2010 19:57:58 +0000 (21:57 +0200)]
Fix some typos and some forgotten things. Now the code at least compiles for all backends.
Marco van Wieringen [Mon, 5 Apr 2010 16:53:04 +0000 (18:53 +0200)]
Make sql_insert_id a atomic function which executes the insert query and when that succeeds
retrieves the id the database used for storing the inserted record. Some databases want
this to be atomic (e.g. without a COMMIT in between.) Coding wise this is also much cleaner.
Marco van Wieringen [Mon, 5 Apr 2010 15:15:17 +0000 (17:15 +0200)]
Drop have_insert_id in mdb as its always true for all backends.
Marco van Wieringen [Mon, 5 Apr 2010 14:28:09 +0000 (16:28 +0200)]
Fix typo
Marco van Wieringen [Mon, 5 Apr 2010 13:47:34 +0000 (15:47 +0200)]
Lets claim we also did something on it.
Marco van Wieringen [Mon, 5 Apr 2010 13:42:24 +0000 (15:42 +0200)]
Lets call it COMMIT and not END as that seems to be the counterpart of BEGIN for transactions.
Updated Ingres lock queries to only start a transaction as the current SQL is not valid Ingres SQL.
Marco van Wieringen [Mon, 5 Apr 2010 11:46:59 +0000 (13:46 +0200)]
Fix typos
Marco van Wieringen [Mon, 5 Apr 2010 11:38:12 +0000 (13:38 +0200)]
Add support for transactions. Normal operations for Ingres is to make things one big transaction.
The old code never commits anything and as such you loose all state on exit of the dird.
Now we always commit our work unless we are in a transaction.
Marco van Wieringen [Mon, 5 Apr 2010 08:35:23 +0000 (10:35 +0200)]
First version of Ingres Batch Insert code.
Marco van Wieringen [Sun, 4 Apr 2010 20:40:14 +0000 (22:40 +0200)]
Fix typo in sql.
Marco van Wieringen [Sun, 4 Apr 2010 18:14:00 +0000 (20:14 +0200)]
Fix logic error introduced when implementing multi thread support, overwriting rowcount
with INGcheck value lets use a seperate variable.
Marco van Wieringen [Sun, 4 Apr 2010 17:46:24 +0000 (19:46 +0200)]
First attempt at making things multi-threaded and make it possible to
have multiple connections to the database without having the dreaded
ERR=E_LQ002E The 'execute immediate' query has been issued outside of a DBMS session.
This compiles but seems to give some problems so into the debugger it is.
Marco van Wieringen [Sun, 4 Apr 2010 11:46:25 +0000 (13:46 +0200)]
Need an extra lib for dynamic linking against Ingres.
Marco van Wieringen [Sun, 4 Apr 2010 10:55:22 +0000 (12:55 +0200)]
Use -lq.1 -lcompat.1 as shared libraries instead of linking with -lingres which is a static library.
Also need to change generated code of esqlcc a bit to get things to link with the IIsqlca function.
Marco van Wieringen [Sun, 4 Apr 2010 10:00:02 +0000 (12:00 +0200)]
Fix typo
Marco van Wieringen [Sun, 4 Apr 2010 08:21:47 +0000 (10:21 +0200)]
As we have a multithreaded application let tell that to esqlcc so it can optimize for that.
Marco van Wieringen [Sat, 3 Apr 2010 21:02:23 +0000 (23:02 +0200)]
Regenerated myingres.c from myingres.sc
Marco van Wieringen [Sat, 3 Apr 2010 21:00:29 +0000 (23:00 +0200)]
Lets close the session based on session_id so we close the session we want to close not just an active connection.
Marco van Wieringen [Sat, 3 Apr 2010 20:49:22 +0000 (22:49 +0200)]
Lets rewrite the query at a higher level then we see the new query in the debugging and
we only have to do the rewrite logic once.
Marco van Wieringen [Sat, 3 Apr 2010 20:18:55 +0000 (22:18 +0200)]
Creating a database as an other user and giving grants doesn't seem to work for Ingres.
Strange so for now create everything using the -u${db_user} option. This is something that
needs to be investigated as it should be possible to have an different owner of the database.
Marco van Wieringen [Sat, 3 Apr 2010 20:09:52 +0000 (22:09 +0200)]
Create user in the right database for Ingres.
Marco van Wieringen [Sat, 3 Apr 2010 19:16:50 +0000 (21:16 +0200)]
Do all Ingres operations as the user invoking the script just as for all
the other databases. The grant script will make sure the db_user will have
the proper access rights to the database tables and sequences.
Marco van Wieringen [Sat, 3 Apr 2010 18:58:07 +0000 (20:58 +0200)]
Fix username argument to sql for Ingres grants.
Marco van Wieringen [Sat, 3 Apr 2010 18:55:13 +0000 (20:55 +0200)]
Make the Ingres grant script work.
Marco van Wieringen [Sat, 3 Apr 2010 14:37:25 +0000 (16:37 +0200)]
Lets not use PostgreSQL macros for sizes.
Marco van Wieringen [Sat, 3 Apr 2010 14:10:53 +0000 (16:10 +0200)]
Implement my_ingres_currval function.
Marco van Wieringen [Fri, 2 Apr 2010 19:50:48 +0000 (21:50 +0200)]
Lets fix calling INGfreeDescriptor before INGfreeINGresult as INGfreeINGresult free the whole INGresult struct
and the descriptor is part of that.
Marco van Wieringen [Fri, 2 Apr 2010 15:49:39 +0000 (17:49 +0200)]
Let INGgetisnull return an bool
Marco van Wieringen [Fri, 2 Apr 2010 15:47:25 +0000 (17:47 +0200)]
Fix typo
Marco van Wieringen [Fri, 2 Apr 2010 15:44:03 +0000 (17:44 +0200)]
Add header to both myingres.sc and myingres.sh
Lets include cats.h as we use the B_DB struct now in myingres.c
Fixed missing argument to INGgetDescriptor
Regenerate myingres.c and myingres.h
Marco van Wieringen [Fri, 2 Apr 2010 15:37:28 +0000 (17:37 +0200)]
Fix typo
Marco van Wieringen [Fri, 2 Apr 2010 08:03:10 +0000 (10:03 +0200)]
Regenerated code for Ingres using esqlcc
Marco van Wieringen [Fri, 2 Apr 2010 07:23:10 +0000 (09:23 +0200)]
Added limit_filter which rewrites queries which use the LIMIT functions into
something Ingres can understand. Removed all static functions from the myingres.sh
file as they are no longer an exported interface (we can always put that back when
we have the need to export more functions). Some other rewrites of the code
to make it somewhat cleaner.
Marco van Wieringen [Thu, 1 Apr 2010 20:27:13 +0000 (22:27 +0200)]
Use bstrdup and use a goto for one exit from function.
Marco van Wieringen [Thu, 1 Apr 2010 18:55:55 +0000 (20:55 +0200)]
Make some static functions inline as they only are called once and are there mostly to describe a functional method.
Marco van Wieringen [Thu, 1 Apr 2010 18:19:45 +0000 (20:19 +0200)]
Name all function arguments query so we can use stmt as our internal variable everywhere.
Make some functions static which are not referenced anywhere else so we keep our namespace clean.
Marco van Wieringen [Thu, 1 Apr 2010 17:26:33 +0000 (19:26 +0200)]
Drop Ingres specific versions of queries with #ifdefs
Stefan Reddig [Thu, 1 Apr 2010 16:04:58 +0000 (18:04 +0200)]
fixed syntax LIMIT/NULL behavior/improved tests
Marco van Wieringen [Thu, 8 Apr 2010 16:59:22 +0000 (18:59 +0200)]
Remove line added as Eric seems to have done so also.
Marco van Wieringen [Thu, 8 Apr 2010 16:57:46 +0000 (18:57 +0200)]
Merge branch 'Branch-5.0' of ssh://marcovw@bacula.git.sourceforge.net/gitroot/bacula/bacula into Branch-5.0
Marco van Wieringen [Thu, 8 Apr 2010 16:56:54 +0000 (18:56 +0200)]
Added missing grant for postgresql as reported by Martin Simmons
Eric Bollengier [Thu, 8 Apr 2010 16:47:41 +0000 (18:47 +0200)]
fix grant_postgresql_privileges doesn t grant permissions on jobhisto_jobid_seq
Eric Bollengier [Wed, 7 Apr 2010 09:18:53 +0000 (11:18 +0200)]
Add lock position info to volume manager
Eric Bollengier [Tue, 6 Apr 2010 19:41:31 +0000 (21:41 +0200)]
Permits to use lock manager with file/line from outside
Kern Sibbald [Mon, 5 Apr 2010 13:44:08 +0000 (15:44 +0200)]
Fix compiler warning
Kern Sibbald [Sat, 3 Apr 2010 18:56:42 +0000 (20:56 +0200)]
Rework SD mount.c locking again
Kern Sibbald [Sat, 3 Apr 2010 18:55:57 +0000 (20:55 +0200)]
Replace ASSERT in block.c with fail Job
Kern Sibbald [Sat, 3 Apr 2010 18:54:39 +0000 (20:54 +0200)]
Use uint32_t for max_concurrent_jobs
Marco van Wieringen [Wed, 31 Mar 2010 20:02:59 +0000 (22:02 +0200)]
Change Ingres drop script so we can run any form of regression and a drop really drops the content of the database
so we can run make_ingres_tables again.
Eric Bollengier [Mon, 29 Mar 2010 07:52:34 +0000 (09:52 +0200)]
Use file and line for rwlock and lmgr in db_lock()
Eric Bollengier [Mon, 29 Mar 2010 07:51:16 +0000 (09:51 +0200)]
Add File and Line info to rw_lock for lmgr
Marco van Wieringen [Sat, 27 Mar 2010 22:03:41 +0000 (23:03 +0100)]
Merge branch 'Branch-5.0' of ssh://marcovw@bacula.git.sourceforge.net/gitroot/bacula/bacula into Branch-5.0
Marco van Wieringen [Sat, 27 Mar 2010 22:02:17 +0000 (23:02 +0100)]
Fix database locking calling db_lock and returning from function without calling db_unlock.
Kern Sibbald [Sat, 27 Mar 2010 16:25:21 +0000 (17:25 +0100)]
Tweak rebuild configure
Kern Sibbald [Sat, 27 Mar 2010 16:23:58 +0000 (17:23 +0100)]
Tweak Ingres ./configure
Marco van Wieringen [Fri, 26 Mar 2010 21:01:58 +0000 (22:01 +0100)]
Add missing db_unlock to bvfs_update_cache.
Marco van Wieringen [Fri, 26 Mar 2010 20:09:36 +0000 (21:09 +0100)]
Fix array dimensions due to adding Ingres to certain sql arrays.
Eric Bollengier [Mon, 22 Mar 2010 15:33:31 +0000 (16:33 +0100)]
Update configure
Eric Bollengier [Mon, 22 Mar 2010 15:30:19 +0000 (16:30 +0100)]
Fix #1532 about permission on binaries
Eric Bollengier [Mon, 15 Mar 2010 08:42:41 +0000 (09:42 +0100)]
bweb: fix fileindex for deleted items
Eric Bollengier [Sun, 14 Mar 2010 10:12:42 +0000 (11:12 +0100)]
bweb: add filter on fileindex to bfileview
Scott Barninger [Sun, 14 Mar 2010 18:55:02 +0000 (14:55 -0400)]
Allow users to build bat without static QT if desired.
Scott Barninger [Sun, 14 Mar 2010 18:13:00 +0000 (14:13 -0400)]
Fix for qt mkspecs location on Fedora 12.
Marco van Wieringen [Fri, 12 Mar 2010 20:34:28 +0000 (21:34 +0100)]
Run ingres template code through esqlcc.
Stefan Reddig [Fri, 12 Mar 2010 17:25:42 +0000 (18:25 +0100)]
another small fix
Stefan Reddig [Fri, 12 Mar 2010 17:14:55 +0000 (18:14 +0100)]
escaping,typo fix
Stefan Reddig [Fri, 12 Mar 2010 16:29:59 +0000 (17:29 +0100)]
syntax fix, test improved, empty results fixed
Eric Bollengier [Fri, 12 Mar 2010 10:23:37 +0000 (11:23 +0100)]
Fix #1527 about deadlock during migration
Kern Sibbald [Wed, 10 Mar 2010 14:36:43 +0000 (15:36 +0100)]
Another fix for OpenSSLv1
Kern Sibbald [Wed, 10 Mar 2010 11:53:22 +0000 (12:53 +0100)]
Tweak: rebuild configure
Kern Sibbald [Wed, 10 Mar 2010 11:48:32 +0000 (12:48 +0100)]
Add -lrt to Solaris links
Kern Sibbald [Tue, 9 Mar 2010 21:55:09 +0000 (22:55 +0100)]
Fix tls.c for OpenSSLv1
Eric Bollengier [Mon, 8 Mar 2010 13:09:21 +0000 (14:09 +0100)]
Fix #1511 when trying to insert more than 50.000 directories in bvfs
Kern Sibbald [Mon, 8 Mar 2010 12:53:37 +0000 (13:53 +0100)]
Fix plugin load not to stop if one plugin bad -- pointed out by James
Scott Barninger [Sun, 7 Mar 2010 15:33:48 +0000 (10:33 -0500)]
Remove --without-qwt from configure statement.
Eric Bollengier [Sun, 7 Mar 2010 13:53:36 +0000 (14:53 +0100)]
Fix bug in bvfs_update function, should work much better now
Kern Sibbald [Sat, 6 Mar 2010 16:02:35 +0000 (17:02 +0100)]
Second correct fix to bug #1524 verify fails after adding or removing files
Kern Sibbald [Sat, 6 Mar 2010 12:54:10 +0000 (13:54 +0100)]
Fix bug #1524 verify fails after adding or removing files
Scott Barninger [Sat, 6 Mar 2010 12:31:47 +0000 (07:31 -0500)]
Fix bug 1523.
Kern Sibbald [Sat, 6 Mar 2010 10:01:34 +0000 (11:01 +0100)]
Apply fix suggested by Andreas in bug #1502 for mediaview column sort problem
Marco van Wieringen [Sat, 6 Mar 2010 09:39:20 +0000 (10:39 +0100)]
Merge branch 'Branch-5.0' of ssh://marcovw@bacula.git.sourceforge.net/gitroot/bacula/bacula into Branch-5.0
Marco van Wieringen [Sat, 6 Mar 2010 09:37:11 +0000 (10:37 +0100)]
Lets not generate the ingres code automatically when the .sc or .sh files changes as it seems
these files get outdated on some systems and then this rule kicks in on systems that don't have
the esqlcc ingres compiler installed.
Frank Sweetser [Thu, 4 Mar 2010 21:03:15 +0000 (22:03 +0100)]
Fix CentOS detection in regression get-os script
Kern Sibbald [Fri, 5 Mar 2010 18:21:34 +0000 (19:21 +0100)]
Create subroutines to add exclusion for plugins
Dirk H Bartley [Fri, 5 Mar 2010 04:30:30 +0000 (23:30 -0500)]
This adds sql debugging to these classes that Eric wrote.
Dirk H Bartley [Fri, 5 Mar 2010 04:26:41 +0000 (23:26 -0500)]
This is a 1/2 fix of the issue. It allows for the sorting of the two non graphic columns, but still does not allow for sorting the graphic columns. The issue is with last. By setting the sort value, you are setting the value on the last. To experiment with what I mean, use the set background that I have commented out in this commit.
Kern Sibbald [Wed, 3 Mar 2010 19:47:27 +0000 (20:47 +0100)]
Merge branch 'Branch-5.0' of ssh://bacula.git.sourceforge.net/gitroot/bacula/bacula into Branch-5.0
Kern Sibbald [Wed, 3 Mar 2010 19:46:39 +0000 (20:46 +0100)]
Tweak rebuild configure
Kern Sibbald [Wed, 3 Mar 2010 19:46:20 +0000 (20:46 +0100)]
Fix configure.in
Marco van Wieringen [Wed, 3 Mar 2010 17:37:37 +0000 (18:37 +0100)]
Lets generate ingres code by calling esqlcc and not esqlc as we want c++ code.
Replaced some strncpy by bstrncpy calls.
Add dependency in Makefile of generated code on it source file.
Kern Sibbald [Wed, 3 Mar 2010 13:38:40 +0000 (14:38 +0100)]
Tweak rebuild configure
Kern Sibbald [Wed, 3 Mar 2010 13:34:56 +0000 (14:34 +0100)]
Fix OpenSSL 1.x problem in crypto.c on Fedora 12
Eric Bollengier [Wed, 3 Mar 2010 08:11:58 +0000 (09:11 +0100)]
Display AllowCompress warning message only if compression used in FileSet
Marco van Wieringen [Mon, 1 Mar 2010 19:00:37 +0000 (20:00 +0100)]
Added comment on dbi backend needing a recent version of libdbi from CVS as the version currently
released 0.8.3 wont work for compiling the code.