8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-29 06:43:03 +01:00
Commit Graph

473 Commits

Author SHA1 Message Date
Dmitry Yemanov
f2d0b64ba2 Misc adjustments after CORE-5232 and more encapsulation for the Lock
class.
2016-05-10 10:44:30 +03:00
Dmitry Yemanov
174c252e0c Major refactoring of savepoints. Beware of possible regressions. 2016-05-06 20:16:14 +03:00
Dmitry Yemanov
34399c1bf4 Bugfix CORE-5222: SELECT WITH LOCK may raise unexpected update conflict
errors under concurrent load.
2016-04-30 17:12:01 +03:00
Dmitry Yemanov
f9c3f81cb9 CORE-5182: Inconsistent effects of subsequent statement execution if
failing during record refetch.
2016-04-04 09:45:28 +03:00
83845251c5 Added VIO prefix as requested 2016-03-29 11:52:25 +02:00
hvlad
9ae426a757 Please MSVC14:
-add space before XXXFORMAT macros to not confuse it with user-defined literals

-use existing snprintf

This should fix part of the issues at CORE-5099 and CORE-5120
2016-03-17 12:33:26 +02:00
aafemt
27395a0831 Savepoints refactoring that fixes CORE-4701, CORE-4424 and CORE-4483 2016-03-02 15:33:16 +00:00
asfernandes
6259b1b1e0 Misc. 2016-02-15 02:53:24 +00:00
hvlad
6af5a2f894 Simplest fix for bug CORE-5110 : False PK\FK violation could be reported when attachment used isc_dpb_no_garbage_collect flag 2016-02-12 13:13:11 +00:00
dimitr
dc7aad88ed 1) Slightly refactored recheduling and checkout logic.
2) Re-enabled checkouts in PIO routines, this resolves CORE-4179. Windows build may be broken, please validate.
3) Implemented faster reaction on asynchronous cancellation/shutdown requests.
4) Avoided locking dbb_sync in AST. This change also solves races during massive attachment shutdown.
2015-11-29 15:12:31 +00:00
dimitr
212faade87 Simplified the locking logic and fixed races during record backout. 2015-11-02 11:46:43 +00:00
dimitr
4e4d8002e5 CORE-4965: Extend the transaction ID space beyond 2^32 transactions. Initially developed in the v2.5 custom branch, then reworked and now merged into v3.0. 2015-10-19 13:32:02 +00:00
asfernandes
9fbee6b719 Misc. 2015-10-13 02:22:57 +00:00
alexpeshkoff
139331c7e3 Enhanced memory leaks search - changed FB_NEW to FB_NEW_POOL,
plain new to FB_NEW, making allocated with it blocks tagged with file/line.
Make related code slightly better readable.
2015-10-12 14:26:00 +00:00
alexpeshkoff
bcf2c0eb10 Implemented CORE-4955: Define a new option for DROP SHADOW command to leave the shadow file in the filesystem 2015-10-09 13:30:45 +00:00
dimitr
c0c083e423 Fixed setting RDB$PACKAGE_BODY_SOURCE to NULL. 2015-10-06 12:10:44 +00:00
dimitr
2a1d6e246a Use simpler solution for CORE-4928. Let's not open new gates for direct table modifications. 2015-10-06 10:58:56 +00:00
asfernandes
9769499937 Fixed CORE-4950 - Statistics for any system index can not be updated/recalculated. 2015-10-02 17:30:09 +00:00
asfernandes
ecdc6ea8c6 Misc. 2015-09-27 20:02:43 +00:00
robocop
a1349d3b44 Misc. 2015-09-22 06:00:39 +00:00
hvlad
f7e248ca63 Improvement CORE-4935 : Increase performance of backout of dead record version (or undo of just created primary record version) when backversions chain is too long
Improvement CORE-4936 : Reduce internal contention in background garbage collector
Other small improvements: 
- garbage collector\sweep now skip record header if transaction is below OIT - it allows to reduce number of page fetches
- missed points to gather RECORD_FRAGMENT_READS and RECORD_BACKVERSION_READS statistics
2015-09-16 21:16:13 +00:00
asfernandes
10d3c38b68 Fixed CORE-4928 - It is not possible to save the connection information in the ON CONNECT trigger, if the connection is created by the gbak. 2015-09-10 17:06:47 +00:00
dimitr
606d459a63 Totally misc. 2015-08-18 10:00:52 +00:00
hvlad
4751f3a33c Wrong check, thanks to Claudio 2015-07-03 08:05:18 +00:00
asfernandes
ae30b29011 Misc. 2015-06-29 01:02:52 +00:00
hvlad
2e78b5a7e0 Feature CORE-4707 : Implement ability to validate tables and indices online 2015-06-19 12:07:41 +00:00
dimitr
8744b80766 1) Reverted a more complex refetch logic introduced recently to its original state.
2) Protected against an undo record being used in VIO modify/erase/writelock routines.
3) Avoided false deadlocks in read-committed transactions.
This should cure CORE-4369, CORE-4561 and CORE-4618 at once.
2015-06-02 10:43:16 +00:00
asfernandes
adf1fd737d Misc. 2015-05-02 03:54:03 +00:00
alexpeshkoff
164e2cbcba Check for source nullifying a bit more accurate 2015-04-27 13:15:44 +00:00
alexpeshkoff
852c4366b2 Make it possible for DBA only to NULLify sources 2015-04-24 17:47:29 +00:00
alexpeshkoff
512f0d944e Write-protect one more system relation 2015-04-20 11:42:17 +00:00
alexpeshkoff
0afc4289de Postfix for CORE-4731 2015-04-16 11:58:19 +00:00
alexpeshkoff
18c902de46 Fixed CORE-4715: Restore of shadowed database fails using -k ("restore without shadow") switch 2015-04-15 14:01:24 +00:00
alexpeshkoff
d42402d0b9 Fixed CORE-4731: Prohibit an ability to issue DML or DDL statements on RDB$ tables 2015-04-15 13:19:18 +00:00
asfernandes
2828aee4ab Fixed CORE-4733 - Command "Alter table <T> alter TYPE <C> <DOMAIN_WITH_NOT_NULL" does not verifies data in column <C> and makes incorrect assignments in <C> to ZERO / JULIAN_DATE / ASCII(0) for types INT, TIMESTAMP and VARCHAR. 2015-04-05 02:24:40 +00:00
asfernandes
b50abdb04c Optimize check of column NULLs when changing field or domain to NOT NULL. 2015-04-05 02:24:26 +00:00
alexpeshkoff
f96129ceef Fixes assertion in DFW, caused by uninitialized descriptor 2015-04-01 15:10:06 +00:00
asfernandes
336456d140 Misc. 2015-03-28 00:36:04 +00:00
alexpeshkoff
16768b177d Be more consistent putting IStatus into fast inline wrapper. Also some syntax sugar as suggested by Dmitry 2015-03-27 17:51:19 +00:00
robocop
7873b1f983 Misc. 2015-03-24 01:30:20 +00:00
alexpeshkoff
6c5f9b77fe Cleanup - avoid automatic type conversion in FbLocalStatus as suggested by Claudio 2015-03-23 11:06:51 +00:00
alexpeshkoff
c4c9daf132 Avoid limits on size of status vector in engine. Ensure that status is always clean on entry to interface methods. 2015-03-20 18:02:30 +00:00
hvlad
1332ff27ac Fixed bug CORE-4713 : "BLOB not found" error at rollback after insert into table with expression index 2015-03-18 17:26:56 +00:00
asfernandes
bd1094a671 Misc. 2015-03-17 21:44:55 +00:00
robocop
746d47f4f2 Misc. 2015-03-13 15:30:23 +00:00
alexpeshkoff
7fed9ff78c cleanup 2015-03-05 16:18:46 +00:00
hvlad
39a137e913 Use attachment's or relation's pool instead of dbb_permanent where it is more suitable.
It fixed memory leak from dbb_permanent (CORE-4683)
2015-02-22 11:02:49 +00:00
dimitr
c6f6557d5e Misc. 2015-02-19 15:53:42 +00:00
dimitr
6ae3e2cbaf 1) Fixed CORE-4383: Index and BLOBs garbage collection doesn't work for update_in_place().
2) Applied the same approach to temporary GC records.
3) Refactored the Record class to avoid reallocations, to improve encapsulation and to simplify the code.
4) Slightly refactored UndoItem to isolate its logic from the Record class.
5) Reduced the in-memory size of the undo log.
6) Slightly better alternative to the legacy NULL reporting for outer joins.
7) Minor fixes and adjustments in BufferedStream.
2015-02-19 14:15:00 +00:00
hvlad
79b760b4ac Memory leak (CORE-4683) 2015-02-16 13:57:28 +00:00