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

1010 Commits

Author SHA1 Message Date
asfernandes
1c20adb8fc Misc 2009-04-29 01:52:49 +00:00
robocop
2d7cb94844 Unused params
Some BLR checks
2009-04-28 13:08:04 +00:00
alexpeshkoff
9b0950da7a Fixed CORE-2306: fbserver terminated abnormally when thread start failed 2009-04-24 15:51:40 +00:00
asfernandes
c986de33a2 Misc 2009-04-22 01:58:40 +00:00
alexpeshkoff
354aae3bc1 misc 2009-04-20 13:19:45 +00:00
robocop
754b185c10 Comments. 2009-04-18 09:58:31 +00:00
alexpeshkoff
cd54e5533e Fixed CORE-2437: Buffer overflow on client when delivering events. 2009-04-17 13:36:34 +00:00
alexpeshkoff
4ee99ff984 Make port wait for event thread shutdown on disconnect 2009-04-17 11:22:31 +00:00
robocop
4a6dddd02e Comments. 2009-04-16 06:52:08 +00:00
asfernandes
e707efaa1d Misc 2009-04-16 01:09:12 +00:00
robocop
ee08d55b01 Comments. 2009-04-15 14:18:20 +00:00
robocop
42e26b034f Comments. 2009-04-15 13:47:54 +00:00
robocop
09a087e458 Comments. 2009-04-15 13:41:22 +00:00
alexpeshkoff
78ef36a730 cleanup 2009-04-15 09:58:18 +00:00
robocop
1452ca21c1 Misc. 2009-04-15 06:40:17 +00:00
robocop
dea57e9099 Get rid of SCO. 2009-04-15 06:29:00 +00:00
asfernandes
f6f364da49 Trim trailling spaces 2009-04-04 16:39:31 +00:00
asfernandes
9e0c4f06f2 Misc 2009-04-04 16:28:33 +00:00
alexpeshkoff
77498cac9b Fixed some warnings 2009-04-03 10:49:07 +00:00
hvlad
d443178d0f More complete fix for bug CORE-2368 : AV after isc_cancel_events if event was not found 2009-03-23 17:20:51 +00:00
alexpeshkoff
ac92e643e6 Cleanup - events delivery using unix signals is not used any more 2009-03-16 16:31:51 +00:00
hvlad
428204cdf8 Fixed bug CORE-2368 : AV after isc_cancel_events if event was not found 2009-03-12 08:06:26 +00:00
asfernandes
2c92602c66 Close handle refering to parent process 2009-03-09 01:42:29 +00:00
robocop
cb6849f8a4 Misc. 2009-03-08 12:17:42 +00:00
hvlad
c574a32c39 Fixed bug CORE-2356 : On Windows listener process of Classic Server can't create necessary resources after restart if any worker process was present 2009-03-07 22:25:57 +00:00
hvlad
d4e7e15b85 Correction for my patch re. errors at graceful socket shutdown 2009-03-07 20:21:10 +00:00
asfernandes
9d086d289c Misc 2009-03-05 00:52:25 +00:00
robocop
4dc1d3d144 Misc. 2009-03-04 12:13:32 +00:00
dimitr
39b6dac932 Fixed the wrong assertion. 2009-03-03 15:25:34 +00:00
hvlad
fd2099aa96 Fixed bug CORE-2349 : False "Invalid SQLDA" error 2009-03-03 12:00:29 +00:00
dimitr
9dca0fa2b7 Correction related to my last commit. 2009-03-02 09:34:37 +00:00
asfernandes
283509ad8d Misc 2009-03-01 15:42:23 +00:00
alexpeshkoff
4fc28a7195 AIX port - cleanup 2009-03-01 13:23:58 +00:00
hvlad
de11e4037a Don't report wrong error at graceful socket shutdown.
Misc.
2009-03-01 10:35:43 +00:00
dimitr
fdeb9d6e53 Fixed the "bad handle" error reporting in the remote server. 2009-02-28 13:12:37 +00:00
robocop
fab6a3a6cf Get rid of superflous parentheses. 2009-02-28 11:57:40 +00:00
robocop
f309e01a7e Apply patch from Kovalenko Dmitry (Lipetsk). 2009-02-25 08:08:34 +00:00
robocop
41efd08618 Comment flag that I marked as unused years ago. 2009-02-25 05:38:27 +00:00
asfernandes
b204a1e54f Misc 2009-02-21 17:43:07 +00:00
alexpeshkoff
c69863bdd5 Clean up - code was not needed since security fix, avoiding use of UID, transfered by client 2009-02-20 16:13:32 +00:00
aafemt
c3cf2052ef Fix some mistypes that GCC doesn't tolerate 2009-02-17 17:00:22 +00:00
paulbeach
13274ac5a9 Frontport and solve symbol issue for MacOSX 2009-01-21 13:04:36 +00:00
robocop
3689f15321 Style. 2009-01-20 08:33:59 +00:00
robocop
3a03e0515c Style: aligning the opening and ending braces in switch() statements and in large blocks of code. 2009-01-18 11:36:08 +00:00
asfernandes
cd010ff939 Misc 2009-01-17 19:07:07 +00:00
robocop
5cdbf4cf00 Style. 2009-01-17 10:11:29 +00:00
hvlad
a789c93954 Avoid races - twice close handle of listener port during server shutdown. It was not dangerous but not comfortable for developers as under debugger CloseHandle() throw exception at second close attempt. 2009-01-16 23:58:10 +00:00
dimitr
4e54096846 Misc. 2009-01-16 20:25:31 +00:00
robocop
546290b68b Style. 2009-01-16 09:55:38 +00:00
alexpeshkoff
832394fd5a cleanup suggested by Claudio 2009-01-15 10:22:03 +00:00
robocop
f1fab1b53c Style. 2009-01-14 12:37:23 +00:00
robocop
b627ad2a39 Style. 2009-01-07 09:30:57 +00:00
robocop
fda9c3bc75 Style. 2009-01-05 08:22:58 +00:00
asfernandes
79e89d573d Misc 2009-01-03 19:02:04 +00:00
robocop
21bb7f3d20 Style. 2009-01-03 09:14:29 +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
a177d28d60 Misc 2008-12-31 20:22:10 +00:00
robocop
dbb595ad86 Shut up compiler warning (unreachable code). 2008-12-31 05:07:26 +00:00
robocop
d11c994960 Style. 2008-12-31 05:06:08 +00:00
alexpeshkoff
4b20155e75 Fixed CORE-2262: Client connection is abruptly terminated 2008-12-30 15:23:06 +00:00
alexpeshkoff
9bdb3ecb7c assertion is wrong for event ports - to be reviewed by Vlad 2008-12-30 15:17:50 +00:00
alexpeshkoff
e7355ab712 misc 2008-12-30 15:16:47 +00:00
dimitr
c714df0aa9 Misc. 2008-12-29 20:57:40 +00:00
hvlad
df3c623874 Fixed bug CORE-2248 : AV in server.cpp\loopThread()
Removed not needed check for request's port in parent port clients list as
a) this check not needed anymore
b) this loop is performance killer
2008-12-19 09:01:44 +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
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
hvlad
a93f6c32f0 Some thread safety 2008-12-12 10:06:32 +00:00
asfernandes
05947b7afc Misc 2008-12-12 00:55:03 +00:00
hvlad
ff268a4fb3 Sorry, again some debugging code was left 2008-12-11 11:51:10 +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
asfernandes
ff5f8745fb Remove trailing spaces (.h files) 2008-12-05 00:56:15 +00:00
robocop
d39690fbff Style (and let lines grow up to 100 columns). 2008-12-04 09:29:16 +00:00
asfernandes
744e83f240 Misc 2008-12-03 01:05:53 +00:00
robocop
9f52942ab0 Style. 2008-12-02 07:09:49 +00:00
robocop
eb6ea18df4 Misc. 2008-12-01 09:21:31 +00:00
asfernandes
c1c7a4fb31 Fix Linux build 2008-11-30 20:09:28 +00:00
hvlad
ca8b78bcff Make WNET use overlapped (non-blocking) IO. It allows to break blocked IO operations and implement force_close() call correctly.
Also don't write in firebird.log "FileRead end-of-file" error on clean disconnect and don't write more than one OS error on the same port.
2008-11-30 11:47:30 +00:00
hvlad
56e5b9b544 FB_CANCEL_OPERATION supports only by TCP\IP transport currently 2008-11-30 11:41:03 +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
hvlad
3c8c5b565c Fixed few bugs for XNET under high load. Improve XNET connections error diagnostics. Don't stop processing XNET incoming connections if one of them failed at initial stage (at XNET_conect). 2008-11-27 22:48:21 +00:00
alexpeshkoff
9ca7135efa fixed gcc warning 2008-11-24 17:04:29 +00:00
asfernandes
db82e7cd6b Misc 2008-11-06 00:23:21 +00:00
roman-simakov
4e6eaa17cd Fixed server crash by right mouse button clicking at server properties page on Windows x64 2008-11-05 16:48:27 +00:00
dimitr
d7d1e1d0a4 Let's don't use system_call_failed() for local exception handling. 2008-11-05 11:24:17 +00:00
hvlad
7918aaa256 Fixed AV in CS worker process (there was double deallocation of port).
Avoid wrong error message in firebird.log when listener is shutted down.
2008-11-04 14:22:51 +00:00
hvlad
a1ccc92d67 Fixed brocken -d mode of CS.
Fixed AV in CS worker process (there was double deallocation of port).
Add missed mutex control when port's list accessed.
2008-11-04 14:20:57 +00:00
dimitr
4c05d2d8dd Fixed CORE-2137: Database restore may crash the server when DummyPacketInterval is set. 2008-10-22 15:43:16 +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
robocop
66f41f7986 Simplify the #ifdef. 2008-10-16 08:52:16 +00:00
alexpeshkoff
065c4b0430 Disconnect all ports after shutdown of working threads 2008-10-13 16:04:15 +00:00
alexpeshkoff
1483d0e465 Need to keep reference count here too 2008-10-13 12:19:26 +00:00
alexpeshkoff
38a8b41c7f Avoid annoying messages in firebird.log 2008-10-10 15:50:07 +00:00
asfernandes
ac600b29d7 Misc 2008-10-09 00:59:56 +00:00
hvlad
ca2519263b Fixed bug CORE-2108 : "get_free_slot() failed" error 2008-10-04 19:41:18 +00:00
hvlad
857129d3f7 Initialize local variable 2008-10-04 17:46:31 +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
hvlad
c56ebce7bc Fixed bug CORE-2107 : Failed to establish TCP\IP connection with Windows Classic Server under high load 2008-10-04 17:14:51 +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
asfernandes
e25ab5a1c6 Misc 2008-09-27 02:54:30 +00:00
robocop
b461e728ad Make inet_aton a function i Windows. 2008-09-24 11:27:37 +00:00
robocop
e1487d3684 inet_aton() does not exist in Windows. 2008-09-24 09:27:11 +00:00
asfernandes
3bf8ec8fb2 Misc 2008-09-24 02:02:38 +00:00
alexpeshkoff
14f21f568e 1. Fixed CORE-2087: server binds to all interfaces in case of error in firebird.conf.
2. Fixed CORE-2093: Superserver startup fails on solaris / 64 bit.

