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

90 Commits

Author SHA1 Message Date
robocop
2ca526b779 Style. 2009-06-28 10:26:25 +00:00
dimitr
d3dad89130 Correction. 2009-05-08 15:31:03 +00:00
dimitr
0f776b2517 Finalized the remote cleanup by Dmitry Kovalenko. 2009-05-08 09:23:34 +00:00
robocop
2d7cb94844 Unused params
Some BLR checks
2009-04-28 13:08:04 +00:00
alexpeshkoff
4ee99ff984 Make port wait for event thread shutdown on disconnect 2009-04-17 11:22:31 +00:00
robocop
42e26b034f Comments. 2009-04-15 13:47:54 +00:00
robocop
1452ca21c1 Misc. 2009-04-15 06:40:17 +00:00
alexpeshkoff
ac92e643e6 Cleanup - events delivery using unix signals is not used any more 2009-03-16 16:31:51 +00:00
robocop
f309e01a7e Apply patch from Kovalenko Dmitry (Lipetsk). 2009-02-25 08:08:34 +00:00
dimitr
4e54096846 Misc. 2009-01-16 20:25:31 +00:00
robocop
546290b68b Style. 2009-01-16 09:55:38 +00:00
robocop
f1fab1b53c Style. 2009-01-14 12:37:23 +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
alexpeshkoff
9bdb3ecb7c assertion is wrong for event ports - to be reviewed by Vlad 2008-12-30 15:17:50 +00:00
robocop
f140cbb7d2 Before I put the "explicit" modifier on AtomicCounter's constructor, the compiler was generating a temporary AtomicCounter on the fly and later assigning it to the target AtomicCounter instance to satisfy an assignment of an integer to an AtomicCounter. I'm not sure we want to allow (and worse, foster) the copying of AtomicCounter instances or temporaries created by the compiler, hence I implemented a new method and fixed the code, but I don't know how to write the best code for one group of platforms in fb_atomic.h, hence I wrote the method with a syntax problem to be caught by someone who knows better. 2008-12-13 09:19:22 +00:00
asfernandes
05947b7afc Misc 2008-12-12 00:55:03 +00:00
hvlad
9bcfe005cb Wait for end of all server's threads (at fb_shut_finish handler) to ensure no threads will access global variables (mutexes) during gds__cleanup phase of process shutdown. It must guarantee no races and AV's during process shutdown. 2008-12-11 11:49:52 +00:00
asfernandes
8fbf0e8e8c Remove trailing spaces (.cpp files) 2008-12-05 01:20:14 +00:00
hvlad
2b6ba03d63 Implement new option (fb_cancel_abort) for fb_cancel_operation(). It allows forcebly close client port and allow application to shutdown even it wait of execution finish of some long running query. Use carefull !
Not implemented for WNET, work in progress.
2008-11-27 22:59:42 +00:00
asfernandes
ac600b29d7 Misc 2008-10-09 00:59:56 +00:00
hvlad
4180370a7a Enlarge space reserved for strings in errors returned after attachment failure. It allow to report errors correctly for application which made a lot of simultaneous (failed) connections. 2008-10-04 17:45:58 +00:00
alexpeshkoff
2f803217f8 1. Never shutdown worker threads from fb_shutdown()'s callback -
instead do it at the end of main server loop.

2. Fixed races when worker thread(s) remained running after exit from main().

