8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-30 09:23:09 +01:00
Commit Graph

339 Commits

Author SHA1 Message Date
dimitr
d542f5ac88 Fixed the races leading to a crash during dbb finalization. Thanks to Adriano for assistance. 2011-11-01 04:02:59 +00:00
asfernandes
906ea4729e Misc. 2011-10-27 01:04:14 +00:00
dimitr
444d5302e1 Refactored the tdbb initialization, especially in AST and BG threads.
Replaced dbb_use_count with a list of active requests (to be utilized later).
Misc cleanup.
2011-10-18 18:02:57 +00:00
asfernandes
eb5689ef0e Misc. 2011-10-07 02:33:02 +00:00
hvlad
ca1a67992c Return explicit sign of active transaction from VIO_get_current() - it makes logic more clear in check_duplicates() and allows to clear transient lock error from status vector and not propagate up to the callers.
Cleanup : removed my old disabled code (checking for old and new values) and restored original code in check_duplicates().
2011-10-03 11:27:46 +00:00
hvlad
dc4abc05e4 Protect system attachments list with dedicated sync object. It prevents deadlocks with common sync object on process shutdown. 2011-10-02 10:19:06 +00:00
hvlad
fb36296224 Port forward fix for bug CORE-3610 : Can insert DUPLICATE keys in UNIQUE index 2011-09-29 12:34:07 +00:00
dimitr
b100b395eb Being a little bit more paranoid doesn't hurt. 2011-09-22 18:15:21 +00:00
dimitr
031339406c Methinks it's more correct from the scoping POV. 2011-09-21 17:49:49 +00:00
dimitr
809fba5ec9 Reworked the garbage collector thread:
- a single try-catch block looks better
- cross-helping between GC and CW/CR threads is agreed to be a bad idea
- replaced ATT_disable_gc_notify with a check inside notify_garbage_collector()
- made the logic more straightforward
Careful review would be appreciated.
2011-09-21 07:59:15 +00:00
hvlad
652200448a Port forward fix for bug CORE-3557 : AV in engine when preparing query against dropping table 2011-07-16 10:41:27 +00:00
asfernandes
47489fa71b Misc. 2011-06-26 18:48:00 +00:00
robocop
1c250c02eb Misc. 2011-06-25 03:40:18 +00:00
hvlad
f12c243e1c Improvement CORE-3537 : There is no need to undo changes made in GTT created with ON COMMIT DELETE ROWS option when transaction is rolled back. 2011-06-24 12:54:46 +00:00
hvlad
f2aaa12ce5 Improvement CORE-3536 : Garbage collection in GTT is unnecessary delayed by active transactions in another attachments 2011-06-24 12:49:08 +00:00
hvlad
7c68e15a0f Delete deferred work when savepoint is cleaned up after failure even if no records was modified. Else DFW task will be repeated at commit making system tables logically inconsistent. 2011-06-24 12:03:32 +00:00
robocop
5ad96271e6 Misc. 2011-06-24 06:34:16 +00:00
hvlad
81cec16f83 Fixed leak of SysAttachment instance. Noted by Claudio. 2011-06-13 11:09:19 +00:00
asfernandes
add3d8ddef Misc. 2011-06-08 01:55:13 +00:00
hvlad
945a1bdbf4 Fixed bug CORE-3515 : Index corruption. Validation put "missing entries" message into firebird.log 2011-06-05 08:15:33 +00:00
dimitr
df893a708d Better (I hope) solution for CORE-3058: New generators are created with wrong value when more than 32K generators was previously created. It also resolves the [temporary] inability to restore generator values. 2011-06-01 16:58:55 +00:00
asfernandes
2c9dd7e1ff Misc. 2011-05-28 02:05:45 +00:00
hvlad
99c9c8e2db Enabled background threads (garbage collector and cache writer).
Introduced special kind of system attachments used in this threads and show its activity in monitoring.
2011-05-27 07:57:16 +00:00
asfernandes
3ce54d2eda Misc. 2011-05-11 01:18:28 +00:00
hvlad
fef1f49c94 Shared page cache implementation 2011-05-09 10:15:19 +00:00
dimitr
4b3033c013 Better locality of allocations. This also fixes a tiny memory leak in SuperServer. 2011-04-05 05:36:05 +00:00
robocop
82403a5621 Misc, style, etc. 2011-04-02 04:45:26 +00:00
asfernandes
e4658d76c3 Misc 2011-03-20 16:24:46 +00:00
hvlad
58a55cc813 Improvement CORE-3399 : Allow write operations to temporary tables in read only transactions 2011-03-19 13:10:51 +00:00
dimitr
d68affa114 More complex fix for CORE-3374: Server may crash or corrupt data if SELECT WITH LOCK is issued against records not in the latest format. It involves upgrading the record to the current format, like UPDATE does. 2011-03-05 17:33:01 +00:00
asfernandes
72b7e83082 Misc 2011-02-26 19:05:09 +00:00
asfernandes
87ec1ad31c The (bad) definition of fb_assert cause this code to not work in clang. It's a surprive if it works in MSVC. 2011-02-25 15:28:10 +00:00
hvlad
07e245ab1b Implement improvement CORE-3362 : Cursors should ignore changes made by the same statement 2011-02-25 12:26:57 +00:00
dimitr
7a405a4eea Fixed CORE-3058: New generators are created with wrong value when more than 32K generators was previously created. 2011-02-17 06:05:16 +00:00
alexpeshkoff
f89ac854ef Getting ready to use 32 (not 31) page and transaction numbers 2011-01-21 17:55:04 +00:00
asfernandes
5c7e5ce634 Misc 2010-10-22 01:24:31 +00:00
hvlad
f223086fdd Corrections for new build system. Work in progress... 2010-10-18 17:23:36 +00:00
dimitr
af23581244 Front ported my recent changes. I'm unable to verify the compilation now, sorry. 2010-10-14 05:27:08 +00:00
alexpeshkoff
e05c1a825f Moved some more .h-files to common from jrd as Vlad suggested 2010-10-13 10:39:52 +00:00
alexpeshkoff
83d6a2f88c Restored a lot of changes, rolled back by me unintentionally 2010-10-12 11:36:51 +00:00
alexpeshkoff
2dc25a44bb OSRI and new posix build 2010-10-12 08:02:57 +00:00
dimitr
34dd100554 Fixed CORE-3137: Partial rollback is possible for a selectable procedure modifying data. 2010-09-18 06:52:46 +00:00
asfernandes
96cd57ba83 Better error reporting and adjustments 2010-07-29 00:36:31 +00:00
asfernandes
36f092fe0e Improvement CORE-3085 - Add clause ALTER DOMAIN <name> [NOT] NULL 2010-07-28 16:14:20 +00:00
dimitr
60763936ac Fixed the second part of the problem described in CORE-2933: Very slow execution of a script that creates a lot of metadata. 2010-05-17 09:58:45 +00:00
asfernandes
d6e4b53865 Misc 2010-05-08 02:25:58 +00:00
skidder
c84d62d82e Fix CORE-2988. Concurrent transaction number not reported if lock timeout occurs 2010-05-04 17:29:44 +00:00
asfernandes
4763533669 Refactor jrd_req into JrdStatement (shared part) and jrd_req (execution of a statement).
Fixed some bugs found in the way.
2010-04-18 22:19:11 +00:00
alexpeshkoff
88b8a40a04 1. Cleaned up most of SUPERSERVER usage.
SUPERSERVER has 4 different meanings in our code:
- this is milticlient server (replaced with Config::getMultiClientServer())
- use shared data cache (replaced with Config::getSharedCache())
- use shared metadata cache (replaced with macro SHARED_METADATA_CACHE)
- database are NOT shared between processes (replaced with getSharedDatabase())

2. Use fb_smp_server as both superclassic and classic binary on posix
(xinetd autodecection is done).

3. Small posix build cleanup.
2010-04-15 14:40:27 +00:00
asfernandes
e1ba33a2ae Fix problem of the system transaction storing pointer to random or already deallocated attachment. Full build (or kind of) required. 2010-04-02 21:48:15 +00:00