3. Improvement CORE-2094: Make it possible to use hostname when specifying interface to listen on in firebird.conf.

Almost impossible to separate: came in one week and required modifications in same part of code.
2008-09-22 14:46:13 +00:00
asfernandes
22c65f0153 Misc 2008-09-10 02:21:13 +00:00
alexpeshkoff
b63b160fdc make multiclient server shutdown in main thread with normal main port cleanup 2008-09-08 14:06:33 +00:00
alexpeshkoff
eecaa826e3 Cleanup - put two exit handlers with different tasks into separate functions 2008-09-08 13:59:53 +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
asfernandes
a245731588 Partial fix for the Windows build 2008-08-27 15:33:56 +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
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
dimitr
6fb84abce3 Fixed CORE-2016: Client hang at use of XNET protocol in cases when database or attachment has been shut down. 2008-07-29 11:02:15 +00:00
dimitr
8f05c35f88 Misc. 2008-07-29 10:36:36 +00:00
alexpeshkoff
7c8427bc35 Separated CVT functions to common and jrd parts.
This made possible to avoid ugly CVT_move export.

Cleanup of errors handling in CVT functions.
2008-07-10 15:57:33 +00:00
asfernandes
4aa6ecbaf1 Misc 2008-07-06 18:08:23 +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
alexpeshkoff
99f17b4d00 1. Frontported fix for CORE-1944: Monitoring tables contain wrong data
2. Added new methods to Clumplet classes - date, time and floating point support.