3. Added better protection by mutex to counter of worker threads.
Avoid possible races when worker thread starts.
2008-10-03 16:22:54 +00:00
alexpeshkoff
41488cd241 restored old behavior in OOM conditions - thanks to Claudio 2008-09-08 13:26:47 +00:00
asfernandes
0f387a9bee Misc 2008-09-06 18:42:55 +00:00
alexpeshkoff
d66900f78a Refactored code saving strings in remote.cpp 2008-09-05 13:15:24 +00:00
asfernandes
96194d08ba Misc 2008-08-31 01:10:41 +00:00
alexpeshkoff
a5c262873a Better fix for CORE-2055, thanks to Claudio 2008-08-27 10:40:51 +00:00
alexpeshkoff
475913287b Fixed CORE-2055: BOF in fbclient 2008-08-27 08:05:29 +00:00
robocop
5cd11867ec Get rid of (ALLOC/FREE)_LIB_MEMORY macro as requested by Dmitry. 2008-05-22 09:38:21 +00:00
dimitr
c74650aa5f Fixed CORE-1357. 2008-04-20 14:02:51 +00:00
hvlad
b59d7731ec Ensure port can't be deleted ... addition 2008-04-16 14:19:58 +00:00
robocop
b2e8da134f Trying to fix the interface again.
Sorry for going back and forth with constness, but in some cases it was impossible to ensure that input params aren't overwritten, thus I took const away to avoid making promises that can't be met (see the case of fetch that uses a supposedly input-only param to return data). Overwriting memory that was declared const initially is a serious error in C++ with undefined outcome so we better do not lie.
2008-04-03 10:17:24 +00:00
robocop
27b24cccf3 The boss prefers clean() instead of the sui generis unset(). 2008-03-30 09:49:22 +00:00
robocop
f5c4d1853d Cleanup. 2008-03-30 09:38:24 +00:00
robocop
88349111c8 Probably I could put RFlags with a better name elsewhere for general usage, but for now I'll test the waters with Rsr. 2008-03-30 03:02:12 +00:00
alexpeshkoff
4e5a83e767 1. Make remote port RefCounted object.
2. Removed deferred cleanup hack.
3. Fixed races when events are delivered - thanks to Vlad.
2008-03-27 10:15:05 +00:00
alexpeshkoff
6809f624fc Remote cleanup:
1. Avoid ALLR memory allocation routine (use new / delete).
2. Use common (TypedHandle) class to control consistency of handles.
3. Make ctors and dtors work - in most cases more work is needed to make them meaningful.
2008-03-24 15:28:38 +00:00
hvlad
4115317607 Make remote module thread-safe, remove THREAD_EXIT\THREAD_ENTER from it, refactor server code and some cleanup. To be continued. Please check posix builds. 2008-03-11 14:11:32 +00:00
alexpeshkoff
00c63c1f8d 1. Make signals handling in yValve MT safe.
2. Introduce new private API calls, fb__shutdown() and fb__shutdown_callback().
3. Introduce fb_smp_server - binary to run superclassic on posix.
4. Various cleanups.
2008-02-28 18:42:30 +00:00
dimitr
c1f75dcdf8 Ported SQLSTATE from Vulcan.
Part II: handling of isc_arg_sql_state.
2008-02-24 15:02:04 +00:00
alexpeshkoff
39896cb955 Fixed CORE-1671: atexit() calls in client libraries cause segfaults
and CORE-1079: Every attach of fbclient/fbembed library leaks 64KB of memory

To do it:
- created new template GlobalPtr, controlling access to destructors of global objects.
- applied it to global objects.

Also some related cleanup.
2008-01-23 15:52:40 +00:00
dimitr
f25819fb19 The merge continued. 2008-01-16 07:55:28 +00:00
hvlad
2b47bbe55b Revert files back after wrong commit 2007-11-19 00:21:18 +00:00
hvlad
86f1141328 Execute statement with support of external data source 2007-11-18 22:59:20 +00:00
hvlad
4a72397c71 Fixed bug CORE-1430 : AV in fbclient.dll if statement prepared and executed right after events was registered 2007-08-28 19:35:53 +00:00
asfernandes
a150855ef8 Misc 2006-12-09 01:23:17 +00:00
alexpeshkoff
1a4652f01a Trusted authentication for windows 2006-12-08 18:38:15 +00:00
robocop
4243e7bcc4 Style. 2006-04-09 06:46:28 +00:00
alexpeshkoff
a6151c44c9 Fixed SF bug 1385092 2006-03-03 16:20:42 +00:00
robocop
10cb928ddc More cleanup. 2006-02-23 06:52:25 +00:00