Max Neunhoeffer
c0f1b72bab
Add "sensible" madvise calls.
...
Essentially the strategy is: A newly created and a newly opened file
is advised to be "SEQUENTIAL ACCESS", because we will either write to
it or scan it sequentially. As soon as it is sealed, we switch the
advice to "RANDOM ACCESS", because this should be the normal pattern and
aggressive read-aheads tend to be bad. The collector and the compactor
switch a sealed file back to "SEQUENTIAL ACCESS" just before they scan
it and back to "RANDOM ACCESS", when they are done.
Furthermore, all data files in a collection are advised with "WILLNEED"
just before the collection is scanned during loading.
Finally, the actual hash table of AssocMulti is advised to be random
access, although this is an anonymous map given to us by malloc and not
a memory mapped file.
2015-08-26 16:45:26 +02:00
Jan Steemann
6d7ccd7699
move shaper to cxx
2015-07-28 17:38:31 +02:00
Jan Steemann
e8205e5dc0
use new and delete for TRI_server_t
2015-07-21 11:57:04 +02:00
Jan Steemann
4d0872f2b9
more cxx
2015-07-20 18:42:02 +02:00
Jan Steemann
88198767dd
logging
2015-05-29 09:49:22 +02:00
Jan Steemann
4dde6e49cd
goodbye barriers, welcome ditches
2015-05-28 10:23:30 +02:00
Jan Steemann
a9f2769ffa
now compiles and links
2015-05-23 04:31:13 +02:00
Jan Steemann
a007a867ee
"privatized" TRI_vector_t internals.
...
This allows changing the internals of TRI_vector_t structs in order to make the struct smaller.
On 64 bits, the size of TRI_vector_t is reduced from 48 bytes to 28 bytes.
TRI_json_t does benefit from this, as its biggest component is a TRI_vector_t.
2015-05-05 10:31:02 +02:00
Jan Steemann
0f1244f72d
better export API cleanup
2015-03-31 18:44:51 +02:00
Jan Steemann
cbe8150e97
fixed potential reason for segfault
2014-11-06 12:59:50 +01:00
Jan Steemann
506936dcdb
rename orgy
2014-09-13 02:35:13 +02:00
Jan Steemann
669cb3b235
renamed files
2014-09-13 01:44:01 +02:00
Jan Steemann
0dc0bc834f
more files renamed
2014-09-13 00:20:30 +02:00
Jan Steemann
87afcf5e8d
the great rename
2014-09-13 00:10:11 +02:00
Jan Steemann
6f4ab77d9b
fixed WAL collector moving markers
2014-07-04 13:52:31 +02:00
Jan Steemann
7554ead5d4
fixed recovery
2014-07-03 16:58:10 +02:00
Jan Steemann
1bb171787f
clean up when journal creation fails
2014-06-26 13:03:45 +02:00
Jan Steemann
07d244488d
changed crud signatures
2014-06-26 12:37:01 +02:00
Frank Celler
4dcf5dc817
updated disclaimer
2014-06-20 16:40:35 +02:00
Jan Steemann
0c5950507c
fixed test
2014-06-13 17:50:44 +02:00
Jan Steemann
d7f35bcc7b
fixed datafile ticks issues
2014-06-13 14:46:21 +02:00
Jan Steemann
bc52f3408f
recovery, not functional yet
2014-06-12 18:13:48 +02:00
Max Neunhoeffer
82ab5bc0ac
More checks for protected getShaper accesses.
...
Also: Make arangodump possible using fake trx objects.
2014-06-12 10:38:39 +02:00
Jan Steemann
89f6070e01
cppcheck
2014-06-11 17:53:44 +02:00
Max Neunhoeffer
f0bef2496f
Make _shaper private and use getter/setter.
2014-06-11 11:18:22 +02:00
Max Neunhoeffer
c2bddb1c19
Let TRI_document_collection_t inherit from TRI_collection_t.
2014-06-11 10:51:47 +02:00
Jan Steemann
7c599ef893
barriers
2014-06-10 16:42:15 +02:00
Jan Steemann
aa173b315b
update cap constraint sizes
2014-06-10 13:40:33 +02:00
Jan Steemann
72a102e794
major internal changes
2014-06-08 00:12:53 +02:00
Jan Steemann
3f6cb4d9ed
fixed update policy
2014-06-06 22:53:59 +02:00
Jan Steemann
ed0377f671
moved calculation into function
2014-06-06 22:01:41 +02:00
Jan Steemann
368091d7c3
function cleanup
2014-06-06 21:35:34 +02:00
Jan Steemann
982673ef52
read "old" transactions when loading a database
2014-06-06 18:32:48 +02:00
Jan Steemann
cb4ca68c41
treat transaction markers in datafiles as garbage and ignore them
2014-06-06 17:24:36 +02:00
Jan Steemann
3b3d15b3e4
removed useless broadcast
2014-06-06 14:17:31 +02:00
Jan Steemann
4b568e6069
comments
2014-06-06 13:11:10 +02:00
Jan Steemann
362838ae69
TRI_ASSERT
2014-06-06 11:25:19 +02:00
Max Neunhoeffer
4de7e852f9
Merge branch 'mjmh' of ssh://github.com/triAGENS/ArangoDB into mjmh
...
Conflicts:
arangod/V8Server/v8-vocbase.cpp
arangod/VocBase/document-collection.cpp
2014-06-05 12:07:48 +02:00
Max Neunhoeffer
2776dc78fa
Make TRI_doc_mptr_t a C++ struct.
2014-06-05 12:03:57 +02:00
Jan Steemann
ec8742f920
removed separate index lock
2014-06-05 11:39:14 +02:00
Jan Steemann
7b7f42118e
fixed some unique constraint violation handling
2014-06-04 17:28:06 +02:00
Jan Steemann
b1e2990172
wal collection
2014-06-04 14:28:11 +02:00
Max Neunhoeffer
13541cf4ec
Rename component _data -> _dataptr in master pointer.
2014-06-03 22:27:08 +02:00
Jan Steemann
7501fad516
removed VocBase/marker.h and VocBase/marker.cpp
2014-06-02 18:06:50 +02:00
Jan Steemann
d4dd58b264
merged primary-collection.cpp with document-collection.cpp
2014-05-31 00:22:32 +02:00
Jan Steemann
ed6a55abb9
specialized primary index for faster comparisons and less datafile lookups
2014-05-29 03:35:37 +02:00
Jan Steemann
2e17f4bcd7
cppcheck
2014-05-09 00:21:17 +02:00
Jan Steemann
149f7378cb
cpp
2014-04-03 23:22:32 +02:00