jsteemann
0da02e2f4a
map memory-mapped datafiles/journals with PROT_READ | PROT_WRITE at the start
...
Previously, all datafiles/journals that were initially mapped were mapped with PROT_READ only, and later the memory protection was changed to PROT_READ | PROT_WRITE using mprotect().
However, on filesystems that are mounted with NOEXEC, changing the protection from PROT_READ to PROT_READ | PROT_WRITE later may fail. This has been reported in issue #2220 .
This change now maps all datafiles/journals with PROT_READ | PROT_WRITE in the beginning, and will later change the mapping to PROT_READ if no writes are required
2016-12-20 10:32:47 +01:00
jsteemann
9b42e9cee6
some improvements for memory management
...
added more memory diagnostics for memory usage:
- collection.figures() now returns a "readCache" attribute which contains the
number of and memory usage of entries in the document revisions cache for the
collection, and a "revisions" attribute with the number and memory usage
of entries in the storage engine's revision lookup table for the collection
- the default value for --database.revision-cache-target-size was changed from
75% of RAM to 30% of RAM
2016-12-15 15:30:28 +01:00
jsteemann
b96897e296
fixed some issues detected by coverity build tool
2016-12-12 15:41:54 +01:00
jsteemann
e68ba685d5
fix VS warning
2016-12-12 11:53:30 +01:00
jsteemann
f0a4d69b69
use bulk allocator for index elements
2016-12-09 21:40:49 +01:00
jsteemann
909335fc61
fix VS compile errors
2016-12-09 09:52:38 +01:00
jsteemann
350da367bd
fixes for Visual Studio
2016-12-08 17:32:46 +01:00
jsteemann
6920bb65f1
added IndexBucket.h
2016-12-08 17:31:54 +01:00
jsteemann
ce03d08e8b
added specialized fasthash version for uint64 input
2016-12-08 13:32:48 +01:00
Andreas Streichardt
82682f8d25
Wait for synchronous replication to settle
2016-12-07 18:38:15 +01:00
Jan Steemann
0ac353e109
fix solaris compile error
2016-12-07 11:44:04 +01:00
jsteemann
369b2c7bc6
added optional memory limit for AQL queries
2016-12-06 13:23:41 +01:00
jsteemann
e8a27f293c
cppcheck
2016-12-02 17:33:08 +01:00
jsteemann
20d8b91a93
added ARM port for fasthash64, added tests
2016-12-02 17:14:18 +01:00
jsteemann
aba74ae1f9
try to avoid unnecessary function calls
2016-12-01 14:02:59 +01:00
Michael Hackstein
c8db0eb2fe
Clang format fix
2016-12-01 10:38:15 +01:00
jsteemann
0ee7023085
remove usages of strerror_r
2016-11-29 10:47:02 +01:00
jsteemann
ddd0c0877b
cosmetics
2016-11-29 10:41:41 +01:00
jsteemann
fa45011ee7
code cleanup
2016-11-28 17:23:15 +01:00
jsteemann
1a4ab1d0be
hopefully fix NOATIME
2016-11-28 16:11:36 +01:00
jsteemann
2757fd91ae
handle OOM a bit more gracefully
2016-11-28 14:22:12 +01:00
jsteemann
b29f075f94
add intentionally failing operator new
2016-11-28 11:40:37 +01:00
jsteemann
17cf262d42
add NOATIME flag when opening datafiles
2016-11-28 11:25:49 +01:00
Michael Hackstein
ee4008cf2c
Fixed compile error on Mac systems in mmap files.
2016-11-25 15:23:20 +01:00
jsteemann
8c832273ba
fix wrong range size
2016-11-24 15:23:13 +01:00
jsteemann
13615a155d
experimental mlock flag
2016-11-24 10:02:51 +01:00
Michael Hackstein
90c646fc54
Added another smart graph error that disallows using system attributes for smart graphs
2016-11-22 17:54:12 +01:00
jsteemann
77e2cf5a65
fix passing of special chars in URLs in cluster
...
- this sets option CURLOPT_PATH_AS_IS to keep ".." and other special components in paths
- this also changes the behavior of StringUtils::urlEncode() to always encode the "."
character to "%2e"
2016-11-15 15:46:22 +01:00
jsteemann
68c15ebc9e
do not url-decode paths eagerly
2016-11-15 15:46:21 +01:00
Alan Plum
5788b2e3ca
Fix failing test
2016-11-13 15:08:40 +01:00
Alan Plum
c0a3f5a8a1
Better Foxx API error handling
2016-11-12 22:33:07 +01:00
Kaveh Vahedipour
1f10de105f
assembly fix relocation R_X86_64_32S against
2016-11-10 14:19:02 +01:00
Kaveh Vahedipour
a898aa03ce
assembly fix relocation R_X86_64_32S against
2016-11-10 12:36:23 +01:00
Jan Steemann
31bf14b6b7
fixed issue #2163
2016-11-10 08:56:27 +01:00
jsteemann
da2aa24703
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2016-11-09 14:46:56 +01:00
jsteemann
ab4933c994
performance optimizations
2016-11-09 14:46:50 +01:00
Max Neunhoeffer
6d5f70b6f4
Add a global DECODE_REV function in JS.
2016-11-08 10:25:35 +01:00
Kaveh Vahedipour
95c177c30c
Waiting for leader election in AgencyComm::sendWithFailover
2016-11-03 14:24:45 +01:00
jsteemann
68317bb4f2
added experimental `REGEX_REPLACE` AQL function
2016-11-03 00:40:19 +01:00
jsteemann
d5d23d381f
do not use readdir_r() anymore as it is not safe
...
...and also deprecated in newer versions of libc:
http://man7.org/linux/man-pages/man3/readdir_r.3.html
That man page recommends to use plain readdir() because it can be expected
to be thread-safe in reality, and newer versions of POSIX may require its
thread-safety formally, and in addition obsolete readdir_r() altogether
2016-11-02 22:53:25 +01:00
Frank Celler
7df02164ee
fixed supervisor startup
2016-11-02 19:37:49 +00:00
jsteemann
757085fbe4
remove structures.h (only needed by json.h)
2016-11-01 15:34:18 +01:00
jsteemann
31bbbb454f
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2016-11-01 15:23:49 +01:00
jsteemann
31350a5c14
micro optimizations
2016-11-01 15:23:28 +01:00
jsteemann
93cb35eac5
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2016-10-31 13:11:23 +01:00
Jan Steemann
afadad7ad4
don't create temporary strings
2016-10-31 13:09:52 +01:00
Michael Hackstein
8b763b8684
Fixed cluster hashing when only hashing by _key.
2016-10-31 12:53:43 +01:00
jsteemann
cf820e6530
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2016-10-31 10:12:45 +01:00
jsteemann
cfc9ecd198
fix Visual Studio complaints
2016-10-31 09:59:18 +01:00
Michael Hackstein
8f0a1f47f8
Fix for ShoretestPath in Cluster. Does only show up with > 1 shards. Adapterd tests to use 4 shards instead of 1.
2016-10-31 09:19:49 +01:00