asfernandes
8c0777d090
Do not overload placement new operator. That is not valid accordingly to C++ standard.
2009-05-23 02:27:05 +00:00
asfernandes
fd7245cf05
Misc
2009-05-23 01:33:36 +00:00
alexpeshkoff
25de6e92e7
Fixed alignment errors in 32-bit SPARC-64 port
2009-05-20 13:13:03 +00:00
alexpeshkoff
a37d818726
AIX port - native compiler support
2009-05-07 14:49:40 +00:00
asfernandes
10328dff3b
Misc
2009-05-06 02:02:37 +00:00
alexpeshkoff
cef41b3286
1. Solaric/Sparc SunProCC port.
...
2. Cleanup SOLARIS_MT threading model.
2009-05-05 08:06:37 +00:00
robocop
66b1227b22
Unused params, some formatting, cleanup.
2009-05-01 17:21:36 +00:00
asfernandes
9178fc4100
Misc
2009-05-01 02:46:18 +00:00
alexpeshkoff
8c983fec26
Fixed alignment issues with on-stack vary strings
2009-04-29 14:00:32 +00:00
asfernandes
1c20adb8fc
Misc
2009-04-29 01:52:49 +00:00
robocop
888000e21e
Unused function params.
2009-04-26 10:24:44 +00:00
asfernandes
877064a028
Fix warnings
2009-04-25 15:10:07 +00:00
robocop
0c0c00386e
Misc.
2009-04-24 15:25:14 +00:00
alexpeshkoff
b0a3fcc95a
Removed 2 unneeded and unused parameters from template BePlusTree.
...
One of them caused compilation errors with IBM's xlC compiler.
This is compiler bug, but as long as we can avoid it - why not?
2009-04-22 15:58:26 +00:00
robocop
c815d1f012
Misc.
2009-04-17 14:10:56 +00:00
robocop
6780b8c31e
Comments.
2009-04-17 14:10:11 +00:00
alexpeshkoff
ab4ef3b7e5
Fixed solaris atomic operations
2009-04-16 08:59:21 +00:00
robocop
0bf3d11247
Misc.
2009-04-10 14:28:35 +00:00
alexpeshkoff
06b5a69eec
Make class FileClose generally available
2009-04-09 16:44:45 +00:00
alexpeshkoff
437dea645b
Fixed xlC warnings
2009-04-08 10:21:29 +00:00
alexpeshkoff
71bc64f6e1
Fixed solaris implementation - thanks to Claudio
2009-04-06 15:44:29 +00:00
asfernandes
f6f364da49
Trim trailling spaces
2009-04-04 16:39:31 +00:00
alexpeshkoff
26d31f5e2e
Native Solaris AtomicCounter - required for non-intel build
2009-04-03 13:09:58 +00:00
alexpeshkoff
597f370678
Avoid too long lines, ensure constness
2009-04-03 12:14:07 +00:00
robocop
4480c7c405
Misc.
2009-04-01 10:49:54 +00:00
roman-simakov
257368d31c
Counter and mutex were replaced by AtomicCounter.
2009-03-19 19:08:17 +00:00
asfernandes
a6d88154ee
Misc
2009-03-18 02:43:15 +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
asfernandes
af33aefd19
Misc
2009-03-12 01:39:52 +00:00
alexpeshkoff
0d4fcd15d0
Fixed alignment - thanks to Adriano
2009-03-05 10:25:45 +00:00
robocop
c96ffd070f
Misc.
2009-03-05 06:05:50 +00:00
robocop
4d8dd1c953
Make it compile on Windows.
2009-03-05 06:05:19 +00:00
asfernandes
9d086d289c
Misc
2009-03-05 00:52:25 +00:00
robocop
f2f8c3d704
Do not use reinterpret_cast to convert from void* to a typed pointer.
2009-03-04 12:14:51 +00:00
alexpeshkoff
2a8603af7d
Formally this fixes gcc warning - no virtual dtor in class with virtual functions.
...
But this required serious reworking of InstanceControl and GlobalPtr<> classes.
GlobalPtr<> should not be directly derived from class with virtual functions -
virtual table for it's instances may become invalid in the moment,
when cleanup is needed. Therefore indirect link via InstanceList and
InstanceLink is established instead. This required also a little changes in
a way how InstanceControl is used. GlobalPtr<> usage is not changed.
2009-03-04 10:26:16 +00:00
dimitr
9f1cc5473a
Prefer explicit #includes to tricky forward declarations for template classes.
2009-03-03 15:19:50 +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
66057e976c
More changes for the improvement requested as CORE-2140 (it was never designed to work with printf escape sequences).
2009-02-12 12:58:12 +00:00
asfernandes
7ba3e7d0e5
Misc
2009-02-11 01:32:09 +00:00
alexpeshkoff
bd0d9bfe99
Add new class PointerArray and use it in RuntimeStatistics.
...
Now RuntimeStatistics has 3 #ifdef choices: SortedArray, PointersArray or Tree.
2009-02-09 14:11:16 +00:00
robocop
38f1fafbb9
Constness.
2009-02-08 12:57:49 +00:00
robocop
477faf805a
Misc.
2009-02-08 12:53:48 +00:00
robocop
096d8e78e6
Trying to be more consistent in the detection of headers (HAVE_* macros).
2009-02-08 11:38:00 +00:00
asfernandes
75c0d0f353
Misc
2009-02-05 01:08:13 +00:00
hvlad
4c65e428bb
Const
2009-02-03 18:14:41 +00:00
robocop
7bc5e3cc83
Style.
2009-02-03 11:02:00 +00:00
alexpeshkoff
6835b7f6ba
fixed gcc compile
2009-02-02 11:51:25 +00:00
hvlad
115602ff06
Trace services support
2009-02-01 22:10:12 +00:00
hvlad
bd260b0023
ConstAccessor for BePlusTree
2009-02-01 22:03:59 +00:00
hvlad
6decebcc99
Reference-counted string
2009-02-01 22:03:10 +00:00
hvlad
ea19deac75
Correction
2009-02-01 21:55:26 +00:00
dimitr
3de6ba9d83
Mirror the POSIX way of making the TLS globals thread-safe.
...
Otherwise we may crash or lock-up during the process exit.
2009-01-29 18:07:07 +00:00
asfernandes
f532f6975e
Misc
2009-01-21 15:42:45 +00:00
alexpeshkoff
322322b103
Fixed order of TLS keys destruction in POSIX build.
2009-01-19 16:16:19 +00:00
robocop
94b0541550
Style.
2009-01-15 11:04:40 +00:00
alexpeshkoff
97aca3d2b3
AIX port
2009-01-15 07:41:11 +00:00
asfernandes
989d851fa3
Misc
2009-01-15 03:46:48 +00:00
alexpeshkoff
2625a5a713
AIX port
2009-01-14 14:27:11 +00:00
alexpeshkoff
15e7df3ac7
AIX port
2009-01-14 13:58:41 +00:00
asfernandes
eed6013f7c
Misc
2009-01-11 00:40:46 +00:00
alexpeshkoff
c4fa4b094f
Removed generic (mutex-based) atomic counter. It violates fb 2.5 global variables
...
construction rules, therefore does not work at all - and even if fixed is highly
not-efficient if attempted in production build. Actually it never worked reliably
(causing random faults in places like MemoryPool), therefore it looks like it's
better not to have such buggy implementation at all.
Added AIX implememntation - using AIX atomic functions.
2009-01-09 14:44:53 +00:00
alexpeshkoff
3af8b76e69
Finished x86 solaris port
2009-01-08 17:08:04 +00:00
asfernandes
91a4550d23
Misc
2009-01-06 17:46:08 +00:00
robocop
8f1bfc71b4
Initial code to fix CORE-2140: escape sequences \n and \t aren't interpreted by the MsgPrint facility. To be tested by Vlad.
2009-01-06 09:47:24 +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
alexpeshkoff
755f52124b
Solaris port
2008-12-30 17:58:30 +00:00
alexpeshkoff
4c07423ba1
Better fix for signed/unsigned problem - thanks to Claudio
2008-12-30 14:43:46 +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
dimitr
c5e7a6a21d
If the copying is really intended to be forbidden, let it be so.
2008-12-29 13:19:05 +00:00
alexpeshkoff
bd680bcb47
Solaris port
2008-12-28 15:26:05 +00:00
alexpeshkoff
ca0dfb5c32
It was bad idea to compare size_t (unsigned) to be less 0
2008-12-28 15:25:34 +00:00
asfernandes
5a85277726
Misc
2008-12-25 14:25:01 +00:00
robocop
b6e6e537d8
Style.
2008-12-24 07:46:11 +00:00
hvlad
f612bac260
Fixed unregistered bug : incorrect result of AbstractString::equalsNoCase().
...
Hopefully this function was not used anywhere.
2008-12-23 13:32:29 +00:00
robocop
45062eef99
Simplification.
2008-12-21 10:49:48 +00:00
asfernandes
e72c46dd34
Fix GCC build
2008-12-20 15:16:05 +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
alexpeshkoff
1aead3cb62
fixed posix/intel build
2008-12-15 18:03:43 +00:00
robocop
8b20c40bf3
Misc.
2008-12-13 09:41:36 +00:00
robocop
761f0348ea
Style.
2008-12-13 09:26:00 +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
alexpeshkoff
017a5b6759
HPUX port
2008-12-11 10:59:26 +00:00
robocop
88a722c08a
The original idea is to allow ANY character to serve as segment separator (it may make sense in binary streams) when fetching data from blobs. Restore Alex' code that respected the original design.
2008-12-09 07:23:58 +00:00
asfernandes
1a9a023df5
Misc
2008-12-08 14:23:54 +00:00
asfernandes
a7d63bb8a7
Misc
2008-12-08 00:26:06 +00:00
alexpeshkoff
eda7114225
Fixed CORE-2223: Multiple bugs in gbak when working with ACLs
2008-12-05 15:06:21 +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
asfernandes
7e7e38feb0
Misc
2008-12-05 00:17:04 +00:00
paulbeach
c824c78d83
Small mods for HPUX to support 2.0.5
2008-12-01 14:52:56 +00:00
alexpeshkoff
2200a681f8
fixed some gcc warning
2008-11-28 18:49:07 +00:00
alexpeshkoff
b4f7717eb3
Implemented CORE-1758: nBackup support in Services API.
2008-11-20 17:29:38 +00:00
alexpeshkoff
d8ea120ded
AIX port - use FB_ prefix for alignment constants
2008-11-05 11:26:23 +00:00
alexpeshkoff
1125b45ebe
SAS changes - AIX port started
2008-10-30 09:33:55 +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
dimitr
230071848e
Fixed the Windows build.
2008-10-13 19:21:43 +00:00
hvlad
a3c30a6aef
Missed method (in WIN_NT implementation)
2008-10-11 10:10:01 +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
alexpeshkoff
9b69175326
Improvement CORE-1107: Services API extension for new (single, full) shutdown modes
2008-09-16 14:19:09 +00:00
alexpeshkoff
6c4f362913
AST != signal-safety since 2.5
2008-09-15 14:44:33 +00:00
asfernandes
7a5b0121d8
Misc
2008-09-14 23:17:58 +00:00
asfernandes
25d751ea32
New methods for array classes
2008-09-14 22:45:00 +00:00
dimitr
2e60c908ef
Fixed the annoying warning in 64-bit builds.
2008-09-12 14:12:47 +00:00
asfernandes
cc5b689eda
Misc
2008-08-29 02:18:50 +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
dimitr
a8d62d83db
Correction by Dmitry Kovalenko.
2008-08-25 07:02:17 +00:00
dimitr
8a9c465bdb
Misc.
2008-07-27 22:33:03 +00:00
robocop
7182bbaa8b
Style.
2008-07-16 11:15:00 +00:00
asfernandes
7f4f7b06d6
Misc
2008-07-16 01:39:12 +00:00
robocop
33117c6a62
const.
2008-07-15 11:37:49 +00:00
robocop
1d715031a6
- Make a protected function with repetitive code.
...
- Little optimization when an array is overwritten (operator= or assign).
- Misc changes.
2008-07-13 09:52:38 +00:00
alexpeshkoff
aeba7e6444
Fixed CORE-1957 & CORE-216: too many grants lose privileges. ACLs cleanup.
2008-07-11 13:50:59 +00:00
asfernandes
607f55503d
Misc
2008-07-11 02:37:23 +00:00
asfernandes
55ee33ffb5
Misc
2008-07-08 15:39:03 +00:00
alexpeshkoff
4d2e830cd5
Fixed CORE-1983: Out of memory condition in OS causes AV
2008-07-08 08:57:31 +00:00
asfernandes
0d31f7c8b4
Fx Linux build
2008-06-29 15:52:46 +00:00
robocop
f9fe3a771b
Misc: use sizeof instead.
2008-06-26 12:02:21 +00:00
robocop
b257c4a30a
Misc.
2008-06-26 11:03:53 +00:00
asfernandes
23e4059ce5
Changed attribute name NUMERIC to NUMERIC-SORT - sugested by Claudio
2008-06-25 01:46:50 +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
asfernandes
552f58dd48
Misc
2008-06-06 02:25:35 +00:00
robocop
b8ea332022
Misc.
2008-06-05 11:02:42 +00:00
alexpeshkoff
7f4b15737f
Some service for us - make errors in destructors visible to debugger
2008-06-03 11:43:42 +00:00
robocop
a1906d634f
Style.
2008-06-03 06:19:50 +00:00
robocop
07c087094d
Mostly remove useless parentheses.
2008-06-03 06:14:59 +00:00
asfernandes
dbaf050e86
Set the tdbb->request to NULL when committing an autonomous transaction, as a normal COMMIT does. This fixes assertion related to system blobs created by DDL commands in EXECUTE STATEMENT. Test case:
...
execute block
as
begin
in autonomous transaction do
execute statement 'create table x (n integer)';
end!
2008-06-01 19:14:41 +00:00
robocop
88859fdc51
Make operations a bit faster by enabling the vector to add an array of values in a single pass (the same idea as insert's overloaded version).
2008-05-25 12:16:20 +00:00
dimitr
1ebc716eb2
Misc.
2008-05-25 07:19:31 +00:00
asfernandes
4343cbfeba
Do the same kind of cleanup in jrd/pass1 as done for "proc_flag" in dsql/pass1 - recursive passing the same parameters that is changed in specific situations makes difficult to understand the logic.
2008-05-18 01:02:35 +00:00
robocop
5777ff76fa
More VC6 cleanup.
2008-05-14 13:11:41 +00:00
robocop
1cdd4e4126
Clean the sources from VC6 hacks.
2008-05-14 05:17:53 +00:00
asfernandes
fa3e3c24d1
Misc
2008-05-13 18:51:35 +00:00
dimitr
6a593eca17
Implemented CORE-1751. The changes include:
...
1) Make memory counters aggregated.
2) Add attachment pool and allocate appropriate resources out of this pool.
3) Always release attachments explicitly (via destructor).
4) Always delete user requests prior to attachment deletion.
5) Introduce memory usage counters per every monitoring object.
6) Misc refactoring.
Some pieces are still incomplete (although everything basically works), but I'd like to get feedback and testing sooner rather than later.
2008-05-06 08:41:24 +00:00
asfernandes
b2abfa3d8b
Compatibility with Valgrind 3.3
2008-04-27 18:53:33 +00:00
asfernandes
53a2090f65
Misc
2008-04-27 02:39:51 +00:00
alexpeshkoff
051eae391f
Added useful JString methods to Firebird::string
2008-04-24 15:44:54 +00:00
asfernandes
cfb2b8ee91
Misc
2008-04-23 02:19:25 +00:00
robocop
05271261e1
Style.
2008-04-19 11:11:10 +00:00
robocop
61662f5b5b
Constness and style.
2008-04-19 09:42:01 +00:00
robocop
5b0a5ded86
Style.
2008-04-18 10:03:04 +00:00
robocop
6f31045e33
Misc.
2008-04-16 09:25:36 +00:00
alexpeshkoff
c80b38952b
Avoid violating const rules - thanks to Claudio
2008-04-15 14:00:58 +00:00
alexpeshkoff
9d67aa1220
New methods in RefPtr template
2008-04-15 08:53:54 +00:00
hvlad
fe3f8c184b
New EXECUTE STATEMENT with support of external data source implementation
2008-04-09 20:18:47 +00:00
alexpeshkoff
1a1732aa14
Fixed use of nanoseconds in struct timespec
2008-04-09 13:34:25 +00:00
hvlad
ea5f555891
Corrections noted by Claudio
2008-04-06 21:58:08 +00:00
asfernandes
29fbfbb8ff
Misc
2008-04-06 14:45:51 +00:00
hvlad
981d1c558f
RefPtr : constness and new assignment operator
2008-04-05 22:39:19 +00:00
robocop
ee46acd6bc
Misc.
2008-04-03 13:17:32 +00:00
asfernandes
f0299cfb29
Misc
2008-04-03 01:11:26 +00:00
alexpeshkoff
aafed20fe1
Fixed problems with shutting down actively running engine - related with CORE-1805.
2008-04-02 14:26:17 +00:00
asfernandes
b5f62a63b0
Misc
2008-03-30 20:43:36 +00:00
robocop
ace427e4e3
exist() shortcut.
2008-03-29 13:24:22 +00:00
robocop
180928af4c
const.
2008-03-28 13:26:17 +00:00
robocop
b3de41ea87
Misc.
2008-03-28 13:25:47 +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
asfernandes
aa82019f87
Remove warnings and errors in the GCC/Linux build
2008-03-27 02:41:55 +00:00
dimitr
b87b5032ef
Changes in the TimeStamp class by Dmitry Kovalenko.
2008-03-26 10:21:04 +00:00
asfernandes
5496df8839
Misc
2008-03-26 02:13:34 +00:00
alexpeshkoff
21ca11f328
1. Moved processing of exceptions in guards' dtors to better place.
...
2. Added class Reference (RefCounted guard) and use it in the tree.
2008-03-25 08:44:11 +00:00
alexpeshkoff
68d88584b8
Fixed gcc warning
2008-03-24 15:18:26 +00:00
alexpeshkoff
e600c2b27f
Added template to be used when AutoPtr points to array
2008-03-24 15:00:53 +00:00
dimitr
a600c7789f
Validation.
2008-03-24 10:36:11 +00:00
dimitr
fda35bd451
An attempt fo speed up compilation.
2008-03-24 09:31:14 +00:00
robocop
1662d17d89
Misc.
2008-03-22 09:00:43 +00:00
asfernandes
3aca6f92b1
Misc
2008-03-21 02:42:24 +00:00
dimitr
71da9925ec
1) Added proper handle validation for dbb.
...
2) Changed dbb_sync lifestyle handling.
3) Sync'ed access to the att_long_locks.
2008-03-20 16:41:17 +00:00
dimitr
a8963cb9db
Make the reference counting a common feature.
2008-03-20 13:00:31 +00:00
dimitr
13f5cc92e1
Major cleanup of the old-style blk and allocator-based blk_type.
2008-03-19 16:09:00 +00:00
dimitr
36c89e955f
Get rid of warnings.
2008-03-18 06:29:36 +00:00
alexpeshkoff
ed25245303
Applied shutdown changes, discussed in fb-devel a week ago.
2008-03-17 16:49:47 +00:00
asfernandes
262dbadc4f
Misc
2008-03-15 17:55:27 +00:00
robocop
462e6f66a3
Use the template type.
2008-03-15 10:26:36 +00:00
hvlad
ebc4644ea1
Add check in WIN_NT's DEV_BUILD for correct mutex unlocking\deleting.
...
Implement new EnsureUnlock class for use instead of (or together with) LockGuard's if LockGuard is not usable.
2008-03-13 12:54:31 +00:00
robocop
55e17e46d7
- Made some constructor explicit and discovered that for adding one byte to a string, a temporary string was being created on the fly. Unacceptable in loops.
...
- Disabled constructor from hell for now. I wasn't the only one confused about the nature of the only argument: only looking at the signature one realizes it's a byte's value, not the initial length.
2008-03-13 10:38:39 +00:00
asfernandes
12c50384b5
Misc
2008-03-13 02:43:32 +00:00
alexpeshkoff
4139292369
added new method to posix threads mutex
2008-03-12 13:36:33 +00:00
hvlad
6c17170820
Made Mutex::tryEnter more efficient. Per Claudio request
2008-03-12 08:17:15 +00:00
hvlad
a4c75379e9
Correction, noted by Alex
2008-03-11 14:33:09 +00:00
hvlad
b033934400
Implement Mutex::tryEnter and new RefMutex class - mutex with reference counted lifetime
2008-03-11 14:08:23 +00:00
robocop
b4091ac9a6
Make them explicit.
2008-03-10 08:16:57 +00:00
asfernandes
74d8711856
Misc
2008-03-08 21:20:26 +00:00
robocop
812058f940
Totally misc.
2008-03-08 11:32:11 +00:00
robocop
1906fc5b02
Totally misc.
2008-03-08 07:34:44 +00:00
robocop
b36ed44a4b
Cleanup.
2008-03-02 09:24:11 +00:00
paulbeach
5790eae079
Fix UNIX2003 symbol issue with kinterbasdb and SuperServer.
...
Make sure that sem is used properly depening on MacOSX 10.4 or 10.5
Correct the header file in config_root.cpp to pull in MacTypes.h properly
2008-02-29 15:23:17 +00:00
alexpeshkoff
2b91ffd1ce
1. Avoid suspicious operator!().
...
2. Make GlobalPtr<> usable in static local variables.
2008-02-28 13:59:03 +00:00
robocop
c94b6c9a58
Misc.
2008-02-21 13:19:45 +00:00
dimitr
e3e9d3c172
Cleanup.
2008-02-20 15:25:20 +00:00
dimitr
7ae3eb5977
1) Make enumeration and shutdown routines SuperClassic friendly.
...
2) Cleanup and minor refactoring of the Classic shutdown routines.
2008-02-19 16:23:53 +00:00
alexpeshkoff
cbed6dbcf2
Explicit init for mutexes - thanks to Claudio
2008-02-11 09:52:32 +00:00
paulbeach
978dabb8f2
64bit MacOS use __x86_64__ instead of DARWIN64 as per Adriano
2008-02-08 10:49:25 +00:00
paulbeach
aa44c442ce
64bit MacOS
2008-02-06 16:51:00 +00:00
asfernandes
691fb487d8
Misc
2008-02-06 00:43:54 +00:00
alexpeshkoff
ee6c433597
Mutexes cleanup:
...
1. Make all firebird mutexes recursive.
2. Enable exceptions to be thrown by mutexes and process them in code where needed.
3. Catch and ignore exceptions in various MutexGuard dtors.
2008-02-05 08:21:18 +00:00
alexpeshkoff
f9a14e19bf
Use LockGuard instead of try/catch
2008-02-04 11:59:42 +00:00
alexpeshkoff
6622980725
One more common storage class
2008-02-02 17:43:59 +00:00
robocop
0d1985d1f0
Misc, explicit constructors, extra commas in enumerations, constness, etc.
2008-02-02 16:57:15 +00:00
asfernandes
6e88cb9598
Misc
2008-02-01 17:33:14 +00:00
alexpeshkoff
83ec91fb5b
Ignore exceptions in destructors in release build
2008-01-31 12:01:03 +00:00
alexpeshkoff
e231c73051
First add an element, next increase count - makes class safer in MT world
2008-01-31 11:03:55 +00:00
alexpeshkoff
9f4c2e9a61
having this methods const dangerous - thanks to Claudio
2008-01-31 10:53:18 +00:00
asfernandes
ce0ae486c5
Misc
2008-01-29 18:07:37 +00:00
alexpeshkoff
35520bc1f1
fixed posix SS - use recursive mutex to protect security DB access
2008-01-29 15:03:34 +00:00
dimitr
d57616e749
Just a little useful feature.
2008-01-29 12:16:41 +00:00
dimitr
d61abb2710
Misc.
2008-01-29 11:57:35 +00:00
dimitr
2b89d48d8f
Misc.
2008-01-29 10:20:41 +00:00
asfernandes
de8771570f
Misc
2008-01-29 01:36:41 +00:00
mkubecek
2c98e5b193
added missing namespace
2008-01-27 02:33:14 +00:00
alexpeshkoff
fa4354b0f3
Remove conditional compilation - it was raising hell in windows build
2008-01-24 15:01:02 +00:00
alexpeshkoff
0943027a19
do not initialize context pool in init() - TLS may be not ready for it
2008-01-24 11:09:37 +00:00
dimitr
e1d53429ae
Fixed the win32 build.
2008-01-23 19:27:36 +00:00
asfernandes
aea2bcb354
Misc
2008-01-23 19:03:16 +00:00
alexpeshkoff
704c3ddc11
added new file to support GlobalPtr
2008-01-23 15:55:21 +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
887206e65b
The merge is being fixed.
2008-01-16 13:38:46 +00:00
dimitr
8ef0e6aba7
The merge continued.
2008-01-16 06:24:06 +00:00
robocop
3c411cdade
No need to use the class name in a member function declaration inside the class.
2008-01-05 08:19:44 +00:00
asfernandes
0ee85c7525
Misc
2007-12-28 00:14:00 +00:00
paulbeach
8f06756d06
Minor Mods MacOS
2007-12-27 13:47:38 +00:00
paulbeach
4a2f1647fe
Apply MacOS changes to HEAD
2007-12-27 10:55:58 +00:00
robocop
11afbba54d
I don't see the point in using the class name to qualify a method declaration inside the class definition.
2007-12-22 09:37:27 +00:00
asfernandes
c27c33d750
Misc
2007-12-22 00:53:39 +00:00
paulbeach
f0e34ffc83
Apply MacOS changes to HEAD
2007-12-19 14:35:52 +00:00
dimitr
48ec3bd270
1) Make the class members more readable.
...
2) Add two methods: release() and reset() (accordingly to the ISO/IEC 14882 standard re. auto_ptr).
3) Utilize release() in DatabaseSnapshot.
2007-12-17 13:49:29 +00:00
alexpeshkoff
62dde2b68f
misc
2007-12-07 12:50:43 +00:00
paulbeach
d1a0e95271
MacOS 10.5 (Leopard) updates
2007-12-07 12:19:37 +00:00
alexpeshkoff
57ff88afec
Dropped method, compliant with STL's copy(), but never used due to presence of much better copyTo()
2007-12-03 13:29:33 +00:00
alexpeshkoff
b2ce2a8697
Fixed wrong return - thanks to Adriano
2007-11-19 10:30:59 +00:00
asfernandes
702ea9585e
Misc
2007-11-17 17:22:41 +00:00
robocop
1445f9b685
Style. I expect the code is logically equivalent to the original.
2007-11-17 10:16:04 +00:00
asfernandes
54b36766c0
Misc
2007-11-17 00:38:16 +00:00
alexpeshkoff
79d4b002f9
Fixed posix build
2007-11-15 11:31:56 +00:00
paulbeach
c823619e92
HPUX Port
2007-11-12 15:18:49 +00:00
paulbeach
7602a29b94
HPUX Port
2007-11-12 14:26:44 +00:00
skidder
e6bd5d5466
Reduce warnings on Win64
2007-10-28 08:46:14 +00:00
alexpeshkoff
5bf6bd05d9
Fixed CORE-1543: Security bug in trusted authentication
2007-10-26 13:17:33 +00:00
alexpeshkoff
7545d52870
Corrections - thanks to Claudio and Adriano
2007-10-19 08:13:33 +00:00
alexpeshkoff
df41c37643
Fixed minor 64-bit issue
2007-10-18 12:47:22 +00:00
asfernandes
3ed4d0373a
Misc
2007-10-06 16:07:31 +00:00
alexpeshkoff
752567679a
Added templates to ensure alignment in INTL
2007-10-05 14:35:01 +00:00
alexpeshkoff
e570a56187
misc
2007-09-26 17:48:20 +00:00
dimitr
af1a7bd430
Fixed the wrong assertion.
2007-09-17 05:56:16 +00:00
asfernandes
7eb068c3ee
Misc
2007-09-10 00:45:40 +00:00
robocop
7bbf9c2742
Switch to inline for now.
2007-09-05 09:41:54 +00:00
asfernandes
6fd370e90c
Do not include file more than once
2007-09-05 02:26:47 +00:00
robocop
d59376ef7c
Fix CORE-1440.
2007-09-04 08:22:48 +00:00
alexpeshkoff
63bd11815a
Removed buggy implementation of semaphore on solaris in favour of standard one
2007-08-20 13:24:59 +00:00
alexpeshkoff
92f3857b56
Never include autoconfig.h directly
2007-08-20 13:22:49 +00:00
asfernandes
b5a23c12d1
Improvements:
...
1) CORE-1387 - Add MILLISECONDS handling to EXTRACT, DATEADD and DATEDIFF functions
2) CORE-663 - EXTRACT(WEEK FROM DATE)
2007-07-31 01:22:59 +00:00
robocop
4211bbddd8
Misc.
2007-07-29 02:30:35 +00:00
alexpeshkoff
8eb5b9d7a1
Backported fix for spare space in MemoryPool
2007-07-27 13:40:39 +00:00
asfernandes
6beb5e28bd
Misc
2007-07-26 01:23:18 +00:00
alexpeshkoff
18c4c77b18
Function to put pair to map, using default value, returning pointer to it
2007-07-24 13:44:20 +00:00
asfernandes
81f1f817e2
Fixed CORE-1331 - Charset transliterations don't work with EXECUTE STATEMENT
2007-06-23 18:48:27 +00:00
aafemt
ba26b3db9e
Warning
2007-06-18 12:52:07 +00:00
alexpeshkoff
81442d2856
added missing method
2007-06-14 12:25:54 +00:00
paulbeach
1644f2cb64
MacOS Port into HEAD
2007-06-11 14:21:33 +00:00
robocop
3bfe45e966
Fix wrong indentation.
2007-06-08 08:40:23 +00:00
asfernandes
ae3c20aa55
Misc
2007-06-07 03:35:04 +00:00
alexpeshkoff
4889acba81
front-ported changes required for Solaris and Darwin
2007-06-06 09:03:33 +00:00
alexpeshkoff
77af3792c4
Null implementation for ST case
2007-06-05 07:11:39 +00:00
hvlad
217feb7a99
Fixed crash in DEV_BUILD when zero length blob is read by gbak. Reported privately by Adriano
2007-06-02 19:51:44 +00:00
alexpeshkoff
14401b0c6e
Misc
2007-05-17 12:25:54 +00:00
robocop
e058195959
Formatting and VC6 hack.
2007-05-16 06:52:23 +00:00
asfernandes
a4592b183c
Correction
2007-05-13 13:44:10 +00:00
asfernandes
bf895341ef
Fixed CORE-1256 - Table columns hide destination variables of RETURNING INTO, and others problems recent introduced
2007-05-13 01:37:54 +00:00
alexpeshkoff
2164354c90
misc
2007-05-08 08:50:17 +00:00
asfernandes
b5fab19683
Misc
2007-05-08 02:31:11 +00:00
hvlad
8a133871c0
Optimize SparseBitmap::set a bit
2007-05-04 12:37:47 +00:00
asfernandes
9d0d8bf2db
Misc
2007-05-04 01:18:25 +00:00
alexpeshkoff
6f8fb87780
Front-ported fix for CORE-1240 - any task, using libfbclient, hangs on exit on Darwin/PPC
2007-05-03 13:52:16 +00:00
asfernandes
c5cf6ea6b8
Implementation of CORE-1235: NATURAL JOIN and JOIN...USING
2007-04-29 19:04:26 +00:00
alexpeshkoff
c3d1f74d45
Removed tags, which never appear in any clumplet
2007-04-27 15:06:30 +00:00
alexpeshkoff
90b9b09261
fixed diagnostics
2007-04-26 16:15:24 +00:00
alexpeshkoff
4f56b0b690
fixed writing of SpbStart clumplet
2007-04-25 14:02:08 +00:00
skidder
04b9ec818b
NBAK synchronization rework. This should fix CORE-1151 and other Nbackup stability issues
2007-04-24 14:05:46 +00:00
asfernandes
f676883248
Misc
2007-04-21 03:27:36 +00:00
asfernandes
f5e1a35cfd
Avoid code duplication - thanks to Alex
2007-04-19 15:27:13 +00:00
alexpeshkoff
8b5dd60a66
fixed posix build after latest changes
2007-04-19 09:19:11 +00:00
alexpeshkoff
556908f3ad
Added one more clumplet style
2007-04-19 09:16:38 +00:00
dimitr
eed31fda8b
Fix for the issue reported by Michal Kubecek in fb-devel.
2007-04-18 17:01:30 +00:00
robocop
46df6dd844
Misc.
2007-04-18 11:02:41 +00:00
asfernandes
a798e403ee
Misc
2007-04-17 02:24:33 +00:00
asfernandes
9582ea243c
1) Upgrade INTL interface to undestand misc. configuration informations
...
2) Make our ICU collations work with different ICU versions (tested with ICU 3.6)
2007-04-15 15:57:12 +00:00
dchri
42ffcc8a5d
Renamed struct small to mbk_small
2007-04-11 15:55:30 +00:00
alexpeshkoff
f0d465bf34
Fixed gcc warnings, general (un)signed usage cleanup
2007-04-11 09:28:50 +00:00
robocop
22decb76f7
Misc.
2007-04-10 10:04:00 +00:00
robocop
345b422633
Inject UserBlob into QLI (not in all places).
2007-04-06 10:10:10 +00:00
alexpeshkoff
ed7baa5dc2
Misc
2007-04-05 12:35:39 +00:00
alexpeshkoff
c4c0764569
frontported from 2.0: fixed races on Darwin/386 during init
2007-04-04 12:21:09 +00:00
robocop
f4cfe6a829
Avoid some checks in the production build.
2007-04-04 08:51:27 +00:00
robocop
4391bbdcd4
Tweaks to UserBlob to support backup/restore.
2007-04-04 08:46:31 +00:00
robocop
16d2196a23
Drop useless functionality.
2007-04-03 08:19:39 +00:00
robocop
ef88fed09a
Convenience.
2007-04-03 08:19:19 +00:00
asfernandes
f4aba4e145
Misc
2007-04-03 02:31:30 +00:00
robocop
40c36704ed
Honor UCHAR.
2007-03-29 09:03:49 +00:00
robocop
870f3ecedd
Commit the full dump() member function as requested by Alex.
2007-03-29 08:22:40 +00:00
robocop
857344fff5
Ann wasted considerable time getting rid of the nasty do-while (that may fool the eye) in several places. Let's not resurrect it unless really necessary (complex code, for example).
2007-03-29 07:08:37 +00:00
asfernandes
92059f157c
Misc
2007-03-29 01:49:05 +00:00
alexpeshkoff
f15582bb93
Use 64-bit integer types, known to work cross-platform in all other places
2007-03-28 16:03:10 +00:00
asfernandes
1d51d4130e
Misc
2007-03-28 15:52:25 +00:00
alexpeshkoff
0b17525b67
fixed posix build
2007-03-28 11:54:39 +00:00
robocop
33959bebf3
Handle blob in user side with a class and optimize blob handling for bulk insertion in isql.
2007-03-28 07:14:18 +00:00
robocop
e71a03261c
This is the full SafeArg implementation for getting rid of the fixed parameter types in the messages db. Alas, the legacy messages (before FB2.1) can't be changed in number of arguments neither the types of arguments sent by callers of the MsgPrint family or the fb_msg_format functions can be changed because old clients know these legacy messages and would crash.
2007-03-28 04:20:36 +00:00
alexpeshkoff
f9ddd45e64
fixed bug in my previous commit
2007-03-01 13:07:08 +00:00
alexpeshkoff
6130ee974c
1. Fixed different behavior of hasMore() in stack and it's iterator.
...
2. Use size_t as hasMore() parameter avoiding asserts and casts
2007-03-01 12:31:43 +00:00
robocop
8065ccc177
Fixing previous hack for VC6.
2007-02-15 10:21:52 +00:00
hvlad
221a091bea
Bugfix after sparse bitmap optimization
2007-02-12 09:31:55 +00:00
aafemt
59cae9da28
Warnings
2007-02-08 10:17:06 +00:00
dimitr
fd3172ad8d
Fixed allocator assertion for some platflorms with ALIGNMENT == 8.
2007-02-05 13:33:30 +00:00
robocop
5f2c7f851f
Sorry for the hack, but I need to compile.
2006-12-31 09:18:37 +00:00
hvlad
5c2cfcc38b
Taken into account several useful notes made by Nickolay
2006-12-29 09:45:01 +00:00
hvlad
2b771cc6eb
Implement improvement CORE-1070 : Optimize sparse bitmap operations (set, test and clear) with mostly consecutive values
2006-12-27 21:30:04 +00:00
asfernandes
59d4b412ea
Misc
2006-12-20 14:31:29 +00:00
robocop
8caee6eeeb
Remove unneeded template argument list (although I'm not sure why some compilers don't like it).
2006-12-20 08:21:33 +00:00
alexpeshkoff
4980e64420
Fix CORE-988
...
class Semaphore now can work with broken versions of glibc (sem_timedwait())
2006-11-12 13:58:13 +00:00
asfernandes
88a9a84a01
Misc
2006-10-31 14:23:31 +00:00
alexpeshkoff
8f311b198b
fixed my last commit - thanks to Adriano
2006-10-31 13:54:31 +00:00
alexpeshkoff
0f363bee95
remove() methods now return pointer to next after deleted element
2006-10-31 11:24:02 +00:00
dimitr
4d4f2ade7a
Misc (64-bit related)
2006-10-29 14:16:29 +00:00
robocop
5feaeb3a27
Misc: since this file had a mixture of two coding styles, I chose one.
2006-10-07 09:29:52 +00:00
asfernandes
9c9019598a
Misc
2006-09-27 00:32:47 +00:00
dimitr
228ff32d1e
A few extentions to the clumplet classes.
2006-09-26 15:09:46 +00:00
dimitr
b0d36e202c
Fixed the issue reported in fb-devel.
2006-09-22 04:24:45 +00:00
asfernandes
4599805c7f
Detect ambiguities in implicit MATCHING of views in REPLACE
2006-09-07 03:30:31 +00:00
asfernandes
55ec30965d
REPLACE statement
2006-09-03 01:09:23 +00:00
asfernandes
2670981b70
Create common UCharBuffer based on Claudio and Alex suggestions
2006-07-31 15:43:20 +00:00
asfernandes
c13b4cc61a
Work on collation attributes:
...
1) Define a common format for it
2) Merge attributes of the base collation in the attributes of the derived one
2006-07-30 20:31:25 +00:00
asfernandes
a306af2af3
Misc
2006-07-30 02:03:13 +00:00
dimitr
81c85b64db
Misc.
2006-07-29 07:18:16 +00:00
alexpeshkoff
e08b7d4a48
Changed program's structure to avoid errors in some compilers
2006-07-26 10:00:26 +00:00
asfernandes
37284696a7
Misc
2006-07-22 03:54:43 +00:00
dimitr
884b46303c
1) Replace API encode/decode routines with TimeStamp methods
...
2) Encapsulate range checks inside TimeStamp class
3) Fixed CORE-347
2006-07-21 08:23:53 +00:00
robocop
cd0ff027d8
Consistence.
2006-06-30 07:41:39 +00:00
asfernandes
adf5bd0f63
Misc
2006-06-30 00:50:49 +00:00
aafemt
8ba3a7acf8
Warnings
2006-06-29 09:06:32 +00:00
robocop
925477292a
May be a better description.
2006-06-29 04:19:11 +00:00
alexpeshkoff
8282be0354
Front-ported fix for CORE-1 to HEAD. Do not accept badly formed clumplets any more.
2006-06-27 11:07:06 +00:00
asfernandes
6704275f76
Make compilable in MSVC6
2006-06-06 15:42:50 +00:00
alexpeshkoff
ee92258e74
cleanup
2006-06-06 11:22:33 +00:00
alexpeshkoff
13695f4993
redefinition of new/delete in non-STL case
2006-06-06 11:21:33 +00:00
dimitr
f4c78b0459
Support for 64bit I/O.
2006-06-05 14:22:56 +00:00
asfernandes
9b2b49e95b
Misc
2006-06-01 15:48:07 +00:00
kkuznetsov
bfa533238f
Fix compile error
2006-06-01 14:06:53 +00:00
mkubecek
eb55caa701
fixed a typo
2006-06-01 07:22:59 +00:00