alexpeshkoff
60a115efc2
Fixed CORE-2601: fine tuning of the installation directories does not work in configure
2009-09-11 10:49:46 +00:00
dimitr
8e36474f76
More explicit (and shorter) life-time for sort blocks. Now they belong to either requests (user sorts) or transactions (index sorts).
...
This also resolves CORE-2477: mon$memory_usage: Sorting memory should be reported as owned by the statement.
2009-09-04 06:11:55 +00:00
robocop
e2bb3fec13
Delete unused function param.
2009-09-04 04:19:09 +00:00
alexpeshkoff
9629eafccd
Use per-thread circular strings buffers instead common and per-attachment combination
2009-09-01 09:20:24 +00:00
dimitr
56778ac8f4
Introduced the fb_ping() provider call (it's not exported thus it doesn't belong to the public API).
...
Currently only the engine supports this call. To be extended for the remote provider and exported as public in v3.0.
Used this new call to implement asynchronous (read: immediate) disconnection of the shutdown attachments.
2009-08-25 11:16:32 +00:00
robocop
a7c7f15e40
Forgot this when changing PAR_parse, CMP_compile2 and friends (not important).
2009-08-08 11:08:39 +00:00
robocop
e90fc8d63f
Change the interface again. Please full rebuild (although the many recent changes to common.h almost qualify as full rebuild).
2009-08-05 12:30:32 +00:00
robocop
40169fefcb
Style.
2009-08-05 04:48:49 +00:00
asfernandes
4759973045
Fixed CORE-2576 - Server may crash parsing wrong or truncated BLR
...
Full rebuild required - CMP_compile2 prototype changed
2009-08-02 04:10:07 +00:00
robocop
8cb338c96d
Misc.
2009-07-21 09:46:11 +00:00
asfernandes
0fa5b3fdc4
Do not return isc_no_cur as warning, as it's an error - thanks to Dmitry
2009-07-16 13:09:00 +00:00
asfernandes
5063bafc36
Misc
2009-07-15 03:13:16 +00:00
dimitr
f3a6111efa
Let's not throw any shutdown related errors when rescheduling happens during the detaching (rare but possible case).
2009-07-13 15:40:32 +00:00
alexpeshkoff
caf50ce2b3
Fixed CORE-2526: Server can be shut down disregarding services' connections
2009-07-13 12:09:37 +00:00
robocop
de4be11750
Misc.
2009-07-13 10:00:43 +00:00
asfernandes
e26c3083f8
Improvement CORE-2551 - Interpret DPB items as now the database name parameter is interpreted and change MON$ filenames fields from NONE to UNICODE_FSS.
2009-07-11 19:58:28 +00:00
alexpeshkoff
eb92d79ade
Fixed CORE-2518: Can no longer connect to database when using isc_dpb_num_buffers parameter, Make SS ignore it silently.
2009-07-10 12:31:12 +00:00
asfernandes
26c1892310
Misc
2009-06-20 18:46:59 +00:00
robocop
70040bd913
Related to CORE-2509.
2009-06-19 11:10:34 +00:00
robocop
6bfacad413
CORE-2509. Took the opportunity to fix several data types.
2009-06-18 12:07:07 +00:00
asfernandes
78f400fc5b
Misc
2009-06-09 00:56:58 +00:00
hvlad
78aeb9f520
Use unsigned char in ntrace.h where appropriate, as Claudio suggest
2009-06-08 14:59:58 +00:00
asfernandes
2d8d9dd7b2
Improvement CORE-2498 - Make a single attachment usabe by more than one simultaneous threads in embedded
2009-06-06 01:08:19 +00:00
hvlad
89f79fb683
Fixed bug CORE-2454 : AV enumerating attachments in SS\SC if more than 8 databases is attached
2009-05-07 14:29:37 +00:00
robocop
66b1227b22
Unused params, some formatting, cleanup.
2009-05-01 17:21:36 +00:00
robocop
3343776e96
More unused params.
2009-04-28 14:13:46 +00:00
robocop
2d7cb94844
Unused params
...
Some BLR checks
2009-04-28 13:08:04 +00:00
asfernandes
f6f364da49
Trim trailling spaces
2009-04-04 16:39:31 +00:00
dimitr
1b8384583f
1) Some simplification inside JRD_reschedule()
...
2) Cleaned up the unused ALL routines, the only remainings from the old allocator code.
2009-04-01 11:33:30 +00:00
alexpeshkoff
9e15274a45
Fixed warning
2009-03-27 16:13:00 +00:00
roman-simakov
1a4949891b
Refactored NBackup subsystem.
...
1) Fixed CORE-1696 - "Deadlock in LM by using nbackup utility" with priority rating of lock requesting for LCK_backup_database and LCK_bdb.
2) A lot of stability fixes were made.
3) The key thing is using new GlobalRWLock for removing LCK_set_owner_handle function and speed up performance.
4) The code is still ready for using both in shared cache architecture and in claster architecture.
2009-03-17 07:39:55 +00:00
hvlad
1880c5c0dd
Clear metadata cache at database shutdown to correctly release used resources.
2009-03-15 18:05:04 +00:00
hvlad
4e0807690f
Better fix for CORE-2183 : Error in ExtDS when server shutdown started with opened Execute Statement.
...
Make EDS handle broken connection properly
2009-03-13 13:17:20 +00:00
hvlad
0c1e3269b2
Fixed AV when engine shutdown started during isc_attach_database call execution
2009-03-13 09:55:07 +00:00
asfernandes
af33aefd19
Misc
2009-03-12 01:39:52 +00:00
hvlad
002ec6672a
Fixed bug CORE-1980 : Sweeper consumes 100% CPU forever.
...
Also avoid start transaction if no ON CONNECT\ON DISCONNECT triggers defined.
2009-03-09 18:33:01 +00:00
alexpeshkoff
19fa8a3489
Fixed CORE-2351: Aliased database can't be created
2009-03-05 15:18:38 +00:00
asfernandes
d369e26979
1) Fix posix build
...
2) Remove some warnings
2009-02-15 14:45:37 +00:00
alexpeshkoff
b279aa384b
Cleanup
2009-02-10 14:20:13 +00:00
alexpeshkoff
1b9a6858e4
Disabled use of isc_dpb_num_buffers on SS to avoid unpredictable shared cache behavior
2009-02-10 11:33:05 +00:00
dimitr
eeb13b8191
Misc.
2009-02-10 09:30:55 +00:00
hvlad
1baef37856
Add "paranoid check" suggested by Claudio
2009-02-10 08:56:32 +00:00
robocop
a18dc0519f
Misc, style, fixing dangerous warnings, constness, etc.
2009-02-08 11:23:46 +00:00
dimitr
e832df7b5f
In JRD entrypoints, tdbb_status_vector is always equal to user_status.
...
So let's deal with the explicitly passed user's vector instead of the implementation detail that's likely to disappear soon.
2009-02-05 08:53:47 +00:00
asfernandes
75c0d0f353
Misc
2009-02-05 01:08:13 +00:00
alexpeshkoff
2da14652dd
Avoid use of class PluginManager
2009-02-04 11:39:37 +00:00
hvlad
2d1149cd7b
Distinguish create\attach database call's when reporting failed attempt.
...
Misc.
2009-02-02 16:04:21 +00:00
hvlad
b2104c5924
Correction
2009-02-02 15:41:23 +00:00
alexpeshkoff
4821c8a329
Do not AC_CONFIG_FILE twice
2009-02-02 15:23:50 +00:00
asfernandes
612c108e3e
Misc
2009-02-02 03:35:52 +00:00
hvlad
115602ff06
Trace services support
2009-02-01 22:10:12 +00:00
hvlad
325ec850c1
Don't report error status as succesfull
2009-02-01 21:54:48 +00:00
dimitr
1b3927b026
1) Globally named per-database shmem regions.
...
2) Slightly reworked monitoring internals.
3) Encapsulated the event manager, many internal changes there.
4) Various cleanup, etc.
2009-01-28 12:27:18 +00:00
robocop
3689f15321
Style.
2009-01-20 08:33:59 +00:00
alexpeshkoff
16fac29611
Fixed error handling in GDS_SERVICE_QUERY
2009-01-16 15:00:52 +00:00
alexpeshkoff
7d1e52e763
Fixed CORE-2271: gfix reports db ownership error way too late (and related cleanup)
2009-01-11 12:04:30 +00:00
robocop
4e167d6fa6
Style.
2009-01-08 09:26:06 +00:00
dimitr
deb5454ef0
Restored the original (legacy) way of returning the successful status vector.
...
But added an assert to track an unexpected status vector contents early in debug builds.
Slightly refactored the error handling for events, partially synchronized the globals there.
Plus some basic const'ness, better tdbb scope, etc.
2009-01-06 15:32:01 +00:00
asfernandes
fbac6e72c3
Fixed CORE-2264 - ALTER DOMAIN with dependencies may leave a transaction handle in inconsistent state causing segmentation faults
2009-01-03 02:40:00 +00:00
robocop
6406e45337
Shut up compiler warnings (unreferenced vars, uninitialized vars, compile-time conditional code, etc.)
2009-01-02 06:36:12 +00:00
asfernandes
5c97a235e3
Misc
2008-12-24 00:32:49 +00:00
robocop
5f6113f63b
Change param type from SLONG* to UCHAR* because we gain nothing with the old declaration, except forced casts.
2008-12-22 10:06:43 +00:00
robocop
2fadc0e456
Style.
2008-12-22 09:00:05 +00:00
robocop
e63b46bb9c
There's no need to check whether a pointer is null before applying delete or delete[].
2008-12-21 03:50:29 +00:00
robocop
95292d1731
Style.
2008-12-20 08:12:19 +00:00
dimitr
2b87e94242
Use explicit iterators instead of the implicit (built-in) ones due to the thread-safety requirements.
...
This change affects GenericMap only, as it's used globally in a few places and we have a proven crash there.
I have a more complete solution (total cleanup of default accessors from BePlusTree and SparseBitmap) in my local tree (thanks to Dmitry Kovalenko), but it's incomplete (requires more changes inside the engine) and IMHO risky (~20 core modules are affected), so I'd like to defer finalization of this cleanup till v3.0.
All objects of these types seem being protected by dbb_sync, so they shouldn't cause us any problems currently.
2008-12-19 14:57:01 +00:00
asfernandes
d03b6ede7f
Misc
2008-12-18 01:24:58 +00:00
asfernandes
84dfa0e092
Fixed CORE-316 - Can't open database with MBCS/Extended characters in name.
...
Documentation soon.
2008-12-15 14:59:34 +00:00
robocop
511c7eb7d8
Promote thread_data* as function argument.
2008-12-14 10:19:27 +00:00
robocop
e4650d5027
Promote thread_data* as function argument. Only exception where both tdbb and dbb were left together as arguments is nbak.cpp's call to CCH_rollover_to_shadow to avoid any side effect in the changed code, but anyway, that function calls SDW_rollover_to_shadow that takes the dbb from the tdbb and not explicitly.
2008-12-14 09:28:25 +00:00
dimitr
40d041d628
Fixed the issue reported by Philippe. To be backported after more testing.
2008-12-12 16:04:57 +00:00
dimitr
25dc79dce2
Fixed CORE-2209: Very slow procesing of the monitoring requests under high load and blocking other activity during that time.
...
The new code is expected to work 100-200 times faster. To be field-tested.
Implemented CORE-2233: Allow non-SYSDBA users to monitor not only their current attachment but other their attachments as well.
Sorry for mixing two fixes inside a single commit, but they're somewhat related.
2008-12-11 11:58:50 +00:00
asfernandes
8fbf0e8e8c
Remove trailing spaces (.cpp files)
2008-12-05 01:20:14 +00:00
hvlad
36e1866a1d
Few fixes to correctly close brocken external connection.
...
Ability to stop execution of external query when :
- engine is shutted down
- database is shutted down
- local statement is cancelled
- local connection is cancelled
2008-11-27 23:06:48 +00:00
hvlad
62ca23fa58
Fixed bug CORE-2183 : Error in ExtDS when server shutdown started with opened Execute Statement
2008-11-17 12:30:28 +00:00
asfernandes
d8855e2e47
Misc
2008-11-14 14:15:37 +00:00
alexpeshkoff
e9162ee2f2
Fixed CORE-2179: Deadlock when trying to shutdown server with opened ExecuteStatement
2008-11-12 14:32:18 +00:00
dimitr
8e72ece026
Uncouple Mutex and RefMutex. This resolves the circular dependency: "AtomicCounter->Mutex->RefCounted->AtomicCounter" and thus enables all non-x86 POSIX builds.
2008-10-19 11:41:43 +00:00
roman-simakov
8edd7733d4
Fixed authentication bug with sysdba login written in lowercase letters.
2008-10-14 10:05:10 +00:00
hvlad
a3d266ba83
Fixed bug CORE-2018 : Only one client can access a readonly database
2008-10-14 09:10:36 +00:00
alexpeshkoff
e79f55708d
1. Cleanup - use Firebird::Semaphore instead of local events, removed code
...
related with local events from isc_sync.cpp.
2. Cleanup - removed unused parameter 'number of events' from ISC_event_wait()
and two unused parameters from ISC_event_init().
3. Added SYSV-semaphore based implementation of IPC to isc_sync.cpp.
This should fix CORE-2102: Firebird 2.5 does not build on MacOS (Darwin).
4. Fixed use of posic CS without (x)inetd (i.e. fb_inet_server -s).
5. Fixed (to be reviewed by Dmitry) recovery after some process death in lock manager.
2008-10-10 15:58:05 +00:00
hvlad
97bf925499
Use fb_utils::init_status instead of status[0] = 0
2008-09-10 11:41:36 +00:00
alexpeshkoff
5be80cc7f5
Restored missing line - thanks to Claudio
2008-09-01 08:56:17 +00:00
asfernandes
96194d08ba
Misc
2008-08-31 01:10:41 +00:00
asfernandes
8497cd4307
Misc
2008-08-28 15:39:51 +00:00
alexpeshkoff
13a15d4bfe
1. Final fix for CORE-1964 - finished vararg cleanup in jrd.
...
2. Generic cleanup of error reporting functions all around engine.
2008-08-27 12:20:47 +00:00
asfernandes
8f9b451ce9
Rework of ib_util changes. Dynamically load it in the engine and inform callback functions to alloc and free memory. Allocate memory from the default pool.
2008-07-12 21:23:42 +00:00
robocop
a302401357
Misc.
2008-07-09 12:34:43 +00:00
dimitr
609f466ad3
1) Fixed the layering, as dbb_lock shouldn't belong to PIO.
...
2) Passed tdbb to some engine routines that were dealing with TLS.
3) Got rid of fil_length and some minor cleanup.
2008-07-09 08:40:31 +00:00
robocop
534abf1560
const
2008-07-08 06:44:53 +00:00
alexpeshkoff
81579840ab
Renamed function
2008-07-07 13:33:28 +00:00
alexpeshkoff
7fe33f3e5d
Fixed CORE-1972: Non-SYSDBA user can change FW mode of database
2008-07-07 10:42:17 +00:00
asfernandes
45786da3bc
Misc
2008-07-06 16:42:52 +00:00
robocop
80ba24a605
Fixing the Win32 build after Alex' changes.
2008-07-06 11:03:09 +00:00
alexpeshkoff
5ac5869661
CORE-1964 - stop vararg mess when reporting errors. Use special class for it. More (ERR_post cleanup) to come.
2008-07-03 12:02:54 +00:00
alexpeshkoff
a2e416210b
Fixed CORE-1964: Use of 0 instead of isc_arg_end to terminate list of ERR_post's (and cousines) arguments is invalid.
...
Also cleaned up use of gds__log() in a few places.
2008-06-26 09:47:59 +00:00
hvlad
81c1e2e604
Correct error in my previous commit.
2008-06-24 12:02:29 +00:00
hvlad
ac03047011
1. Make work with databases_mutex more consistent (lock\unlock it at the same scope of code).
...
2. Restore accidentally broken pause when attempt to brute-force login\pwd is detected
2008-06-24 11:56:17 +00:00
asfernandes
af1d955da6
Improvement CORE-1937 - Detect (instead of crash) FREE_IT UDFs that return pointer not allocated by ib_util_malloc
2008-06-14 22:16:40 +00:00
dimitr
9a9d48c45d
Restored the missing (wrongly cleaned up) parts of the thread priority logic (still useful for the current SS).
2008-06-09 08:10:11 +00:00