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

33748 Commits

Author SHA1 Message Date
dimitr
dcb8c8fd86 Front ported to trunk. 2012-12-21 14:11:45 +00:00
dimitr
cbe0f3cc54 Front ported to trunk. 2012-12-21 10:11:00 +00:00
firebirds
83da946eeb nightly update 2012-12-21 03:24:35 +00:00
asfernandes
7e1ca71911 Misc. 2012-12-21 01:49:16 +00:00
alexpeshkoff
c4ae450de4 Re-read attachment from lock after taking lock in attachment handler 2012-12-20 12:18:52 +00:00
firebirds
ee95ad71f5 nightly update 2012-12-20 03:25:42 +00:00
hvlad
8d81d2717d Add lost PAGE_LOCK_RE_POST call. 2012-12-19 13:51:48 +00:00
firebirds
312569eaf6 nightly update 2012-12-19 08:25:58 +00:00
asfernandes
9b72aa53bc Misc. 2012-12-19 00:56:57 +00:00
alexpeshkoff
b3f9759960 Take locks in AST before building tdbb
Fixed assertion in CCH_exclusive_attachment 
Rolled back my changes required to let cancelOperation() enter engine after shutdown
Better locks' history in SyncObject
2012-12-18 13:54:18 +00:00
dimitr
fc139b16d5 Fixed rescheduling logic that was broken during the RSB refactoring. 2012-12-17 17:33:45 +00:00
dimitr
48c5eeff37 Simplest possible solution for the incorrect assertion I put recently. 2012-12-17 17:11:16 +00:00
dimitr
d85bbd6c87 Fixed (mostly) the Windows build. 2012-12-15 08:07:39 +00:00
firebirds
1ac3dac135 nightly update 2012-12-15 03:44:27 +00:00
alexpeshkoff
c7454a49a5 Work in progress (committed due to SF upgrade). Checked only on SS.
1. Frontported fix for CORE-3935 and CORE-3993.
2. Added debugging support for mutexes and rwlocks in Vulcan style.
Unfortunately after last 'svn up' build asserts in JrdStatement:71.
2012-12-14 17:59:02 +00:00
firebirds
8023fcd2f6 nightly update 2012-12-14 03:36:43 +00:00
dimitr
1a4c0c5808 1) Encapsulated the remaining external looper calls inside a SEH block. It allows to catch async exceptions coming while result set is being fetched. No performance penalty has been noticed.
2) Slightly refactored the looper call chain to avoid code duplication.
3) Fixed CORE-4010: Fetch cannot be subsequently interrupted via DELETE FROM MON$STATEMENTS.
2012-12-13 18:31:42 +00:00
firebirds
c4b020954b nightly update 2012-12-13 03:39:31 +00:00
dimitr
68aabe6352 Misc. 2012-12-12 08:32:56 +00:00
firebirds
bcae61362d nightly update 2012-12-11 03:39:13 +00:00
dimitr
1b5f6cd7b2 Avoid garbage to be written to the shadow's header page. It does not really hurt, but anyway. 2012-12-10 05:50:52 +00:00
firebirds
bdffc32a44 nightly update 2012-12-10 03:39:51 +00:00
firebirds
76e8718c4a nightly update 2012-12-07 03:44:08 +00:00
hvlad
7012311f4d Front ported fix for CORE-3034 (Bugcheсk 300 (can't find shared latch)) 2012-12-06 14:51:58 +00:00
dimitr
3971e49b30 Another bunch of changes for CORE-4004: Sometimes long-running operations cannot be interrupted by asynchronous shutdown / cancellation requests. The looper nodes should never ignore req_unwind and transform it to something else.
Review and testing would be appreciated, especially in regard to EXE_assignment.
2012-12-06 12:09:11 +00:00
dimitr
bc1edae943 Added the initialization timestamp to shmem regions. Modified the lock print output to report this timestamp. This is useful to know as all the counters inside the lock table are incremental and a baseline is required to make any time-based estimations. 2012-12-06 08:13:45 +00:00
firebirds
cd2ed4050f nightly update 2012-12-06 03:35:59 +00:00
firebirds
deba66e62e nightly update 2012-12-05 03:40:57 +00:00
asfernandes
1cfac2b169 Refactor dsql_fld, TypeClause and ParameterClause. Eliminate some warnings. 2012-12-05 02:07:37 +00:00
firebirds
366942944e nightly update 2012-12-04 03:50:23 +00:00
dimitr
4ff4290f11 Front-ported bugfixes related to CORE-4004: Sometimes long-running operations cannot be interrupted by asynchronous shutdown / cancellation requests. 2012-12-03 11:21:00 +00:00
firebirds
503e3d02c2 nightly update 2012-12-02 03:48:09 +00:00
asfernandes
9727c2685b Misc. 2012-12-02 01:45:18 +00:00
firebirds
0fa9246455 nightly update 2012-12-01 03:37:42 +00:00
hvlad
0e766ce3d5 Fixed bug CORE-4002 : Error message "index unexpectedly deleted" in database trigger on commit transaction 2012-11-30 08:01:34 +00:00
firebirds
fc69cbc59e nightly update 2012-11-30 03:47:02 +00:00
asfernandes
9ef7f71bf2 Fixed gsec's display command. 2012-11-29 14:53:33 +00:00
firebirds
5d98ab508c nightly update 2012-11-28 04:02:31 +00:00
dimitr
a1d9ca6726 A few additional adjustments for CORE-1295: Bad optimization of queries with DB_KEY. 2012-11-27 17:36:13 +00:00
dimitr
b07ef45ae6 A few additional adjustments for CORE-1295: Bad optimization of queries with DB_KEY. 2012-11-27 17:22:42 +00:00
hvlad
b1e465c84a Make BPB correctly 2012-11-27 11:16:21 +00:00
hvlad
670587f63b Use InlineStorage to avoid (costly) memory allocation. 2012-11-27 11:08:15 +00:00
firebirds
38922b467e nightly update 2012-11-23 03:49:33 +00:00
dimitr
361c5a3b38 Implemented CORE-3994: Improve the limbo transactions scan at the end of the sweep.
Also, fixed the mistake in the refactored code (see the first change in the diff).
2012-11-22 17:17:59 +00:00
asfernandes
d574d43aa4 Fixed CORE-3992 - No records in the table rdb$dependencies for ddl trigger. 2012-11-22 13:55:31 +00:00
firebirds
e4b2014b1f nightly update 2012-11-22 03:49:04 +00:00
firebirds
d568f9e733 nightly update 2012-11-21 03:43:57 +00:00
hvlad
6afc531f86 Make sure relation's flags are loaded from disk before analyze them 2012-11-20 12:23:53 +00:00
dimitr
60d8b9fd37 Additional fixes for CORE-3981 (Sub-optimal predicate checking while selecting from a view) that also resolve the regression CORE-3986 (GSEC couldn't change user password after fix for CORE-3981). 2012-11-20 10:39:37 +00:00
hvlad
3d33908684 Fixed bug CORE-3988 : Engine crashed when trace or audit is active 2012-11-20 10:00:47 +00:00
firebirds
33cf778554 nightly update 2012-11-20 03:46:51 +00:00
firebirds
30b577f23f nightly update 2012-11-18 03:42:43 +00:00
firebirds
093e89063d nightly update 2012-11-17 03:40:35 +00:00
firebirds
d4d2453f39 nightly update 2012-11-15 03:43:00 +00:00
dimitr
41925536c7 Fixed CORE-3978: Invalid transaction counters may be reported in firebird.log during the sweep. 2012-11-13 09:42:11 +00:00
firebirds
5e894f52fd nightly update 2012-11-12 03:52:57 +00:00
dimitr
a85629a9de Fixed CORE-3977: DELETE FROM MON$STATEMENTS does not interrupt a longish fetch. 2012-11-11 15:33:18 +00:00
firebirds
f8f1f597ac nightly update 2012-11-10 03:58:12 +00:00
firebirds
d0a55a4569 nightly update 2012-11-09 04:11:18 +00:00
firebirds
b97802a7b9 nightly update 2012-11-08 03:42:55 +00:00
firebirds
d68f3815ad nightly update 2012-11-07 03:58:35 +00:00
firebirds
8c6f825be0 nightly update 2012-11-06 04:07:39 +00:00
firebirds
de658f11ae nightly update 2012-11-05 03:53:08 +00:00
asfernandes
6a0a6f2d13 Misc. 2012-11-05 01:14:04 +00:00
firebirds
1a2c7e72c2 nightly update 2012-11-04 03:47:54 +00:00
asfernandes
c0b11f52ff Improvement CORE-3972 - Allow the selection of SQL_INT64, SQL_DATE and SQL_TIME in dialect 1.
Fix for CORE-3964 - It is not possible to create a ddl-trigger with "any DDL statement" clause.
2012-11-04 00:17:50 +00:00
hvlad
4875c235a7 Fixed Windows build after recent Alex's changes 2012-11-03 10:55:16 +00:00
firebirds
450dac18a3 nightly update 2012-11-03 04:44:16 +00:00
alexpeshkoff
57e5936d44 Avoid use of namespace Jrd in common file isc_sync 2012-11-02 16:27:12 +00:00
firebirds
d320b2134f nightly update 2012-11-02 04:16:44 +00:00
dimitr
92e6b2e543 Fixed CORE-3967: subselect with reference to outer select fails. 2012-11-01 16:19:39 +00:00
alexpeshkoff
4ca6e669fe 1. Fixed CORE-3786: Firebird 2.5.1 Hangs on MacOSX 10.7 (Lion) on DB create after reboot.
2. Cleanup: avoid functional style in stuff exception.
2012-11-01 11:40:18 +00:00
firebirds
93359c675a nightly update 2012-11-01 03:55:00 +00:00
dimitr
3dd0507b96 Wiped out the code that never worked due to the missing support for native quads. 2012-11-01 01:36:27 +00:00
dimitr
657511babe Wiped out the legacy attachment level counters in favor of the already existing runtime statistics. Introduced a record lock counter (more to follow). 2012-11-01 00:16:55 +00:00
dimitr
5847f3860f Avoid a sweep pass for temporary tables, as the sweeper always sees those tables as empty, but even setting them up as empty has a non-zero cost. 2012-10-31 14:20:24 +00:00
firebirds
d26133ad56 nightly update 2012-10-19 03:36:52 +00:00
asfernandes
a1b17ce0a5 Small cleanup on COMMENT ON constants. 2012-10-18 15:49:15 +00:00
firebirds
bdad650f37 nightly update 2012-10-16 03:29:44 +00:00
asfernandes
b7d87a6cfa Misc. 2012-10-16 00:51:42 +00:00
firebirds
2acc2008d3 nightly update 2012-10-13 03:33:10 +00:00
firebirds
6cf6d47398 nightly update 2012-10-12 03:32:10 +00:00
firebirds
a0d62cfbf7 nightly update 2012-10-09 03:46:28 +00:00
firebirds
13e347eb20 nightly update 2012-10-06 03:34:14 +00:00
firebirds
7065d6c01b nightly update 2012-10-05 03:30:49 +00:00
asfernandes
e8b26fd5c7 Fixed assertion when subquery is used in group by. 2012-10-04 17:19:09 +00:00
firebirds
1fb8a84da5 nightly update 2012-10-04 03:32:56 +00:00
firebirds
04b6ad7b7c nightly update 2012-10-02 03:38:46 +00:00
firebirds
126c58192c nightly update 2012-09-30 03:25:16 +00:00
robocop
a4c260dbdc Misc. 2012-09-30 01:50:41 +00:00
firebirds
fd752b2167 nightly update 2012-09-29 03:27:06 +00:00
hvlad
40606c9bca Fixed bug CORE-3940 : I/O error during "GetFileSize" operation for file XXXX 2012-09-28 08:13:23 +00:00
firebirds
44aeefbfd8 nightly update 2012-09-28 03:32:42 +00:00
asfernandes
c2956055e5 Fixed CORE-3941 - Memory alignment problem with unique expression index. 2012-09-27 15:29:24 +00:00
firebirds
79ad8bf65b nightly update 2012-09-25 03:39:07 +00:00
asfernandes
5218168e06 Fixed a problem when the default collation is changed. 2012-09-24 16:14:48 +00:00
hvlad
513ce5e1ce Additional patch for improvement CORE-3362 : Cursors should ignore changes made by the same statement.
- SubQueryNode (sub-select's) and RseBoolNode (exists(), in\any\all) now knows if it is a part of some outer select (ForNode) or it is a standalone statement. 
- VIO\get_undo_data was reworked to better fit undo-log implementation, corresponding changes in VIO_chase_record_version also done
- AV in VIO\get_undo_data was fixed
2012-09-24 14:26:33 +00:00
firebirds
6134c33314 nightly update 2012-09-24 03:33:00 +00:00
asfernandes
d684e4a2f5 Fixed assert reported by Vlad more some related problem. 2012-09-24 01:40:44 +00:00
firebirds
94aaa1a208 nightly update 2012-09-21 04:17:13 +00:00
firebirds
34fb7ff70a nightly update 2012-09-19 03:27:12 +00:00
asfernandes
81609a77d7 Cleanup. 2012-09-18 16:01:58 +00:00
firebirds
2dfbdef005 nightly update 2012-09-17 03:37:41 +00:00
asfernandes
0769a10d48 Misc. 2012-09-16 16:09:24 +00:00
firebirds
60595d9e39 nightly update 2012-09-14 03:38:21 +00:00
dimitr
898ce1ea4a Fixed the data type mistake. 2012-09-13 03:49:08 +00:00
firebirds
7f41f693c0 nightly update 2012-09-13 03:41:28 +00:00
dimitr
9f2a992078 Implemented:
CORE-2780: Include client library version and protocol version in mon$attachments
CORE-2187: Return the Hostname in mon$attachments
CORE-3779: Report OS user name in MON$ATTACHMENTS
+ some cleanup.
2012-09-12 07:45:51 +00:00
dimitr
594bae44d2 Fixed CORE-3924: Bugcheck 291 (cannot find record back version) if GTT is modified concurrently using at least one read-committed read-only transaction. 2012-09-12 05:26:38 +00:00
firebirds
3f8f8f4d7c nightly update 2012-09-12 03:30:50 +00:00
dimitr
1cf6466280 Implemented CORE-675: Add missing entries to RDB$TYPES. 2012-09-11 15:17:04 +00:00
firebirds
536b307136 nightly update 2012-09-09 03:26:45 +00:00
asfernandes
6820b50572 Fixed CORE-3754 - SIMILAR TO works wrongly.
Improvement CORE-3919 - Improve SIMILAR TO performance.
2012-09-09 01:47:17 +00:00
firebirds
dffb12debf nightly update 2012-09-06 03:27:40 +00:00
hvlad
ca6f6e7324 Fixed bug CORE-3916 : gfix & "Index x is corrupt (missing entries) in table ..." all indexes on large tables 2012-09-05 19:32:34 +00:00
firebirds
2971dd2553 nightly update 2012-09-05 03:27:17 +00:00
hvlad
b636315561 Improvement CORE-3656 : Support for sweep information in Trace API.
Fixed case when sweep cleaned up relation with all records deleted but corresponding event was missed in trace log.
2012-09-04 11:35:16 +00:00
alexpeshkoff
ed5815cf35 Complete fix to make trace list service work correctly 2012-09-04 08:21:37 +00:00
alexpeshkoff
8326359184 We have one more service w/o parameters 2012-09-04 07:10:35 +00:00
firebirds
d0d5961812 nightly update 2012-09-01 03:26:11 +00:00
firebirds
61bbb5f65a nightly update 2012-08-30 03:31:58 +00:00
asfernandes
e44d7fd688 Fixed CORE-3638 - Introduce FR_CA_CI_AI collation and change FR_FR and FR_FR_CI_AI to be identical to FR_CA and FR_CA_CI_AI respectively. 2012-08-29 15:43:57 +00:00
firebirds
d90999eed9 nightly update 2012-08-29 03:29:29 +00:00
dimitr
5f917a04ce Minor cleanup and simplification. 2012-08-28 18:19:09 +00:00
asfernandes
57ddc9e81e Fixed three related bugs:
CORE-1188 - Select Starting with :Param (Empty string) doesn't work if using index with many fields
CORE-3052 - Wrong resultset
CORE-3239 - UTF8 UNICODE_CI collate can not be used in compound index
2012-08-28 15:40:18 +00:00
firebirds
9c33151de6 nightly update 2012-08-28 03:35:26 +00:00
asfernandes
22fef2016a Feature CORE-3291 - New pseudocolumn to get number of transaction that created this record version. 2012-08-28 01:02:56 +00:00
firebirds
a9e1c24c79 nightly update 2012-08-22 03:32:38 +00:00
firebirds
1f85fbe816 nightly update 2012-08-21 03:36:19 +00:00
firebirds
b497df38b4 nightly update 2012-08-19 03:30:20 +00:00
robocop
b235c00282 Misc. 2012-08-18 08:52:03 +00:00
firebirds
2a9259e319 nightly update 2012-08-17 04:31:48 +00:00
dimitr
7e3c4075bc Corrected the arguments. Luckily, their binary values are the same. 2012-08-15 15:24:49 +00:00
asfernandes
ba9f68d5d0 Misc. 2012-08-13 01:20:32 +00:00
firebirds
ea37034f58 nightly update 2012-08-11 04:22:11 +00:00
firebirds
c2dcf03977 nightly update 2012-08-09 04:26:23 +00:00
firebirds
daf0059a85 nightly update 2012-08-08 04:27:19 +00:00
dimitr
61baa568c2 Fixed the refactoring error spotted by Claudio. 2012-08-08 03:31:59 +00:00
robocop
f601bbdb8b Misc. 2012-08-08 02:20:30 +00:00
firebirds
7ce7542fec nightly update 2012-08-03 04:22:19 +00:00
hvlad
9124f5e188 Front ported improvements
CORE-3656 : Support for sweep information in Trace API, and
CORE-2668 : Write note into log when automatic sweep is started
Also per-table stats is enabled at transaction level (see thread_db::bumpRelStats)
2012-08-02 08:55:21 +00:00
firebirds
4437c319af nightly update 2012-08-01 04:29:49 +00:00
firebirds
dfecba54a6 nightly update 2012-07-30 04:21:51 +00:00
dimitr
14afc20e04 Propagate the solution for fld_counter to both metadata caches. This fixes the regression of not being able to select from the MON$ tables in Dialect 1. 2012-07-29 10:35:13 +00:00
firebirds
39c77e7774 nightly update 2012-07-27 04:23:20 +00:00
asfernandes
84147eb443 Fixed CORE-3820 - RDB$TYPES contain duplicate character sets. 2012-07-27 01:48:03 +00:00
asfernandes
fd10a7eb22 Fixed CORE-3883 - Ambiguous field name in the trigger when it does a select from the table. 2012-07-26 16:20:09 +00:00
firebirds
1717597d6f nightly update 2012-07-25 04:27:32 +00:00
firebirds
ac0d767865 nightly update 2012-07-24 04:28:46 +00:00
hvlad
3ec82bdabf Fixed bug CORE-3895 : High memory usage when PSQL code SELECT's from stored procedure which modified some data 2012-07-23 09:48:23 +00:00
firebirds
1e4738925e nightly update 2012-07-23 04:33:47 +00:00
firebirds
c25f9deb50 nightly update 2012-07-20 04:28:25 +00:00
alexpeshkoff
561ef68248 Misc diags 2012-07-19 07:49:24 +00:00
firebirds
40628c4151 nightly update 2012-07-19 04:26:27 +00:00
firebirds
b16d4bd0e6 nightly update 2012-07-17 04:19:36 +00:00
firebirds
ce3e46fb97 nightly update 2012-07-16 04:23:28 +00:00
dimitr
3be26e0844 Calculate the index statistics correctly for very large tables. 2012-07-15 12:43:32 +00:00
firebirds
daea4c4b61 nightly update 2012-07-13 04:30:40 +00:00
firebirds
e867c6f170 nightly update 2012-07-12 04:29:39 +00:00
firebirds
d0afb7e16d nightly update 2012-07-11 04:34:13 +00:00
asfernandes
b31f4d9b94 Frontport UUID fixes (CORE-3238 and CORE-3887). 2012-07-11 01:56:37 +00:00
dimitr
0361052c41 Avoid a small memory leak. 2012-07-10 16:08:01 +00:00
firebirds
b636e3a04a nightly update 2012-06-30 04:29:35 +00:00
alexpeshkoff
9bf5e60dfa Anti isc_random pass 2012-06-29 12:44:41 +00:00
alexpeshkoff
d244ba5e9d Removed unused var - thanks to Adriano 2012-06-29 07:13:34 +00:00
firebirds
3b115bc3fc nightly update 2012-06-29 04:23:39 +00:00
alexpeshkoff
64a89b73a0 Improvement CORE-3588: More detail in message "wrong page type" 2012-06-28 11:46:21 +00:00
firebirds
d8a6543f7f nightly update 2012-06-28 04:21:30 +00:00
firebirds
3183982da7 nightly update 2012-06-27 04:25:09 +00:00
alexpeshkoff
0fc893a4e1 Better names for API functions 2012-06-26 13:43:26 +00:00
firebirds
b68a03e791 nightly update 2012-06-26 04:24:27 +00:00
alexpeshkoff
c5cd59fb06 Fixed an issue, found by Claudio 2012-06-25 13:11:11 +00:00
firebirds
5a30a2d2f7 nightly update 2012-06-25 04:21:47 +00:00
firebirds
4b1b502f2c nightly update 2012-06-23 04:29:24 +00:00
firebirds
36e9bb519f nightly update 2012-06-22 04:27:21 +00:00
dimitr
42a4c93b97 1) Removed the no longer actual "parent lock" concept from both the lock and event managers.
2) Reworked the lock manager synchronization: added the RAII mutex holders and avoided dirty reads for the shared memory.
3) Encapsulated lck_length into the Lock class + small related  refactoring.
4) Front ported recent fixes from the v2.x branches.
5) Misc cleanup.
2012-06-21 15:37:38 +00:00
firebirds
e6123933db nightly update 2012-06-21 04:27:30 +00:00
alexpeshkoff
477e14a820 Implemented CORE-2666: Make it possible to use API to do remote backups/restores 2012-06-20 11:47:30 +00:00
firebirds
60fa59b2e7 nightly update 2012-06-20 04:25:17 +00:00
dimitr
baf67f019e Misc. 2012-06-19 18:28:13 +00:00
dimitr
bd5226b0e5 Misc. 2012-06-19 18:27:51 +00:00
firebirds
85a254cc85 nightly update 2012-06-19 03:30:37 +00:00
firebirds
c799e9d8db nightly update 2012-06-15 03:33:32 +00:00
firebirds
ac9d11020a nightly update 2012-06-14 03:28:11 +00:00
firebirds
adc098fc77 nightly update 2012-06-13 03:32:45 +00:00
firebirds
ef98c8eaa1 nightly update 2012-06-12 03:27:12 +00:00
firebirds
b455e9a70a nightly update 2012-06-08 03:29:12 +00:00
firebirds
53419d61cf nightly update 2012-06-07 03:37:17 +00:00
alexpeshkoff
ec99aff55f Implemented CORE-3594: Include expected and actual string length into error message 2012-06-06 11:06:31 +00:00
alexpeshkoff
9af385d031 Some changes in CryptoManager, discussed with Vlad and Adriano 2012-06-05 10:06:31 +00:00
firebirds
afa8068b91 nightly update 2012-06-05 03:30:58 +00:00
firebirds
b2a6551324 nightly update 2012-06-04 03:22:32 +00:00
asfernandes
cf6e699698 Misc. 2012-06-03 15:43:59 +00:00
firebirds
12d3953367 nightly update 2012-06-03 03:22:49 +00:00
asfernandes
1dcad0fe90 Misc. 2012-06-03 03:00:24 +00:00
firebirds
f8e93c1272 nightly update 2012-06-02 03:21:48 +00:00
hvlad
0e029d34eb Follow Alex changes, small correction and cleanup 2012-06-01 07:09:42 +00:00
firebirds
4046d92b5b nightly update 2012-06-01 03:21:00 +00:00
alexpeshkoff
2a01e4bcf9 Implemented CORE-3861: Make it possible to encrypt database
Also some cleanups, the most important are:                                                                                                                   
- meaningful ctor on Jrd::Lock, helping to avoid code dup                                                                                                     
- avoid unneeded h-file dependencies, making boot build engine dependent
2012-05-31 16:53:42 +00:00
firebirds
ed2cf92cb0 nightly update 2012-05-30 03:21:45 +00:00