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

931 Commits

Author SHA1 Message Date
Roman Simakov
238fff3a2d Fixed CORE-1815: Ability to grant role to another role (#23)
* Initial patch for cumulative roles

* Fixed multiple records in USER_PRIVILEGES and reworked logic on additional grant default role and admin option
2016-05-12 17:03:54 +03:00
Adriano dos Santos Fernandes
c31769c46a Fixed problems reported by PVS-Studio - http://www.viva64.com/en/b/0396/ 2016-05-11 13:16:24 -03:00
Dmitry Yemanov
174c252e0c Major refactoring of savepoints. Beware of possible regressions. 2016-05-06 20:16:14 +03:00
Dmitry Yemanov
59e6c1f0cf Postfix for CORE-5067. It prevents deadlocks involving the header page
and some data pages (due to disabled AST delivery).
2016-04-02 13:16:13 +03:00
Adriano dos Santos Fernandes
cf1a65dece Misc. 2016-03-27 23:36:37 -03:00
hvlad
b713cb895e Fixed bug CORE-5140 : Wrong error message when user tries to set number of page buffers into not supported value 2016-03-08 17:10:30 +00:00
alexpeshkoff
926e3d903e Fixed some asserts and segfaults in crypto manager
Disable simultaneous nbackup & encrypt/decrypt operation
2016-02-26 12:55:34 +00:00
hvlad
f2c8f05846 Front ported for CORE-5067 : Blocking new connections as a consequence of the too long sweep security2.fdb 2016-02-17 09:21:09 +00:00
alexpeshkoff
56e5ec3d78 Fixed CORE-5105: Deadlocks when database is initially encrypted 2016-02-05 15:21:58 +00:00
dimitr
8db2fdbd02 Fixed (or worked around, if you wish) redundant UTF8->system conversions happening if isc_dpb_utf8_filename tag is located in the middle of DPB. 2016-02-01 15:05:44 +00:00
asfernandes
436b531774 Misc. 2016-01-31 00:06:06 +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
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
hvlad
d82e043042 Fixed crash reason (see CORE-5075).
Error on disconnect requires more analyzing.
2016-01-14 23:09:01 +00:00
dimitr
df55756907 Unwind the cache before throwing. This prevents lock-ups during database shutdown. 2015-12-28 06:22:32 +00:00
dimitr
302cd6b401 Fixed CORE-4840: Transactions with isc_tpb_autocommit can hang the server. 2015-12-19 10:43:47 +00:00
aafemt
0903af542e Rollback 2015-12-17 13:44:34 +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
aafemt
1fc4e352b0 Allow key holders to be called on client side (CORE-5043) 2015-12-14 14:07:05 +00:00
dimitr
6b6b605e01 Fixed possible problems with asynchronous query cancellation (recent regression). 2015-12-11 06:52:44 +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
dimitr
bf7951b259 Second round of my checkout/rescheduling changes. 2015-12-01 12:23:43 +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
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
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
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
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
hvlad
b7faf29697 Removed unused mutex.
Fixed tiny memory leak.
2015-10-06 10:27:10 +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
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
asfernandes
77f6054821 On behalf of alexpeshkoff after sourceforge crash - Postfix for CORE-4811: fix handling case for OS names 2015-07-26 15:35:52 +00:00
asfernandes
4a4e85e29a Fixed CORE-4279 - Invalid error message: "CHARACTER SET OCTETS is not defined" on db creation with isc_dpb_lc_ctype = OCTETS. 2015-07-12 21:16:33 +00:00
asfernandes
1f6811a99c Fixed CORE-4277 - Can create database with invalid character set. 2015-07-10 16:19:53 +00:00
alexpeshkoff
e420019cd4 Fixed CORE-4871: Merge SharedDatabase/SharedCache into single parameter ServerMode, affecting the way how server is started 2015-07-10 13:41:10 +00:00
alexpeshkoff
b692e85f56 Implemented CORE-4851: Apply methods, used for cross security database authentication, to the trace 2015-06-30 16:01:10 +00:00
alexpeshkoff
6cf0445c56 Fixed extremely rare segfault when shutting down server - no use in keeping security database(s) opened during shutdown 2015-06-04 12:07:10 +00:00
alexpeshkoff
1b6632ac8b Fixed CORE-4811: Make user names behave according to SQL identifiers rules 2015-06-03 13:57:18 +00:00
alexpeshkoff
364995fb88 Fixed code disabling access to network filenames in embedded mode 2015-05-20 13:07:06 +00:00
asfernandes
adf1fd737d Misc. 2015-05-02 03:54:03 +00:00
robocop
a9dfddf495 Misc. 2015-04-27 04:44:59 +00:00
alexpeshkoff
d284fa3c6a Fixed CORE-4768: CREATE USER ... TAGS ( argument_1 = 'value1', ..., argument_N = 'valueN' ) - wrong results of statement when there are many arguments 2015-04-24 13:07:40 +00:00
alexpeshkoff
bab9ce6e47 Fixed CORE-4743: Granted role does not work with non-ascii username 2015-04-17 18:35:39 +00:00
hvlad
b008023ab6 Exceptions in getTransactionInterface() should be catched and traced too 2015-04-17 13:27:01 +00:00
egorpugin
03580b29d6 [build] Fix duplicate symbol error on AppleClang while building for iOS. 2015-03-30 14:35:30 +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
alexpeshkoff
e7663b6bc0 Use status interface instead plain status vector when working with exceptions.
Avoid use of circullar allocation for strings in status vector (except when unavoidable for ISC API backward compatibility).
Use TLS for circullar allocation buffer instead manually working with threads' list.
2015-03-27 14:36:30 +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
robocop
939feab036 Misc. 2015-03-13 15:26:22 +00:00