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

35296 Commits

Author SHA1 Message Date
firebirds
a20ae4fa30 nightly update 2015-12-26 00:09:56 +00:00
robocop
539fd4d80e Misc. 2015-12-25 01:08:17 +00:00
firebirds
6ea7ae93d7 nightly update 2015-12-25 00:09:23 +00:00
firebirds
fc9f31ba44 nightly update 2015-12-24 00:09:39 +00:00
firebirds
9928a8396b nightly update 2015-12-23 00:10:18 +00:00
firebirds
a4b437e2a5 nightly update 2015-12-22 00:10:42 +00:00
dimitr
129f4826de Cleaned up the unused routine. 2015-12-21 09:48:12 +00:00
firebirds
04476b0a70 nightly update 2015-12-20 00:11:28 +00:00
dimitr
302cd6b401 Fixed CORE-4840: Transactions with isc_tpb_autocommit can hang the server. 2015-12-19 10:43:47 +00:00
firebirds
3bc500e57d nightly update 2015-12-19 00:09:46 +00:00
asfernandes
0e686e0c58 Avoid warnings with clang. 2015-12-18 16:34:33 +00:00
firebirds
2f36485fbe nightly update 2015-12-18 00:09:17 +00:00
aafemt
0903af542e Rollback 2015-12-17 13:44:34 +00:00
firebirds
3583fcb4e6 nightly update 2015-12-17 00:09:09 +00:00
dimitr
e39801c450 This should fix the minor error reporting regression noticed for bugs.core_3323. 2015-12-16 16:43:59 +00:00
firebirds
08a462d3cc nightly update 2015-12-16 00:10:28 +00:00
alexpeshkoff
8d436826c6 Mostly comments needed after fix for CORE-5041, also added some checks to be safer with repeated I/O 2015-12-15 16:54:23 +00:00
firebirds
d5e5d40b15 nightly update 2015-12-15 00:08:56 +00:00
aafemt
1fc4e352b0 Allow key holders to be called on client side (CORE-5043) 2015-12-14 14:07:05 +00:00
firebirds
ef33da01b9 nightly update 2015-12-14 00:09:54 +00:00
asfernandes
047175e1a5 Misc. 2015-12-13 01:02:02 +00:00
firebirds
49a7242c29 nightly update 2015-12-12 00:09:37 +00:00
aafemt
7cf4523886 Allow only one ALTER DATABASE ENCRYPT query in transaction 2015-12-11 19:46:32 +00:00
alexpeshkoff
53bc8eb2cb Postfix for CORE-5041: try to leave slow I/O mode as soon as possible 2015-12-11 13:44:49 +00:00
dimitr
6b6b605e01 Fixed possible problems with asynchronous query cancellation (recent regression). 2015-12-11 06:52:44 +00:00
firebirds
31e23b993d nightly update 2015-12-11 00:10:22 +00:00
alexpeshkoff
0891bc723d Fixed CORE-5041: Database may get corrupted after ALTER DATABASE ENCRYPT/DECRYPT issued multiple times per database open time 2015-12-10 16:58:58 +00:00
firebirds
fc04ada549 nightly update 2015-12-10 00:10:27 +00:00
aafemt
84573c0854 Perform db encryption checks at ddl time to avoid corrupting database by wrong plugin name in header 2015-12-09 14:22:13 +00:00
firebirds
5308c3d5eb nightly update 2015-12-07 00:09:51 +00:00
asfernandes
35dc963ebd Misc. 2015-12-06 22:49:24 +00:00
firebirds
8163908a98 nightly update 2015-12-05 00:08:55 +00:00
firebirds
48a328d403 nightly update 2015-12-04 00:09:50 +00:00
firebirds
0ca1dd8b1a nightly update 2015-12-02 00:12:35 +00:00
hvlad
6a41c96166 Fixed AV in CS introduced recently. Dmitry, please review. 2015-12-01 21:12:31 +00:00
dimitr
bf7951b259 Second round of my checkout/rescheduling changes. 2015-12-01 12:23:43 +00:00
firebirds
75b89cb090 nightly update 2015-11-30 00:11:54 +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
firebirds
6f608d9ab8 nightly update 2015-11-28 00:09:51 +00:00
firebirds
bac40c7cdd nightly update 2015-11-27 00:10:16 +00:00
roman-simakov
ce8d458e46 Fixed CORE-4978: Improved validation and fix of lost data pages. Thanks to Vlad for help. 2015-11-26 09:28:31 +00:00
firebirds
81a5ad0794 nightly update 2015-11-25 00:10:36 +00:00
hvlad
e74b4d384d Fixed bug CORE-5034 : At least 5 seconds delay on disconnect could happen if disconnect happens close after Event Manager initialization 2015-11-24 23:33:13 +00:00
hvlad
7f470a4aea Fixed bug CORE-5033 : File fb_user_mapping could be left in Firebird lock directory after correct shutdown of all Firebird worker processes 2015-11-24 23:17:26 +00:00
firebirds
a3763abd81 nightly update 2015-11-24 00:11:26 +00:00
firebirds
7edbefc1dd nightly update 2015-11-21 00:10:33 +00:00
hvlad
a6d615c0cd Fix one of the reason for AV in the engine (see CORE-4680, test by Pavel Zotov at 18 Nov 2015).
The race when gone attachment released database object while another attachment is initialized and uses same database object.
Could happens with shared cache (former SS) only.
2015-11-20 10:17:54 +00:00
dimitr
fb7f56077c Misc. 2015-11-20 08:47:15 +00:00
firebirds
227214a4ee nightly update 2015-11-20 00:10:22 +00:00
asfernandes
9f8062b7d1 Misc. 2015-11-19 01:12:04 +00:00
firebirds
5b680cc366 nightly update 2015-11-19 00:10:40 +00:00
asfernandes
85cae875bf Misc. 2015-11-18 01:10:08 +00:00
firebirds
bd795e29e7 nightly update 2015-11-18 00:10:08 +00:00
dimitr
ff1222c994 Fixed CORE-5220: Regression: ORDER BY clause on compound index may disable usage of other indices. 2015-11-17 10:47:59 +00:00
firebirds
f148dbf724 nightly update 2015-11-17 00:09:54 +00:00
dimitr
e6e9e45b7e Reverted back my change from Jan-2014. I cannot reproduce the original problem anymore. Also, this resolves regression CORE-5018: Non-indexed predicates may not be applied immediately after retrieval when tables are being joined. 2015-11-16 20:33:56 +00:00
dimitr
52bb948978 This should fix CORE-5016: Server crashes during GC when DELETE is executed after adding new referencing column. 2015-11-16 12:09:38 +00:00
alexpeshkoff
5e0ba8c4a2 Partially rolled back changes in my last commit in order to restore CS support 2015-11-16 10:25:16 +00:00
alexpeshkoff
051ed9dd90 Slightly optimize loading of disk crypt plugin, thanks to Dmitry Sibiryakov 2015-11-16 09:48:16 +00:00
firebirds
70244421cf nightly update 2015-11-16 00:08:39 +00:00
firebirds
2063091aec nightly update 2015-11-14 00:10:02 +00:00
firebirds
3e31e873f4 nightly update 2015-11-13 00:08:52 +00:00
firebirds
1058556c16 nightly update 2015-11-12 00:09:07 +00:00
aafemt
537209b64a A little comment 2015-11-11 16:14:39 +00:00
alexpeshkoff
ea5a949d1a Fixed CORE-4991: Key holder plugin is loaded on connect to database but not on create 2015-11-11 13:53:04 +00:00
firebirds
23bd54fb34 nightly update 2015-11-11 00:12:42 +00:00
alexpeshkoff
7ed55fbe8f Fixed CORE-4990: Database is not decrypted completely 2015-11-10 15:54:02 +00:00
asfernandes
f7257bfa1a Pass MessageMetadata with offsets to external routines make* methods. 2015-11-10 14:47:57 +00:00
firebirds
a755a4862f nightly update 2015-11-10 00:09:21 +00:00
hvlad
64e8e94c24 Correct check for maximum index depth 2015-11-09 21:39:50 +00:00
alexpeshkoff
ee96e00cb5 Fixed CORE-4999: Deadlock when trying to access database with invalid crypt key 2015-11-09 15:10:44 +00:00
firebirds
226166bd38 nightly update 2015-11-09 00:09:53 +00:00
firebirds
1cffbd5f5a nightly update 2015-11-07 00:10:03 +00:00
alexpeshkoff
3434d0aeee Fixed CORE-4969: SEC$USERS table is unavailable in case of any error in any configured user manager plugin 2015-11-06 17:10:27 +00:00
firebirds
6e8d27479f nightly update 2015-11-06 00:09:19 +00:00
firebirds
239dc5195c nightly update 2015-11-05 00:09:18 +00:00
hvlad
58248822af Removed unneeded assert, correct code a bit as Dmitry suggested 2015-11-04 07:23:58 +00:00
dimitr
647bad2d61 Fixed attachment lock usage. Minimized chances for races during database shutdown. 2015-11-04 06:06:26 +00:00
firebirds
ca02915999 nightly update 2015-11-04 00:10:22 +00:00
hvlad
af286a2520 Additional means to avoid crash\hangup when application unload fbclient.dll not calling fb_shutdown.
Fixed reason of 500 ms delay experienced by such applications (described by Arno in fb-devel).
Fixed missing assignment of thread priorities.
2015-11-03 09:12:12 +00:00
firebirds
07c83f9c53 nightly update 2015-11-03 00:09:38 +00:00
dimitr
6c4898dd76 Fixed the assertion inside the looper (req_caller was not cleared for procedure requests terminated due to exception). 2015-11-02 11:48:59 +00:00
dimitr
212faade87 Simplified the locking logic and fixed races during record backout. 2015-11-02 11:46:43 +00:00
firebirds
6a57d0dbe7 nightly update 2015-11-02 00:10:00 +00:00
firebirds
8e633e0047 nightly update 2015-10-31 00:09:44 +00:00
dimitr
7134690bf3 Fixed CORE-4984: Ordering by compound index together with a range condition gives wrong results. 2015-10-30 06:08:19 +00:00
firebirds
4abd39b71c nightly update 2015-10-30 00:10:50 +00:00
alexpeshkoff
2e52275a0b Fixed regression cause by fix for CORE-4980: restore creation of generators before privileges - one generator is required to create privileges correctly 2015-10-29 15:17:15 +00:00
dimitr
bbcc9654c3 Generic solution for CORE-4982: Server crashes during "select from procedure" if exception is thrown while backing out the current savepoint. 2015-10-29 11:18:56 +00:00
firebirds
18e351f9ee nightly update 2015-10-28 00:09:12 +00:00
alexpeshkoff
ea49fcaa52 Fixed CORE-4980: Operator REVOKE can modify rights granted to system tables at DB creation time 2015-10-27 16:48:31 +00:00
firebirds
9ce29345fb nightly update 2015-10-27 00:09:59 +00:00
dimitr
769265ee1c Misc. 2015-10-26 10:28:44 +00:00
firebirds
dfcfa1955a nightly update 2015-10-24 00:09:12 +00:00
alexpeshkoff
ff1474f789 Avoid loading same international module many times 2015-10-23 13:09:47 +00:00
robocop
a59f9653e1 I prefer explicit conversions instead of guessing what the compiler did. 2015-10-23 05:27:49 +00:00
robocop
dc5a4fdf24 Misc. 2015-10-23 03:08:47 +00:00
robocop
0b6a34bc51 Misc. 2015-10-23 03:08:22 +00:00
robocop
cfda037428 Misc. 2015-10-23 03:07:52 +00:00
robocop
2ebe9f8c3e I suppose putSInt64 author meant 9 not 5. 2015-10-23 02:48:14 +00:00
firebirds
17d5028082 nightly update 2015-10-23 00:10:04 +00:00
dimitr
b5c3e3503f Fixed regression for bugs.core_2268. 2015-10-22 17:40:49 +00:00
dimitr
4c4cc37fdc Fixed regression in the monitoring code. 2015-10-22 17:15:31 +00:00
firebirds
6469616140 nightly update 2015-10-21 00:10:15 +00:00
dimitr
d395f35235 Misc. 2015-10-20 13:07:53 +00:00
hvlad
2876da872e Fixed delays on disconnect (Classic mode only, seems Windows-specific) 2015-10-19 14:51:10 +00:00
dimitr
6d30068a4c Removed unused method (its calculations are outdated anyway). 2015-10-19 13:37:58 +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
firebirds
13e7f62d9a nightly update 2015-10-17 00:09:28 +00:00
firebirds
5ab91b67dd nightly update 2015-10-16 00:09:48 +00:00
firebirds
819fcdf508 nightly update 2015-10-15 00:08:56 +00:00
hvlad
c69db809f3 Fixed race condition when many attachments creates event session at the same moment 2015-10-14 08:31:23 +00:00
firebirds
33e3691294 nightly update 2015-10-14 00:19:51 +00:00
asfernandes
9fbee6b719 Misc. 2015-10-13 02:22:57 +00:00
firebirds
e8b4873db1 nightly update 2015-10-13 00:09:42 +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
firebirds
c777d69bda nightly update 2015-10-12 00:09:07 +00:00
firebirds
ce74e11a82 nightly update 2015-10-10 00:09:34 +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
firebirds
587ff7b89a nightly update 2015-10-09 00:09:47 +00:00
hvlad
aa8d717a7d Detect case when DLL unloaded after ExitProcess was called.
In such case all threads are killed by OS thus any synchronization is potentially dangerous and could lead to hung-up.
When this condition is detected all kind of cleanup (including engine shutdown) is skipped.
It fixed CORE-4938 and similar issues.
2015-10-08 07:41:16 +00:00
firebirds
2f7435f76a nightly update 2015-10-08 00:10:19 +00:00
asfernandes
96e6676163 Fixed CORE-4954 - The package procedure with value by default isn't called if this parameter isn't specified. 2015-10-07 18:24:36 +00:00
firebirds
b43f9d3cbb nightly update 2015-10-07 00:09:47 +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
hvlad
b7faf29697 Removed unused mutex.
Fixed tiny memory leak.
2015-10-06 10:27:10 +00:00
firebirds
f7b8139846 nightly update 2015-10-06 00:08:01 +00:00
asfernandes
224025ff7d Misc. 2015-10-05 01:25:39 +00:00
firebirds
09dd98ff56 nightly update 2015-10-04 00:09:35 +00:00
hvlad
79e9404d50 Fixed bug CORE-4952 : SuperServer could hung on database shutdown 2015-10-03 13:07:17 +00:00
firebirds
82bf3591d7 nightly update 2015-10-03 00:09:53 +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
firebirds
4aaec01eb4 nightly update 2015-10-01 00:08:34 +00:00
firebirds
e60da17ece nightly update 2015-09-30 00:09:09 +00:00
hvlad
dd0a2ddd4d More checks for b-tree page overflow during inset of new node.
Special care is taken to generate split point so that both new pages do not exceed the page_size.
Handle case when index key is added and split is propagated up to top-level page and former top-level page is a split by concurrent thread meanwhile.
Bugcheck when b-tree level become greater than MAX_LEVEL (16 currently) is replaced by isc_imp_exc error.
Validation code (aka gfix) now check correctness of level assigned to b-tree page (all pages at level should have same value and value should be decremented by one at each level down).
It should fix bug CORE-4914 and related issues.
2015-09-29 10:04:48 +00:00
firebirds
7443019a16 nightly update 2015-09-29 00:09:05 +00:00
paulbeach
bf07d4cf11 Fix an irritating warning when building packages 2015-09-28 13:26:54 +00:00
firebirds
10a82bb802 nightly update 2015-09-28 00:08:43 +00:00
asfernandes
ecdc6ea8c6 Misc. 2015-09-27 20:02:43 +00:00
firebirds
c4b2fbae61 nightly update 2015-09-25 00:08:36 +00:00
asfernandes
78f14027d6 Fixed CORE-4943 - Dialect 1 casting date to string breaks when in the presence a domain with a check constraint. 2015-09-24 16:19:18 +00:00
firebirds
562d5d9052 nightly update 2015-09-23 00:09:17 +00:00
hvlad
0ebb4a1891 Protect dbb_pc_transactions vector in concurrent environment. 2015-09-22 10:17:38 +00:00
robocop
a1349d3b44 Misc. 2015-09-22 06:00:39 +00:00
firebirds
e934f55d0a nightly update 2015-09-22 00:09:35 +00:00
firebirds
552b9be23b nightly update 2015-09-21 00:09:04 +00:00
firebirds
648e1a298f nightly update 2015-09-19 00:09:26 +00:00
firebirds
d7e956f247 nightly update 2015-09-18 00:08:27 +00:00
firebirds
54ea53d431 nightly update 2015-09-17 00:09:04 +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
firebirds
5df109189d nightly update 2015-09-16 00:08:56 +00:00
firebirds
cf291b490b nightly update 2015-09-12 00:09:04 +00:00
dimitr
125a332861 Fixed CORE-4909 re. sort/merge joins. 2015-09-11 09:57:10 +00:00
firebirds
050cffdea3 nightly update 2015-09-11 00:09:27 +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
alexpeshkoff
e64c5102f1 Postfix for CORE-4897: avoid problems with clients not understanding "data not ready" state (like IBE) 2015-09-10 14:03:35 +00:00
firebirds
16f8ff9856 nightly update 2015-09-10 00:08:19 +00:00
firebirds
f65803f35d nightly update 2015-09-07 00:09:12 +00:00
asfernandes
a6cb8cc02a Avoid code duplication. 2015-09-06 19:00:02 +00:00
asfernandes
e3946cf189 Misc. 2015-09-06 18:52:59 +00:00
firebirds
c8ac73fd3b nightly update 2015-09-05 00:09:42 +00:00
dimitr
63ec76a676 Removed incorrect assertion (CORE-4902). 2015-09-04 21:14:28 +00:00
firebirds
cf94ca3e74 nightly update 2015-09-04 00:09:15 +00:00
hvlad
00d91aa91a Postfix for CORE-4904 2015-09-03 21:14:27 +00:00
firebirds
fd084798a0 nightly update 2015-09-03 00:09:38 +00:00
asfernandes
64f82e1682 Improvement CORE-4923 - Add ability to track domains rename in DDL triggers. 2015-09-02 16:24:31 +00:00
firebirds
e40817b59d nightly update 2015-09-02 00:09:46 +00:00
dimitr
b0630cb0d3 Fixed CORE-4921: Predicate IS [NOT] DISTINCT FROM is not pushed into unions/aggregates thus causing sub-optimal plans. 2015-09-01 20:51:30 +00:00
asfernandes
ce80938834 Fixed possible similar problems to CORE-4497. 2015-09-01 15:55:10 +00:00
dimitr
f8726cc1e4 Ugly fix for MS compilers. 2015-09-01 10:50:33 +00:00
dimitr
6f7185ec14 Core support for 32KB page size. Disabled so far. 2015-09-01 07:33:36 +00:00
dimitr
02120b05d1 Put some order to the page size macros and their usage. Changed the default page size to 8KB. 2015-09-01 07:24:10 +00:00
firebirds
8f4304fcbb nightly update 2015-09-01 00:08:04 +00:00
dimitr
fe24642bc2 Fixed invariants handling in independent subqueries (seems to be related to CORE-4497). 2015-08-31 15:11:06 +00:00
firebirds
49abb07117 nightly update 2015-08-29 00:09:15 +00:00
asfernandes
bdb050aa0e Fixed blr print for blr_pid2. 2015-08-28 15:59:41 +00:00
firebirds
0977bad41b nightly update 2015-08-26 00:10:45 +00:00
asfernandes
35397f8c05 Fixed CORE-4870 - SET COUNT ON: issuing UPDATE on view which was created WITH CHECK OPTION produces wrong number of affected rows (doubled ?). 2015-08-25 15:22:40 +00:00
firebirds
b543944d93 nightly update 2015-08-22 00:08:42 +00:00
firebirds
a6d6811b7b nightly update 2015-08-21 00:08:57 +00:00
dimitr
fce30a63fa Fixed the hash function (broken since the very beginning). 2015-08-20 11:23:48 +00:00
firebirds
6dcb3d5258 nightly update 2015-08-20 00:08:59 +00:00
firebirds
65f225e65a nightly update 2015-08-19 00:09:32 +00:00
alexpeshkoff
ef78fedd46 Fixed CORE-4899: GFIX -online: message "IProvider::attachDatabase failed when loading mapping cache" appears in Classic (only) if access uses remote protocol 2015-08-18 15:04:04 +00:00
dimitr
606d459a63 Totally misc. 2015-08-18 10:00:52 +00:00
firebirds
87fe254d2d nightly update 2015-08-17 00:08:28 +00:00
dimitr
6131cf1216 Fixed the hash-join part of CORE-4909: MERGE / HASH JOINs produce incorrect results when VARCHAR join keys differ only by trailing spaces. 2015-08-16 15:47:30 +00:00
asfernandes
6cc8feaf64 Misc. 2015-08-16 13:53:57 +00:00
firebirds
0d048d3ad5 nightly update 2015-08-15 00:08:50 +00:00
alexpeshkoff
69cc0b7473 Fixed CORE-4897: FBSVCMGR can produce broken log when restoring database 2015-08-14 14:41:05 +00:00
firebirds
3a8ce3873f nightly update 2015-08-14 00:09:10 +00:00
robocop
4037576b9e Misc. 2015-08-13 04:09:55 +00:00
firebirds
e281b1dc02 nightly update 2015-08-13 00:07:54 +00:00
hvlad
363c0fae9b Fixed bug CORE-4889 : FBSVCMGR with action_trace_start prevents in 3.0 SuperServer from connecting using local protocol 2015-08-12 08:58:41 +00:00
firebirds
c941a3fab5 nightly update 2015-08-12 00:08:57 +00:00
firebirds
e440313a8b nightly update 2015-08-10 14:20:55 +00:00
hvlad
a59b64d610 Fixed bug CORE-4904 : Index corruption when add data in long-key-indexed field 2015-08-09 20:57:19 +00:00
hvlad
affce3a0a9 Misc 2015-08-06 11:49:07 +00:00
asfernandes
9446f81cdb Improvement CORE-4898 - Speed up function creation and loading when there are many functions in the database. 2015-08-03 01:41:34 +00:00