3. Avoid endianess #ifdef's in Clumplet classes.
2008-06-24 13:07:12 +00:00
alexpeshkoff
b0f27fbf0c misc 2008-06-23 13:38:38 +00:00
alexpeshkoff
b2047f9fc7 Make SWAP_DOUBLE endianess dependent 2008-06-23 08:01:35 +00:00
dimitr
7832014210 Forward port the installer fix. 2008-06-13 14:01:45 +00:00
asfernandes
d30d6410ea Misc 2008-06-13 01:42:58 +00:00
paulbeach
d597247854 Support 64bit Darwin PPC 2008-06-09 12:02:59 +00:00
dimitr
bff84e9e7a Cleanup. 2008-06-06 15:55:36 +00:00
asfernandes
afad9993dc Misc 2008-05-31 02:34:54 +00:00
asfernandes
d5e481ba10 Linux IA-64 port 2008-05-22 15:02:59 +00:00
robocop
5cd11867ec Get rid of (ALLOC/FREE)_LIB_MEMORY macro as requested by Dmitry. 2008-05-22 09:38:21 +00:00
alexpeshkoff
ff7cfc717e Implemented Adriano's suggestion concerning fb_shutdown_callback() - added new parameter 2008-05-22 08:59:45 +00:00
alexpeshkoff
5e81cfa225 event_thread() should have own reference to the port. This minimizes chances
to get AV when client exits.
2008-05-21 12:43:41 +00:00
alexpeshkoff
796e02d2a5 1. Cleanup - use constants ISC_USER/ISC_PASSWORD instead of always repeated string constants.
2. Let services uses environment and OS auth when run embedded.
2008-05-19 13:58:37 +00:00
asfernandes
c9202a3767 Misc 2008-05-18 02:02:50 +00:00
alexpeshkoff
86cd8cb6b3 1. Added parameter 'shutdown reason' to fb_shutdown() API call. It's passed to shutdown
callback function, and helps to take correct action in it. This fixes CORE-1827: Win32
Embedded Server should pass control to application before calling exit(3).
2. Removed unneeded any more flag in isql and qli, used earlier to distinguish between
kinds of shutdown.
2008-05-16 11:31:57 +00:00
asfernandes
61ca51e7af Misc 2008-05-15 01:27:23 +00:00
hvlad
7d28033b39 Fixed bug CORE-1902 : XNET protocol does not work correctly in SuperClassic. Thanks to Alexander Potapchenko. 2008-05-14 22:33:10 +00:00
dimitr
579a979b1d Misc. 2008-05-14 17:27:07 +00:00
robocop
a2cd97355b Misc. 2008-05-14 09:24:14 +00:00
asfernandes
ee7a3f5930 Misc 2008-05-13 01:29:38 +00:00
alexpeshkoff
c0bf97f735 Make it possible to have normal operations after async ones in single network packet 2008-05-12 13:34:52 +00:00
robocop
8a28565ea7 Misc. 2008-05-08 08:19:50 +00:00
hvlad
9280a572a0 Avoid long blocking of att_mutex and make sure it is always released when attachment deleted.
Move active requests cancellation at engine shutdown from Y-valve into engine and let them stop execution before deletion of attachments.
Make sweep run in separate thread despite of engine architecture.
2008-05-04 12:49:29 +00:00
asfernandes
8d04f25fb3 Misc 2008-04-30 01:42:09 +00:00
alexpeshkoff
0ba2ab7ea7 Make fb_cancel_operation() public API call. Related cleanup. 2008-04-29 09:55:41 +00:00
alexpeshkoff
1b20fba1e9 Fixed "-s" switch in posix CS 2008-04-29 08:15:36 +00:00
alexpeshkoff
bf691d08c1 Cleanup - posix CS works with MT listener as expected. 2008-04-29 07:57:53 +00:00
robocop
649c1733e9 Misc. 2008-04-26 14:50:27 +00:00