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

768 Commits

Author SHA1 Message Date
hvlad
9ba34ee2cc New feature 2524 : Command line utility to work with Trace Service
Source code
2009-06-24 13:05:51 +00:00
robocop
72293a7f69 Style. 2009-06-24 12:11:17 +00:00
robocop
6bf88e472a Style. 2009-06-23 14:45:39 +00:00
robocop
2a8bb95ff4 CORE-1411 and CORE-1412. 2009-06-23 14:45:20 +00:00
robocop
10c08b5c2c Style. 2009-06-22 08:55:54 +00:00
hvlad
b0d1a53c8c Fixed bug CORE-2519 : GSTAT output is incorrect for tables with more than 2 billion records 2009-06-21 16:41:33 +00:00
asfernandes
dfec954860 Revert this change. HEAD was fine. 2009-06-19 14:38:23 +00:00
paulbeach
6c773c109d O_DIRECT and MacOSX problem (lack of) - better ifdefs (I hope) 2009-06-19 14:14:31 +00:00
paulbeach
fa6e39de52 O_DIRECT and MacOSX problem (lack of) 2009-06-19 13:04:30 +00:00
asfernandes
78f400fc5b Misc 2009-06-09 00:56:58 +00:00
robocop
b4a695a031 Misc. 2009-06-08 12:15:19 +00:00
robocop
913ded5189 in_sw_tab_t data member in_sw_state is bool. 2009-06-07 10:13:57 +00:00
robocop
2e3ce0d23d Misc. 2009-06-07 09:49:58 +00:00
asfernandes
f8eb935eb7 Misc 2009-06-06 18:13:57 +00:00
robocop
68f44cb6a6 Misc. 2009-06-02 09:18:59 +00:00
robocop
51d3c9b756 Let's use more typical #ifdef to test macros instead o #if. 2009-05-29 11:27:41 +00:00
asfernandes
b8c3b0dda6 Misc 2009-05-27 01:36:00 +00:00
asfernandes
2cafed53f7 Fix AV in trace when UNICODE collation is not found - thanks to Alex 2009-05-27 00:09:52 +00:00
robocop
9c79a67883 Style. 2009-05-25 07:32:39 +00:00
robocop
c7b74a3144 Style. 2009-05-24 05:24:59 +00:00
asfernandes
8595742987 Misc 2009-05-20 00:45:45 +00:00
robocop
4bae43779f Some #if should be #ifdef instead. 2009-05-17 11:25:50 +00:00
robocop
4d468895ea Misc & style. 2009-05-17 11:20:43 +00:00
alexpeshkoff
e6cf9a69be Fixed bug, reported by Dmitry privately - in isc_sync per attachment buffer can not be used for strings 2009-05-08 08:36:18 +00:00
robocop
4120f2c768 More constants instead of hardcoded numbers. 2009-05-06 09:18:21 +00:00
alexpeshkoff
cef41b3286 1. Solaric/Sparc SunProCC port.
2. Cleanup SOLARIS_MT threading model.
2009-05-05 08:06:37 +00:00
asfernandes
38a2912669 Misc 2009-05-03 21:57:13 +00:00
robocop
8edd8a7cd9 Style and misc. 2009-05-03 14:19:35 +00:00
robocop
7a60a85ff9 Misc. 2009-05-03 14:09:40 +00:00
robocop
e5b226f7a7 More unused params; style. 2009-05-02 13:00:09 +00:00
robocop
66b1227b22 Unused params, some formatting, cleanup. 2009-05-01 17:21:36 +00:00
robocop
2d7cb94844 Unused params
Some BLR checks
2009-04-28 13:08:04 +00:00
alexpeshkoff
27cfaa8c45 Solaris port 2009-04-28 10:57:59 +00:00
robocop
6016b5b6c0 Misc. 2009-04-26 13:51:56 +00:00
robocop
888000e21e Unused function params. 2009-04-26 10:24:44 +00:00
asfernandes
7be7979f3f Misc 2009-04-25 20:36:07 +00:00
robocop
679c73f358 Delete unused function params 2009-04-24 15:52:40 +00:00
alexpeshkoff
f4ac9d56b5 More posix_fadvise related improvements, misc 2009-04-23 11:07:17 +00:00
alexpeshkoff
af23324f8c posix_fadvise() does not return error code in errno 2009-04-22 06:59:26 +00:00
alexpeshkoff
25bd6e8ca5 Trivial replacement at utilities level for complete server-side function 2009-04-16 11:51:56 +00:00
robocop
1452ca21c1 Misc. 2009-04-15 06:40:17 +00:00
asfernandes
f87989041b Avoid temporary string creation - thanks to Claudio 2009-04-08 00:47:08 +00:00
asfernandes
da1eaae928 1) Improvement CORE-2404 - Match database names using correct INTL and platform rules for trace
2) Small INTL refactoration
2009-04-04 22:38:56 +00:00
asfernandes
f6f364da49 Trim trailling spaces 2009-04-04 16:39:31 +00:00
alexpeshkoff
35a6b10918 Removed debug print 2009-04-03 09:39:18 +00:00
hvlad
6082b218be Correct processing of escaped backslash when expanding logfile name pattern.
Bit better error message when regexp processing in trace config is failed.
2009-03-26 22:28:21 +00:00
asfernandes
38ac4ab183 Use SIMILAR TO regexp (with sed syntax for replacements) for trace config 2009-03-26 16:33:21 +00:00
hvlad
75e2751c50 Remove code already present in ISC_mutex_init, thanks to Adriano.
Remove some debugging code.
2009-03-13 13:41:08 +00:00
asfernandes
5f74beed6d Misc 2009-03-13 02:43:04 +00:00
asfernandes
a72750038a Do not use namespaces in header files 2009-03-13 02:35:47 +00:00
alexpeshkoff
816fa4d309 Fixed platforms that do not have O_NOATIME option 2009-03-12 12:04:41 +00:00
hvlad
829176bb0e Performance :
1. Replace FileObject by PluginLogWriter
2. Replace stack variable "line" by class member "record" to reduce need of memory re-allocation at every traced event.
2009-03-12 08:23:12 +00:00
hvlad
1c85ea4017 Implement more efficient and simple log writer for trace plugin 2009-03-12 08:16:34 +00:00
asfernandes
9234c4bf85 Misc 2009-03-07 03:09:48 +00:00
alexpeshkoff
a6e066505b Fixed CORE-2316: Throttling Nbackup on large databases 2009-03-06 17:56:05 +00:00
robocop
fab6a3a6cf Get rid of superflous parentheses. 2009-02-28 11:57:40 +00:00
robocop
2011fab246 Misc and comments. 2009-02-25 05:39:46 +00:00
hvlad
b67dc6586e Let gstat service detect engine shutdown and stop its work 2009-02-24 10:06:11 +00:00
asfernandes
edfdc10156 Use regex.h header of our extern/regex, and not the one from a completelly different POSIX system library 2009-02-21 22:09:04 +00:00
asfernandes
517f426392 Misc 2009-02-15 18:05:38 +00:00
robocop
67f9b3b656 Style (approx 100 columns per line as maximum). 2009-02-15 13:53:10 +00:00
robocop
5d92adab7b Let's better avoid the mutex taken forever when system_call_failed::raise is called and let its release be managed automatically. 2009-02-15 13:45:38 +00:00
asfernandes
f0de59cde9 Misc 2009-02-13 21:08:56 +00:00
alexpeshkoff
0d99a0d6c4 Implemented CORE-2322: added gsec and services support to control SYSDBA-like access of windows domain administrators to security database 2009-02-13 13:05:50 +00:00
robocop
67839aae66 Correction. 2009-02-13 08:11:31 +00:00
hvlad
a378308e1f Optimize a bit 2009-02-12 11:13:53 +00:00
hvlad
5dfb53a13d Try to show numeric parameters correctly 2009-02-11 21:48:48 +00:00
hvlad
1c573d9ff2 Misc 2009-02-11 14:02:26 +00:00
hvlad
6983baea22 Pass Firebird's root directory to the trace plugin with initialization info.
Allow to use relative and/or empty filenames as audit log file.
Ensure root directory ends with separator when it is used.
2009-02-11 11:36:49 +00:00
asfernandes
628eb5b557 Misc 2009-02-09 01:43:49 +00:00
robocop
096d8e78e6 Trying to be more consistent in the detection of headers (HAVE_* macros). 2009-02-08 11:38:00 +00:00
robocop
a18dc0519f Misc, style, fixing dangerous warnings, constness, etc. 2009-02-08 11:23:46 +00:00
dimitr
872a100b86 Fixed CORE-1923: "instsvc remove" returns 1 when succefully executed. 2009-02-07 19:36:18 +00:00
asfernandes
1f57b387a6 1) Replace usage of GetFileSize (trick error returning) by GetFileSizeEx - Vlad, please review if errors need to be thrown here.
2) Get rid of a numeric overflow
2009-02-05 14:23:59 +00:00
alexpeshkoff
0abb1c8fab AIX port - rem_addr is used in AIX's include files 2009-02-04 07:16:21 +00:00
alexpeshkoff
92c28bf93a make it compile on linux 2009-02-03 11:12:54 +00:00
hvlad
9d54b1a319 Avoid hardcoded numbers when nice named constant exist. 2009-02-02 22:57:05 +00:00
hvlad
bd735075ab fseek did not returned current position 2009-02-02 22:25:03 +00:00
alexpeshkoff
a8e3353145 Do not use exotic fgetpos() 2009-02-02 15:04:08 +00:00
asfernandes
cd6bd290a3 Misc 2009-02-02 13:59:24 +00:00
hvlad
0ac70bed5e Fixed few mistakes in printf formats. Use QUADFORMAT for numbers when applicable. 2009-02-02 09:01:42 +00:00
hvlad
2581247be0 Corrections 2009-02-02 08:21:47 +00:00
asfernandes
612c108e3e Misc 2009-02-02 03:35:52 +00:00
hvlad
130c67bf0f Trace plugin 2009-02-01 22:10:36 +00:00
hvlad
115602ff06 Trace services support 2009-02-01 22:10:12 +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
asfernandes
f532f6975e Misc 2009-01-21 15:42:45 +00:00
robocop
f61e25af15 Style. 2009-01-18 11:29:24 +00:00
alexpeshkoff
fa5d7a8366 Use faster method to receive bytes from firebird.log 2009-01-16 15:07:34 +00:00
asfernandes
989d851fa3 Misc 2009-01-15 03:46:48 +00:00
robocop
f1fab1b53c Style. 2009-01-14 12:37:23 +00:00
robocop
2c2fee86da Style. 2009-01-14 11:10:48 +00:00
robocop
582cdf185b Style. 2009-01-14 09:19:00 +00:00
asfernandes
647bc06ce1 Misc 2009-01-09 01:50:54 +00:00
robocop
b627ad2a39 Style. 2009-01-07 09:30:57 +00:00
asfernandes
91a4550d23 Misc 2009-01-06 17:46:08 +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
67df3facc8 Only a miracle could make this crap compile, but let's fix it a bit anyway. 2009-01-03 09:25:37 +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
robocop
7aa0ac1cd4 Shut up compiler warnings (unreferenced vars, uninitialized vars, etc). 2008-12-31 09:36:57 +00:00
robocop
d11c994960 Style. 2008-12-31 05:06:08 +00:00
robocop
e9be920cc0 Shut up some compiler warnings (some warnings should be enabled again in autoconfig_msvc.h IMHO because hiding our possible mistakes won't help us). 2008-12-30 10:52:52 +00:00
robocop
b16fc7df85 There's no need to check whether a pointer is null before applying delete or delete[]. 2008-12-21 06:13:12 +00:00
robocop
78df1ae72d Style. 2008-12-21 06:12:41 +00:00
asfernandes
582d837778 Remove trailing spaces from epp files - I had forgot them 2008-12-20 23:50:22 +00:00
alexpeshkoff
c4a7181f4c Simplified code, avoid #ifdef 2008-12-09 15:20:00 +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
alexpeshkoff
21174c13dc Removed accidentially pasted lines - thanks to Adriano 2008-12-03 07:43:15 +00:00
asfernandes
744e83f240 Misc 2008-12-03 01:05:53 +00:00
robocop
9f52942ab0 Style. 2008-12-02 07:09:49 +00:00
paulbeach
c824c78d83 Small mods for HPUX to support 2.0.5 2008-12-01 14:52:56 +00:00
alexpeshkoff
9431183e42 Implemented CORE-1667: Reading password from file/stdin 2008-11-30 17:11:56 +00:00
robocop
4ab6c03aa6 Misc. 2008-11-22 07:51:42 +00:00
asfernandes
a44fe8b249 Fixed MSVC8 build 2008-11-21 14:18:03 +00:00
alexpeshkoff
f3ed005757 CORE-1758 - added forgotten new files 2008-11-21 07:33:00 +00:00
alexpeshkoff
b4f7717eb3 Implemented CORE-1758: nBackup support in Services API. 2008-11-20 17:29:38 +00:00
alexpeshkoff
2a00a0ee81 Restore always runs without DB triggers - thanks to Adriano 2008-11-19 08:07:06 +00:00
alexpeshkoff
ff40a4e199 Implemented CORE-2197: added support for -nodbtriggers switch in gbak into services API 2008-11-17 16:29:14 +00:00
robocop
89584f8a11 Follow Dmitry's cleanup. 2008-10-21 06:20:33 +00:00
alexpeshkoff
71e7ae2217 misc 2008-10-07 07:41:32 +00:00
alexpeshkoff
9b69175326 Improvement CORE-1107: Services API extension for new (single, full) shutdown modes 2008-09-16 14:19:09 +00:00
alexpeshkoff
2e3acab9b0 Use fb_utils::init_status() to reinitialize vector 2008-09-11 13:22:59 +00:00
alexpeshkoff
a3c947ea76 Renamed Service's methods according to Claudio's request to reflect data movement direction 2008-09-11 11:51:25 +00:00
alexpeshkoff
47dfde8f95 Fixed a number of problems (races, deadlock) in gsec's error reporting.
Removed tsec_status_vector, making error reporting simpler and more reliable.
2008-09-11 11:25:35 +00:00
alexpeshkoff
836212cc85 fixed client AV in non-interactive mode 2008-09-11 09:40:02 +00:00
alexpeshkoff
370ed679ec Refactored services code 2008-09-11 09:03:08 +00:00
alexpeshkoff
04bbba056b Improved gsec's diagnostics 2008-09-10 12:48:48 +00:00
asfernandes
0f387a9bee Misc 2008-09-06 18:42:55 +00:00
alexpeshkoff
c519a71cfc Restored correct behavior - avoid duplication of error message 2008-09-05 14:19:16 +00:00
alexpeshkoff
de1cc4f41a Fixed broken by me this week use of status vector in services - thanks to D.Kovalenko 2008-09-05 11:41:00 +00:00
asfernandes
96194d08ba Misc 2008-08-31 01:10:41 +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
5a111d8427 Misc 2008-08-15 02:06:23 +00:00
alexpeshkoff
0187d66d78 Fixed multithread safety problems in security.epp when used as service.
This also fixes CORE-2022 - "EXECUTE BLOCK" statement does not support "CREATE USER".

SECURITY_exec_line() is deoptimized now, i.e. requests will be recompiled each times they are used.
It can be optimized again by passing request handles from outside world together with transaction handle,
but I see no big use in optimizing user database management code.
2008-08-12 13:46:34 +00:00
alexpeshkoff
881fd7fff8 Use FB type where acceptable 2008-07-08 07:02:10 +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
44511acf29 Avoid duplicate Service::finish() call - thanks to Roman Simakov 2008-06-26 10:58:35 +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
robocop
255f413540 Gstat doesn't need to alter its switches table (thanks Vlad for confirmation). 2008-06-12 09:03:55 +00:00
robocop
46df47034c Misc. 2008-06-10 12:28:26 +00:00
asfernandes
4822c30c70 Misc 2008-06-06 22:40:15 +00:00
alexpeshkoff
b021758834 Fixed SS build 2008-06-05 07:36:40 +00:00
asfernandes
84603f1169 Misc 2008-05-25 01:39:16 +00:00
robocop
a84cc0ec05 Cleanup. 2008-05-23 13:27:47 +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
alexpeshkoff
0552035ce5 Added transaction support in user management commands 2008-05-15 15:15:02 +00:00
robocop
5777ff76fa More VC6 cleanup. 2008-05-14 13:11:41 +00:00