Frank Celler
eed90fc588
fixed cppcheck warnings
2016-09-09 15:08:48 +02:00
jsteemann
be820ac927
fix freeing of nullptr
2016-09-01 08:42:17 +02:00
jsteemann
2d1e0bd3ae
fixed some leaks
2016-08-31 15:30:47 +02:00
jsteemann
50d4d5493c
Merge branch 'devel' of https://github.com/arangodb/arangodb into generic-col-types
2016-08-26 15:32:24 +02:00
jsteemann
4f994f70b5
fix compile warning
2016-08-26 15:31:57 +02:00
jsteemann
598990eb5c
Merge branch 'devel' of https://github.com/arangodb/arangodb into generic-col-types
2016-08-26 15:27:37 +02:00
Wilfried Goesgens
1de83c020d
fix windows compile problems.
2016-08-26 14:17:28 +02:00
Wilfried Goesgens
3d6810ecfe
If we have relative paths that are working, make them absolute so they still work after CWD's of arangod
2016-08-26 12:50:48 +02:00
jsteemann
07055384b8
Merge branch 'devel' of https://github.com/arangodb/arangodb into readcache
2016-08-24 17:34:59 +02:00
Wilfried Goesgens
1f162ac882
Implement scheme to more clever pass the directories from the build process to the run-time
...
We will now try to evaluate the toplevel install directory from the configured binary dir.
We will use this toplever directory when searching for other directories.
2016-08-24 14:45:08 +02:00
jsteemann
b54f0a15d8
removed last occurrence of TRI_vector_t in arangod
2016-07-26 08:04:30 +02:00
jsteemann
e03cf68861
ignore revision ids
2016-07-12 13:54:41 +02:00
Andreas Streichardt
e6e7363901
Remove lockfile if we are the same (now stale) pid
...
fixes docker setups (our pid will always be 1)
2016-06-30 12:14:56 +02:00
Frank Celler
8635ddad43
do NOT follow symlinks on recursive delete
2016-06-17 10:51:35 +02:00
jsteemann
bd31f53802
avoid warnings with g++6
2016-06-15 20:10:09 +02:00
jsteemann
01b3c8f99b
fix lockfile handling
2016-05-27 14:08:14 +02:00
Frank Celler
f6516398af
changed config directory to arangodb3
2016-05-04 13:51:16 +02:00
Jan Steemann
992e7ee143
fixed boost tests on Windows
2016-04-28 12:09:06 +02:00
Frank Celler
d6e8046992
updated cleanupCFiles
2016-04-23 16:34:57 -07:00
Frank Celler
5335a5b0af
moved to Random
2016-04-21 22:53:20 -07:00
Frank Celler
17cd890132
WIP
2016-04-16 20:29:33 -07:00
Frank Celler
cd91d3654e
Merge remote-tracking branch 'origin' into FMH
2016-04-15 19:01:38 -07:00
jsteemann
607efe8f89
removed unused function
2016-04-09 10:57:07 +02:00
Jan Steemann
f2e2dbb435
pacify valgrind
...
added assertion
added assertions
2016-04-08 15:05:08 +02:00
Frank Celler
e83c1f09b4
WIP
2016-04-02 23:41:21 +02:00
Frank Celler
86fe838a68
new logger
2016-03-22 21:09:48 +01:00
jsteemann
279fb105e2
cppcheck
2016-03-09 22:57:49 +01:00
Jan Steemann
b393c3d9bb
Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk
2016-03-09 09:42:10 +01:00
Frank Celler
dfa9047484
switch arangosh to new ApplicationFeatures and ProgramOptions
2016-03-08 23:32:43 +01:00
jsteemann
053648b36c
simplifications
2016-03-04 02:25:18 +01:00
Frank Celler
c88a68358d
CMAKE changes for Windows and Solaris
2016-03-01 17:31:30 +01:00
Frank Celler
e269b97517
cleanup of OS defines
2016-02-23 12:26:10 +01:00
Wilfried Goesgens
ee94d45bea
Use fcntl instead of flock, this is more modern and better portable.
2016-02-12 17:03:16 +01:00
Jan Steemann
33061cab76
fixed Windows build
2016-02-01 12:23:43 +01:00
Jan Steemann
b7abf5a40d
attempt to fix Windows build
2016-02-01 12:04:28 +01:00
jsteemann
353c9732b7
removed last LOG_xxx macros
2016-01-30 04:03:18 +01:00
jsteemann
9482ee1cca
use Logger
2016-01-30 00:08:35 +01:00
Jan Steemann
9046e1831b
clang-format
2016-01-27 13:43:46 +01:00
Jan Steemann
ee6d77c425
some locks removed
2016-01-26 16:43:21 +01:00
Jan Steemann
097de21d33
fixed mismatched free/delete
2016-01-25 13:47:41 +01:00
Frank Celler
2a590d16d4
mutex is not necessary, because it is initialized in the boot phase
2016-01-22 14:19:00 +01:00
Wilfried Goesgens
c99910e6ea
Fix indention, broken merge
2016-01-22 13:22:06 +01:00
Frank Celler
d3330bdf9b
fixed temp path to honor TMPDIR
2016-01-22 13:16:25 +01:00
jsteemann
ef67a496e6
more checks & asserts, C API cleanup
2016-01-20 22:08:11 +01:00
jsteemann
9f0576c65f
don't rely so much on namespace std being present
2016-01-08 01:05:06 +01:00
Jan Steemann
3ad20c0cae
auto-generated headers
2016-01-06 18:41:51 +01:00
Jan Steemann
a3b026d9d1
removed useless sections from code, unified include guards
2016-01-06 14:15:22 +01:00
Jan Steemann
9a1d7959e9
merged string-buffer.h and StringBuffer.h
2016-01-06 13:24:09 +01:00
Jan Steemann
f422576ee0
clang-format
2016-01-05 17:43:24 +01:00
Max Neunhoeffer
c7f00bfeda
Continue work on TODOs.
2015-12-23 14:40:04 +01:00
Jan Steemann
2b3f3f997b
Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack
2015-12-17 10:59:30 +01:00
jsteemann
1e98af01ba
set cloexec for file descriptors
2015-12-15 20:30:28 +01:00
Michael Hackstein
02784df7f8
Updated file list function to use std::vector<std::string> instead of TRI_string_vector_t.
2015-12-08 15:10:03 +01:00
Frank Celler
3500e569a8
reverted 011117edee
, 72c8847324
, 5da5715fa9
, a371aac4af
, 7decf1560a
, 0331ff7993
, 6ec2014052
, ae8d686ae6
, 7efd0a1ec7
, 3449b87e2c
, d35a4034ef
, 7b3c1ed4dd
, e0c88e4a1a
, 952d643101
, fc9de8ed08
, 2f4319b31a
, 105662d5ba
, 0a08833b0f
, 4ac19a99fc
, 4c5494c67d
, 528bb85b30
, 528bb85b30
becuase of missing CLA
2015-11-03 10:19:25 +01:00
Jan Steemann
775292224a
don't leak lockfile descriptor at shutdown
...
the descriptor will be freed by the OS anyway at shutdown, but fixing this will make the leak disappear from the Valgrind output
2015-09-17 18:02:59 +02:00
Jan Steemann
2e617ac0cc
Merge branch 'american-english' of https://github.com/CoDEmanX/ArangoDB into devel
...
Conflicts:
arangod/Wal/Slots.cpp
lib/Basics/debugging.cpp
lib/Basics/files.cpp
2015-09-02 13:14:49 +02:00
Jan Steemann
a80d6635ab
create fat datafiles
...
This prevents SIGBUS when a sparse datafile is accessed and the disk is full. In
this case the mmapped region is not necessarily backed by physical memory, and
accessing the memory may crash the program
2015-09-02 10:18:24 +02:00
CoDEmanX
956b396e43
Change spelling of 'initialize' to American English (actual code and files)
2015-09-01 17:29:22 +02:00
CoDEmanX
b4593a7e82
Change spelling of 'initialize' to American English (comments and log messages only)
2015-09-01 17:07:21 +02:00
Jan Steemann
907e6368c6
some unused function cleanup
2015-08-17 12:43:09 +02:00
Jan Steemann
0400737ae4
some flock diagnostics
2015-08-04 09:57:28 +02:00
Jan Steemann
23f8f2f86b
nullptr
2015-07-30 22:43:02 +02:00
Jan Steemann
a9f2769ffa
now compiles and links
2015-05-23 04:31:13 +02:00
Jan Steemann
e1312f2088
attempt to satisfy scan-build a bit
2015-04-16 11:47:18 +02:00
Willi Goesgens
11100ffc85
Get the windows directory creation without driveletters right (finally)
2015-04-15 14:47:31 +02:00
Willi Goesgens
84e88d01b7
Port CopyRecursive to mac
2015-04-15 13:39:09 +02:00
Willi Goesgens
fb768d7532
Fix windows implementation of xcopy
2015-04-15 13:01:07 +02:00
Willi Goesgens
40c5e18481
- We _must_ evaluate the return values of these system calls.
...
- fix windows driveletter detection.
2015-04-14 17:16:44 +02:00
Willi Goesgens
6579eefc33
Add function that can copy files recursive.
2015-04-14 14:46:17 +02:00
Jan Steemann
8c20002737
merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2015-03-19 16:03:26 +01:00
Jan Steemann
7dc3fc3d5c
safely create collections and databases
2015-03-19 15:56:12 +01:00
Willi Goesgens
ccf795a303
System error messages for lock-files in windows.
2015-03-19 14:15:00 +01:00
Jan Steemann
8ec3d7b619
fixed Windows compile errors
2015-03-18 18:10:49 +01:00
Willi Goesgens
a95a496920
Add (unix) implementation for chmod
2015-03-18 13:41:26 +01:00
Frank Celler
0687e4e080
removed registry entry, using relative path to binary instead
2015-03-08 20:06:18 +01:00
Willi Goesgens
edd26f59ba
Don't return file exists as an error.
2015-02-24 11:48:49 +01:00
Jan Steemann
e4b0c841f5
fixed memleak
2015-02-24 08:42:51 +01:00
Willi Goesgens
270f7cc919
Fix temp-file generation broken when adding error handling.
2015-02-23 16:52:03 +01:00
Willi Goesgens
dcac88c35a
Fix error message on tempfile creation
2015-02-23 15:28:46 +01:00
Willi Goesgens
f435789105
Fix double free introduced in last commit.
2015-02-23 12:48:52 +01:00
Willi Goesgens
a58974d773
Improve error handling
...
- directory creation
- zip extraction
2015-02-23 12:26:49 +01:00
Willi Goesgens
54892f51ef
First map the error, then return it to the caller.
2015-02-20 16:12:38 +01:00
Willi Goesgens
e4b52b7c47
Map windows directory errors to TRI
2015-02-20 16:03:03 +01:00
Willi Goesgens
9536857060
Fix windows build.
2015-02-20 13:04:01 +01:00
Willi Goesgens
cd9ad14160
Fix error handling in directory creation: only catch errors of directory existing; throw meaningfull error message.
2015-02-20 12:55:46 +01:00
Willi Goesgens
8ce7be78e2
improve error message while moving files - now contains source, destination and system error.
2015-02-19 19:25:05 +01:00
Willi Goesgens
c25199219d
Fix missing branch of TRI_LocateConfigDirectory for windows
2015-01-23 14:59:42 +01:00
Willi Goesgens
611d7648c7
Return configured path (if)
2015-01-20 19:43:15 +01:00
Willi Goesgens
f8ecab9216
fix typo
2015-01-20 17:29:08 +01:00
Willi Goesgens
b66796e69f
Add sysconfdir on the winxx implementation too, so we can have etc/relative installations.
2015-01-20 16:48:11 +01:00
Jan Steemann
906d22a691
make fs.move() behave identical on Linux and Windows
...
Conflicts:
CHANGELOG
2015-01-12 20:13:11 +01:00
Frank Celler
b2c927ec70
fixed company name
2014-12-26 12:39:15 +01:00
Frank Celler
4690276775
moved GetModuleFileName to TRI_LocateBinaryPath
2014-12-26 12:03:45 +01:00
Jan Steemann
2808e4eee8
cppcheck
2014-10-28 00:35:18 +01:00
Max Neunhoeffer
183cd3eb40
Sort out temporary directory creation with individual names.
2014-10-16 20:08:21 +02:00
Jan Steemann
e37f45253f
fixed return code of mtime
2014-10-15 18:24:01 +02:00
Jan Steemann
edae662eb4
added res.send() and res.sendFile()
2014-10-15 17:33:10 +02:00
Jan Steemann
6511fec7c6
added tests for fs.read and fs.write
2014-10-15 12:44:04 +02:00
Jan Steemann
c0a9d189c5
better error messages if mkdir fails
2014-09-18 17:48:05 +02:00
Jan Steemann
5a1dc63946
fixed tons of compile errors in VS
2014-09-15 12:04:49 +02:00