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

47170 Commits

Author SHA1 Message Date
firebirds
f586ec80fe nightly update 2016-01-29 00:08:49 +00:00
alexpeshkoff
2c6e4b7d10 Fixed CORE-5088: Segfault when 'gstat -h' is closing 2016-01-28 17:00:08 +00:00
firebirds
346c6d2c04 nightly update 2016-01-28 00:10:41 +00:00
hvlad
714e6c2eaf Remove LCK_idx_reserve introduced with 64-bit transaction ID.
Restore original logic in BTR_next_index (wait for tx lock when index build is in progress). 
Use irt_repeat::irt_root to store high 32 bit of tra_num. 
It also fixed deadlock related with LCK_idx_reserve lock (reported privately).
2016-01-27 11:11:38 +00:00
firebirds
efc65175f8 nightly update 2016-01-26 00:08:27 +00:00
alexpeshkoff
ffa487a1bc Implemented CORE-5083: Provide method to correcty set offsets in implemented by user IMessageMetadata 2016-01-25 18:34:27 +00:00
hvlad
8fc0267026 Cleanup 2016-01-25 14:17:50 +00:00
alexpeshkoff
b0edf7875e Postfix for CORE-5082: reorganized sources according to Vlad request 2016-01-25 13:52:16 +00:00
firebirds
1d7aa7c7bd nightly update 2016-01-25 00:09:57 +00:00
dimitr
99ad42ab82 This should fix the races while accessing the relation statistics inside dbb_stats. Reads/writes/fetches/marks are incremented (CCH) and read (INF) unprotected, as it's crash safe and read skews are acceptable. Other counters (both global and relation wise) are protected with a mutex. They're incremented on demand based on the attachment counters (via diffs). While being there, cleaned up the currently unused performance counters. 2016-01-24 21:14:18 +00:00
dimitr
dd738c7f80 Reverted back to the single-pass algorithm used in v2.x. This should work around the issue with non-zero-timeout shutdown in SC. 2016-01-24 21:02:31 +00:00
alexpeshkoff
eacbf41269 Fixed CORE-5082: Server does not validate correctness of user/password pair provided in EXECUTE STATEMENT operator 2016-01-24 17:58:28 +00:00
alexpeshkoff
315332944b Use correct error code 2016-01-24 17:53:12 +00:00
alexpeshkoff
2d74f74ee0 Drop old wrong comment 2016-01-24 17:51:43 +00:00
firebirds
6bed521926 nightly update 2016-01-22 00:09:23 +00:00
hvlad
5b2f99456d Fixed bug CORE-5078 : "Invalid BLOB ID" error 2016-01-21 11:00:07 +00:00
robocop
af3cb7700a Misc. 2016-01-21 00:25:55 +00:00
robocop
e7a69b2932 Typo. 2016-01-21 00:25:23 +00:00
firebirds
7521b16b53 nightly update 2016-01-21 00:10:02 +00:00
hvlad
69afe4b976 Fixed bug CORE-5075 : Triger on DISCONNECT with dynamic SQL (ES 'insert into ...'): 1) does not work in 3.0
Also, log exception happens in ON DISCONNECT trigger.
2016-01-20 10:05:14 +00:00
firebirds
7542d3037a nightly update 2016-01-19 00:09:32 +00:00
alexpeshkoff
b09b956eab Fixed CORE-5077: ISQL does not show encryption status of database 2016-01-18 17:30:37 +00:00
firebirds
af0a7b2add nightly update 2016-01-18 00:10:14 +00:00
asfernandes
052af7edd4 Misc. 2016-01-17 01:46:26 +00:00
asfernandes
fdca3fdf72 Misc. 2016-01-17 01:10:45 +00:00
firebirds
c14a3355c9 nightly update 2016-01-15 00:09:22 +00:00
hvlad
d82e043042 Fixed crash reason (see CORE-5075).
Error on disconnect requires more analyzing.
2016-01-14 23:09:01 +00:00
firebirds
c3eb0903c2 nightly update 2016-01-14 00:10:20 +00:00
dimitr
051e6f6b4c Minor correction. 2016-01-13 10:08:31 +00:00
hvlad
737b5f81ac IPv6 address could contain percent sign inside, therefore make sure error string not used as vfprintf format string by gds__log().
See also comments at CORE-2493.
2016-01-13 09:35:23 +00:00
firebirds
bb5e328b12 nightly update 2016-01-12 00:09:16 +00:00
alexpeshkoff
a99381312f Fixed CORE-4996: Need some SECURITY2.FDB --> SECURITY3.FDB upgrade feature, placed new files into linux package 2016-01-11 14:23:35 +00:00
hvlad
9e5c39acac Addition to the patch for CORE-2493.
Always ask for numeric form of service name
2016-01-11 13:46:41 +00:00
alexpeshkoff
626b8cdfa3 Fixed CORE-4996: Need some SECURITY2.FDB --> SECURITY3.FDB upgrade feature 2016-01-11 13:38:36 +00:00
firebirds
bd8a101090 nightly update 2016-01-11 00:09:49 +00:00
hvlad
2820ede430 Improvement CORE-2493 : Append the IP address of the remote host to error messages in firebird.log for TCP connections 2016-01-10 14:20:47 +00:00
firebirds
d3d02e43ae nightly update 2016-01-07 00:09:51 +00:00
asfernandes
dcdec26c77 Revert to the bad (that works) commit for CORE-5062. It's difficult to work when both the original architects and the users do bad things in relation to CHAR and MBCS. 2016-01-06 18:20:39 +00:00
asfernandes
e438f4d256 Fix for messages with FB_INTL_CHAR and FB_INTL_VARCHAR macros. 2016-01-06 18:20:25 +00:00
firebirds
ddb1da8d89 nightly update 2016-01-04 00:09:22 +00:00
dimitr
6d30e899f5 Fixed (hopefully) my last commit re. plan output. 2016-01-03 20:20:56 +00:00
asfernandes
210920d3b6 Fixed CORE-5062 - CHAR_TO_UUID on column with index throws expression evaluation not supported Human readable UUID argument for CHAR_TO_UUID must be of exact length 36. 2016-01-03 15:50:38 +00:00
firebirds
7e71b2c290 nightly update 2016-01-03 00:10:14 +00:00
alexpeshkoff
aa55704f0f Fixed CORE-5060: Cannot CREATE VIEW that selects from a system table, despite having all grants 2016-01-02 14:41:17 +00:00
dimitr
24b7a7982c Fixed CORE-5061: ISQL plan output is unexpectedly truncated after a query is simplified to become shorter. 2016-01-02 12:08:31 +00:00
alexpeshkoff
f4defcd2bc Postfix for CORE-5056: better error reporting, thanks to Claudio 2016-01-02 11:41:50 +00:00
hvlad
241059f1d8 Improvement CORE-5063 : Make "show database" command to show numbers of used and free pages in database 2016-01-02 11:37:06 +00:00
hvlad
9165f8b596 New feature CORE-1538 : Add an option to isc_database_info to return the number of free pages in a database 2016-01-02 11:28:53 +00:00
asfernandes
30e729d7c5 Revert fix for CORE-5062 for better investigation. 2016-01-02 01:45:46 +00:00
asfernandes
7638ad530a Fixed CORE-5062 - CHAR_TO_UUID on column with index throws expression evaluation not supported Human readable UUID argument for CHAR_TO_UUID must be of exact length 36. 2016-01-02 01:04:30 +00:00
firebirds
6e6c32bf68 nightly update 2015-12-31 00:09:29 +00:00
alexpeshkoff
7b5b0ca838 Fixed CORE-5056: Write-lock of database file is cleared ("W" disappears from output of lsof <db_name>) when remote machine obtains DB header running "fbsvcmgr <remote_host>/port:service_mgr action_db_stats <remote_dbname>" 2015-12-30 15:16:43 +00:00
firebirds
515f5e5408 nightly update 2015-12-30 00:12:03 +00:00
dimitr
3b04931ea0 Fixed CORE-4708: Content of MON$EXPLAINED_PLAN in MON$STATEMENTS is truncated if exceeds the 32KB limit. 2015-12-29 19:00:05 +00:00
dimitr
8db7decfbd Tag the shmem session clumplets with username. This allows much faster lookups for non-locksmith users. Also, it allows to simplify some code. While being there, cleaned up some unused logic. 2015-12-29 15:17:20 +00:00
alexpeshkoff
0558b970fe Fixed CORE-5047: mapUser() routine establish secondary attach using wrong provider 2015-12-29 14:39:00 +00:00
firebirds
a19a555ad7 nightly update 2015-12-29 00:10:39 +00:00
dimitr
df55756907 Unwind the cache before throwing. This prevents lock-ups during database shutdown. 2015-12-28 06:22:32 +00:00
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
alexpeshkoff
0c9a2ccdd3 Fixed CORE-5008: add missing cmake files to fb3 linux tarball 2015-12-24 11:17:13 +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
alexpeshkoff
df2fb331cf Fixed CORE-4964: Real errors during connect to security database are hidden by Srp user manager. Errors should be logged no matter what AuthServer is used. (taking into an account Sean's request re. special error for system-related problems) 2015-12-22 17:53:30 +00:00
firebirds
a4b437e2a5 nightly update 2015-12-22 00:10:42 +00:00
alexpeshkoff
474538c7ff Added support for using pascal to access OO API 2015-12-21 17:01:26 +00:00
alexpeshkoff
43ed888aa2 Fixed strange mistype in error code. This error code is never used in sources, i.e. nothing to fix due to this change. 2015-12-21 11:16:22 +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
dimitr
9f28f77266 Remove the redundant (no-op) line. 2015-12-19 05:55:20 +00:00
firebirds
3bc500e57d nightly update 2015-12-19 00:09:46 +00:00
dimitr
738ad6ea21 Constness. 2015-12-18 16:57:06 +00:00
asfernandes
0e686e0c58 Avoid warnings with clang. 2015-12-18 16:34:33 +00:00
asfernandes
80a29fe79f Fixed CORE-5049 - Regression: incorrect calculation of byte-length for view columns. 2015-12-18 16:34:20 +00:00
alexpeshkoff
0ba4e86e86 Fixed gsec with SS 2015-12-18 13:53:04 +00:00
asfernandes
04906b031c Avoid warnings with clang. 2015-12-18 13:45:00 +00:00
firebirds
2f36485fbe nightly update 2015-12-18 00:09:17 +00:00
alexpeshkoff
fde2d8fe85 Postfix for CORE-5032: error handling was broken, therefore checked for invalid error code 2015-12-17 15:14:51 +00:00
aafemt
0903af542e Rollback 2015-12-17 13:44:34 +00:00
alexpeshkoff
cb0dfc11cc Fixed CORE-5039: Connecting to service with invalid servicename yields incorrect error message 2015-12-17 12:43:23 +00:00
hvlad
f9d5a233e5 Let XNET client returns correct isc_network_error in case of not running XNET server.
Before it returns isc_unavailable and fools y-valve.
2015-12-17 11:28:52 +00:00
hvlad
9a9b5baff0 Fixed warning 2015-12-17 09:56:34 +00:00
hvlad
e455542e37 Make names less dumb. Formatting a bit. 2015-12-17 09:56:05 +00:00
firebirds
3583fcb4e6 nightly update 2015-12-17 00:09:09 +00:00
aafemt
a2d29608fd Restore raising of error from last tried provider as pointed by Alex 2015-12-16 17:23:02 +00:00
alexpeshkoff
7971252db3 Totally misc - formatting 2015-12-16 17:17:12 +00:00
alexpeshkoff
9b020863b5 Cleanup 2015-12-16 17:16:10 +00:00
alexpeshkoff
3c3dbf657b Fixed CORE-5032: Cannot connect to a database which have own security database without security3.fdb 2015-12-16 17:12:53 +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
alexpeshkoff
760345471a Fixed CORE-5042: FB3 client cannot create database on FB2.5 server 2015-12-11 13:27:29 +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
alexpeshkoff
507b31f4c3 Misc - fixed system call name in exception 2015-12-10 15:30:33 +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
aafemt
08aabbf41d Prevent using DECRYPT and ENCRYPT clauses in one query 2015-12-09 13:47:03 +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
aafemt
d6312b6c56 Move call addRef() out of constructor 2015-12-04 13:07:25 +00:00
firebirds
48a328d403 nightly update 2015-12-04 00:09:50 +00:00
hvlad
c5527a0b55 Correction 2015-12-03 22:17:50 +00:00
hvlad
6a85b46ea7 Fixed the race condition on Windows when shared memory is initialized.
It could raise errors like:

MonitoringData: Cannot initialize the shared memory region
sh_mem_length_mapped is 0 

LockManager::LockManager()
Database is probably already opened by another engine instance in another Windows session

MonitoringData: Cannot initialize the shared memory region
operating system directive CreateFile failed
Access is denied.

Test case is at CORE-4680, see comments by Pavel Zotov at 18 Nov 2015.
2015-12-03 16:17:16 +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
139513291c Misc. 2015-12-01 12:24:05 +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
asfernandes
f19a56455c Allow to call IMetadataBuilder::getMetadata more than one time. 2015-11-27 18:37:52 +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
hvlad
12e47cc087 Avoid reporting of "SERVER/process_packet: broken port, server exiting" message for already detached port (affects CS only) 2015-11-23 16:08:38 +00:00
hvlad
14fb40a597 Refactor xnet module to separate client and server parts (endpoints).
It fixed bug CORE-5029 : AV in fbclient when multi-threaded application uses XNET protocol
and allows in the future to implement client ability to specify target server endpoint name 
at connection level (currently it is set in firebird.conf).
2015-11-23 16:06:10 +00:00
alexpeshkoff
c32ac809ad Fixed CORE-5026: Firebird authentication gives up after first common plugin 2015-11-23 09:57:34 +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
asfernandes
313bff3a8f Misc. 2015-11-20 00:33:06 +00:00
asfernandes
e757290c05 Fix bad indentation. 2015-11-20 00:25:32 +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
asfernandes
3e62707675 Fixed bad indentation. 2015-11-18 00:42:32 +00:00
firebirds
bd795e29e7 nightly update 2015-11-18 00:10:08 +00:00
asfernandes
1c1021b892 Try to fix the performance problem noted by Arno. 2015-11-17 17:01:08 +00:00
dimitr
79af926596 Updated the version string. 2015-11-17 12:19:02 +00:00
dimitr
ec6d38eb47 FB3 seems to be properly protected from CORE-4983 at the y-valve level, but I'm adding an additional protection for the engine anyway (call me paranoid). 2015-11-17 11:46:21 +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
alexpeshkoff
0642e9615e Fixed CORE-5017: Interrupt of aux connection during TCP setup phase causes server exit due to unhandled exception 2015-11-15 11:57:39 +00:00
firebirds
2063091aec nightly update 2015-11-14 00:10:02 +00:00
alexpeshkoff
d395ac11eb Postfix for CORE-5014: not good to disconnject same port twice, looks like I and Vlad tried to fix same bug simultaneously 2015-11-13 12:45:32 +00:00
firebirds
3e31e873f4 nightly update 2015-11-13 00:08:52 +00:00
hvlad
9d6b93176c Fixed bug CORE-5015 : AV in engine could happen when ON DISCONNECT trigger posted event 2015-11-12 14:13:33 +00:00
alexpeshkoff
b8f65ccad4 Fixed CORE-5014: Interrupt of aux connection during TCP setup phase causes unclear error messages in firebird.log 2015-11-12 13:43:38 +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
hvlad
d0768b2664 Fixed bug CORE-4998 : Both client and server could not close connection after failed authentification 2015-11-09 13:26:52 +00:00
alexpeshkoff
d969134c2f Fixed CORE-4997: Races when 2 threads try to establish first enbedded connections to engine simultaneously 2015-11-09 09:52:24 +00:00
firebirds
226166bd38 nightly update 2015-11-09 00:09:53 +00:00
aafemt
2e87c46cce A little more decription of key holder interface 2015-11-08 17:01:12 +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
alexpeshkoff
6d3f0d9bf8 Make returned string C-style (with 0 terminator byte) when possible 2015-11-05 16:06:06 +00:00
alexpeshkoff
c8f185b415 Fixed build error, reported by Pavel Zotov 2015-11-05 09:57:04 +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
a6c1a84ab3 Improved reaction on Ctrl+C\Ctrl+Break\console close request in Trace Manager and Services Manager console utilities on Windows. 2015-11-03 11:01:57 +00:00
dimitr
23975e8614 Remove the code no longer neccessary. 2015-11-03 10:37:11 +00:00
hvlad
fe072b8ada Correction 2015-11-03 09:36:05 +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
e2617737a1 Postfix for CORE-4980: no use to backup rights granted to system tables 2015-10-27 16:57:59 +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
dimitr
80e0b8375d Disabled GRANT/REVOKE for privileges not currently enforced: USAGE/DOMAIN, USAGE/CHARSET, USAGE/COLLATION. 2015-10-27 12:19:00 +00:00
firebirds
9ce29345fb nightly update 2015-10-27 00:09:59 +00:00
dimitr
31ff3b07cc Fixed CORE-4972: Invalid statement handle. 2015-10-26 21:22:58 +00:00
alexpeshkoff
6cf40dfde7 Do not type "invalid service handle" error message after pressing ctrl-C (as Vlad requested) 2015-10-26 16:55:37 +00:00
alexpeshkoff
f8d5847748 Fixed a case when second copy of fb_shutdown() is called in another thread while first copy of it is still running (restored old code) 2015-10-26 15:07:17 +00:00
alexpeshkoff
a61fbdfd77 Fixed bug related with IntlParametersBlock noticed by Mark Rotteveel 2015-10-26 15:04:45 +00:00
dimitr
769265ee1c Misc. 2015-10-26 10:28:44 +00:00
dimitr
f761965078 Fixed gstat output. 2015-10-26 10:17:46 +00:00
hvlad
c8077a3d29 Fixed bug CORE-4968 : fbtrace.conf in FB30-HOME: missing equality sign ('=') between parameter "log_errors" and its default values ("false") 2015-10-25 13:54:39 +00:00
hvlad
ed727453fa Avoid send over closing socket (it put errors 10058 (WSAESHUTDOWN) in firebird.log) 2015-10-25 13:48:20 +00:00
hvlad
7f5408d8b3 Revert some of my recent changes in socket closing sequence as it causes delays client side on Linux.
It also should fix CORE-4977 : Detach of 3.x database from 3.x Linux client takes much longer than from 3.x Windows client
2015-10-25 13:45:10 +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
b35add2713 Misc. 2015-10-23 03:09:16 +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
1cbaeb9b13 Misc. 2015-10-23 02:50:36 +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
3a11ce7f9a Fixed gfix -commit / -rollback on big-endian platforms. Seems to be a very old bug. 2015-10-22 17:43:55 +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
hvlad
682baeba6f Fixed AV on client : when disconnect happens while event callback run 2015-10-22 13:40:43 +00:00
hvlad
22daf59b41 It should fix TCS issue with events reported privately by Alex 2015-10-22 10:15:22 +00:00
alexpeshkoff
a090721dbf Make memory consumption smaller using redirection to parent pool for small extents and medium blocks. This makes simple requests to compile without requesting memory from OS. 2015-10-21 16:51:42 +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
dimitr
b4a3572fc6 Fixed CORE-4970: Table trigger does not see its mode: inserting or updating or deleting. 2015-10-20 13:06:52 +00:00
hvlad
f48a07e4bd Fixed logging WSAEINTR error on shutdown of Classic listener process (Windows-specific).
Error looks like
	INET_connect
	Unable to complete network request to host ...
	Failed to establish a connection.
	A blocking operation was interrupted by a call to WSACancelBlockingCall.
2015-10-19 14:55:09 +00:00
hvlad
2876da872e Fixed delays on disconnect (Classic mode only, seems Windows-specific) 2015-10-19 14:51:10 +00:00
alexpeshkoff
e9c8ff3ee4 Fixed memory statistics collection 2015-10-19 14:02:18 +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
asfernandes
9c334ca1bd Misc. 2015-10-18 01:30:28 +00:00
firebirds
13e7f62d9a nightly update 2015-10-17 00:09:28 +00:00
hvlad
fc4063fa16 Fixed few issues in event's handling code which could lead to AV (CORE-4680).
Fixed few small memory leaks.
2015-10-16 15:30:19 +00:00
hvlad
4068a225b4 Implemented delayed closing of server sockets - it should fix server hang up (see CORE-4680).
Fixed socket disconnect handling to allow graceful shutdown of network connection and avoid a lot of network errors in firebird.log (mostly 10053\10054).
Misc changes.
2015-10-16 15:28:51 +00:00
firebirds
5ab91b67dd nightly update 2015-10-16 00:09:48 +00:00
dimitr
759dd1212a This should fix the Windows build. 2015-10-15 07:29:41 +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
hvlad
a564cddac7 Corrections 2015-10-13 09:44:44 +00:00
asfernandes
9fbee6b719 Misc. 2015-10-13 02:22:57 +00:00
asfernandes
05c40f0ae5 Use pools in the btyacc skeleton file. 2015-10-13 01:49:11 +00:00
firebirds
e8b4873db1 nightly update 2015-10-13 00:09:42 +00:00
alexpeshkoff
9e833922b6 Rolled back accidentially committed file 2015-10-12 14:29:11 +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
alexpeshkoff
4eb02e2897 Changed message text 2015-10-11 14:22:05 +00:00
hvlad
9d5b3d71c9 Avoid too frequent VirtualAlloc\VirtualFree calls 2015-10-11 08:59:27 +00:00
hvlad
bb93ae8f2a Fixed small memory leak (happens on every auth request) 2015-10-11 08:58:18 +00:00
firebirds
ce74e11a82 nightly update 2015-10-10 00:09:34 +00:00
asfernandes
eb4a6c620c Fix debug code. 2015-10-09 14:47:52 +00:00
alexpeshkoff
42b98af12b Better syntax for CORE-4955 & docs 2015-10-09 13:57:39 +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
alexpeshkoff
8638c77c2f Spelling fixed - thanks to Adriano 2015-10-09 11:58:06 +00:00
alexpeshkoff
6590c28174 Added memory pool describing constant MAX_MEDUIM_BLOCK_SIZE 2015-10-09 11:45:08 +00:00
firebirds
587ff7b89a nightly update 2015-10-09 00:09:47 +00:00
alexpeshkoff
530e5e9c50 Fixed CORE-4951: Message "Incorrect parameters provided to internal function INF_transaction_info Invalid token" is reported when trying to commit 2PC transaction 2015-10-08 14:45:39 +00:00
dimitr
7857160480 Misc. 2015-10-08 13:24:21 +00:00
hvlad
53dcf15d75 Change type as Adriano suggests 2015-10-08 12:07:16 +00:00
alexpeshkoff
3994de35ec Fixed return type - thanks to Vlad 2015-10-08 08:52:51 +00:00
hvlad
252413eae7 All utilities call fb_shutdown on exit 2015-10-08 08:07:17 +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
alexpeshkoff
2a53f5c9c5 op_crypt is not used here - avoid never executed code 2015-10-07 16:59:49 +00:00
alexpeshkoff
c25cc1ff29 Reworked memory pool:
1. Make free small blocks better reusable.
2. Avoid lists scan when working with medium blocks.
3. Allocate small hunks from parent pool when possible.
2015-10-07 16:45:24 +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
hvlad
2ab15d1e5f It should fix deadlock in fbclient (see CORE-4680).
Thanks to Alex.
2015-10-05 12:59:29 +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
asfernandes
68e2043fcf Fixed CORE-4292 - Server ignores asynchronous (monitoring or cancellation) requests while preparing a query with lot of windowed functions. 2015-09-30 16:35:37 +00:00
firebirds
e60da17ece nightly update 2015-09-30 00:09:09 +00:00
asfernandes
1e9ab8cf19 Fixed CORE-4947 - Compound ALTER TABLE statement with ADD and DROP the same check constraint fails. 2015-09-29 16:45:12 +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
asfernandes
a8496bc551 Fixed FETCH CURSOR <c> (without INTO) after changes for CORE-4929. 2015-09-27 19:39:52 +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
asfernandes
2b000c400b Fixed CORE-4940 - Add label about deterministic flag for stored function in SHOW and extract commands. 2015-09-22 15:45:55 +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
asfernandes
edec43a589 Fixed CORE-2883 - isql needs to extract security for new elements with ACLs. 2015-09-21 16:46:05 +00:00
firebirds
552b9be23b nightly update 2015-09-21 00:09:04 +00:00
asfernandes
05d4cdaa06 Fixed CORE-2882 - isql needs to process new external routines. 2015-09-20 23:47:52 +00:00
hvlad
09cc6137b3 Improvement CORE-4939 : Make IO operations with nbackup backup file aligned at page size boundary 2015-09-20 12:42:21 +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
paul_reeves
32462e3b9e Bring install_svc.cpp up-to-date after implementation of ServerMode. 2015-09-17 13:26:54 +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
asfernandes
4bdfdeeb2a Sub-task CORE-2881 - isql should show packaged procedures and functions categorized per package. 2015-09-16 16:11:37 +00:00
mapopa
60c501b1b2 Support for BASIC/PLI was removed before IB4 2015-09-16 14:51:10 +00:00
mapopa
c1cefc034b Cleanup 2015-09-16 14:36:14 +00:00
mapopa
41e2b51571 Cleanup code was used with WAL 2015-09-16 12:35:41 +00:00
firebirds
5df109189d nightly update 2015-09-16 00:08:56 +00:00
mapopa
6a1b2174b3 Removed because tdgbl->ALICE_data.ua_db_SQL_dialect is an unsigned number. 2015-09-15 12:02:44 +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
dimitr
5b57c1438a This should fix CORE-4929: Cannot compile source with ELSE IF () THEN and commands to manipulate explicit cursor. 2015-09-09 21:38:24 +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
alexpeshkoff
80daf8d8ed Rollback frontend transaction after getting login and role names 2015-09-04 10:53:02 +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
robocop
1cef962a34 Misc. 2015-09-03 17:42:23 +00:00
asfernandes
5393b8cf6f Fixed CORE-4585 - Can't create column check constraint when the column is domain based. 2015-09-03 16:30:30 +00:00
firebirds
fd084798a0 nightly update 2015-09-03 00:09:38 +00:00
alexpeshkoff
d7477b8740 Fixed segfault, reported privately by Vlad 2015-09-02 18:17:08 +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
6855e29dda Better correction. 2015-09-01 07:42:46 +00:00
dimitr
048e282a7e Correction. 2015-09-01 07:39:23 +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
asfernandes
182016b222 Fixed CORE-4917 - ALTER DOMAIN ... TO <new_name> allows to specify <new_name> matching to 'RDB$[[:DIGIT:]]*'. 2015-08-31 15:26:06 +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
alexpeshkoff
74eeb4bbfa Frontported fix for CORE-4919: Classic server (all processes) hangs after death of one process on AIX 2015-08-31 09:30:57 +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
alexpeshkoff
db0c84f46e Fixed CORE-4890: Placing comment (single-lined or multi-lined) between final END of creating SP code and terminal character (^) produces compiling error when tool uses old API 2015-08-21 15:23:22 +00:00
firebirds
a6d6811b7b nightly update 2015-08-21 00:08:57 +00:00