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
dimitr
a173b38a2a
Simplification.
2008-12-11 09:11:43 +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
asfernandes
bb35b7313e
CORE-1667 - Reading password from file/stdin:
...
- Fixed crash when non existent file is passed
- Implement password hiding for Windows
2008-12-02 00:04:42 +00:00
alexpeshkoff
2340d1f9d3
CORE-1667 - turn echo off
2008-12-01 15:40:27 +00:00
paulbeach
c824c78d83
Small mods for HPUX to support 2.0.5
2008-12-01 14:52:56 +00:00
robocop
eb6ea18df4
Misc.
2008-12-01 09:21:31 +00:00
robocop
356191b67d
Make it compilable on Windows again.
2008-12-01 09:20:46 +00:00
hvlad
5aa33681eb
Misc
2008-12-01 07:28:13 +00:00
asfernandes
a5ff7ca091
Misc
2008-12-01 01:26:27 +00:00
alexpeshkoff
9431183e42
Implemented CORE-1667: Reading password from file/stdin
2008-11-30 17:11:56 +00:00
alexpeshkoff
2200a681f8
fixed some gcc warning
2008-11-28 18:49:07 +00:00
hvlad
c88151c080
Split class system_call_failed into two exception classes : system_error and system_call_failed. system_error is an wrapper for OS errors and system_call_failed inherits from system_error and calls abort() when exception raised. system_error intended for the cases where failure of OS call is expected and can be handled.
2008-11-27 20:16:46 +00:00
asfernandes
4c9513dbd8
Misc
2008-11-23 21:54:56 +00:00
alexpeshkoff
016b4f6c39
An attempt to save some space on stack in VC builds.
...
It was detected by Dmitry, that VC has rather non-standard rules when allocating
stack variables. I can provide omitted here details, but the result was about 13K on stack
per each PASS1_node() invocation (gcc consumed only 1.25K for it). With allocation of
status array from the pool problem became much less dangerous, but stack consumption is still
rather big in VC. This version of classes makes on-stack memory, used by each instance
of the class, as small as possible - sizeof(void*). Therefore please don't blame me
for 'strange' internals of Arg classes.
2008-11-23 14:34:39 +00:00
alexpeshkoff
b4f7717eb3
Implemented CORE-1758: nBackup support in Services API.
2008-11-20 17:29:38 +00:00
alexpeshkoff
1030c9f189
Make it possible to build firebird on NFS drive
2008-11-11 16:59:23 +00:00
alexpeshkoff
d8ea120ded
AIX port - use FB_ prefix for alignment constants
2008-11-05 11:26:23 +00:00
dimitr
65bcdc368d
Fixed the build.
2008-10-31 12:01:57 +00:00
alexpeshkoff
b63bf80ede
Avoid too deep stacks
2008-10-31 11:14:37 +00:00
alexpeshkoff
1125b45ebe
SAS changes - AIX port started
2008-10-30 09:33:55 +00:00
asfernandes
cbed660d28
Misc
2008-10-28 00:16:20 +00:00
hvlad
38fa6082be
Remove unused method
2008-10-27 09:03:46 +00:00
hvlad
f6398cad07
Fixed bug CORE-2151 : Temp directory with space in the middle wrongly truncated from the rightmost space
2008-10-25 09:54:19 +00:00
robocop
d50c65a3d9
Close some of my favorite B.O.'s since FB1. To be reviewed by Vlad.
2008-10-21 06:17:03 +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
alexpeshkoff
4e0d36e598
Make ctor compatible with vector prepared by init_status()
2008-09-11 13:06:31 +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
asfernandes
0f387a9bee
Misc
2008-09-06 18:42:55 +00:00