Jan Steemann
c89cf82c6b
constified
2015-09-02 17:37:28 +02:00
Jan Steemann
4494b69f8e
fix compiler warnings on 32bit
2015-09-02 14:13:27 +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
0e802d6438
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2015-09-02 10:20:18 +02:00
Jan Steemann
a7dc45e966
use ReadWriteLocker
2015-09-02 10:20:05 +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
Michael Hackstein
faf0677757
Removed debug output
2015-09-01 15:05:49 +02:00
Michael Hackstein
a9e7adc1ed
Fixes in basics SkipList
2015-09-01 15:05:48 +02:00
Michael Hackstein
4409a59265
Further templatification of skiplist and fixed the tests
2015-09-01 15:05:47 +02:00
Michael Hackstein
e01f8f6b0f
Fixes for C++ification of skiplist
2015-09-01 15:05:47 +02:00
Michael Hackstein
cbd1cd7111
Removed non obsolete file for basic skiplist
2015-09-01 15:05:46 +02:00
Michael Hackstein
d50df2617c
Templatified the Basic skiplist. This avoids using void* and includes type safeness
2015-09-01 15:05:46 +02:00
Michael Hackstein
b8b129d84c
The primary index now uses the Hash-cache again
2015-08-31 11:33:12 +02:00
Jan Steemann
573c143398
constified
2015-08-29 02:18:02 +02:00
Michael Hackstein
81fa8018b0
Improved primary index lookups to use parameter by reference instead of byPointer. less error prone. Fixed some issues with it.
2015-08-28 09:28:24 +02:00
Michael Hackstein
771a6d5143
Should have dereferenced the pointer before adding sth
2015-08-28 09:28:24 +02:00
Michael Hackstein
082e49f2c1
Further adoptions of internal functionality to new Primary index
2015-08-28 09:28:23 +02:00
Michael Hackstein
6d4d41387b
Implemented sequential read and any read in Transaction.h
2015-08-28 09:28:22 +02:00
Michael Hackstein
48240bccc1
Added findSequential and findRandom in AssocUnique. Required for PrimaryIndex
2015-08-28 09:28:22 +02:00
Michael Hackstein
b791ea09da
Fixed a bug in AssocUnique.
2015-08-27 10:38:43 +02:00
Jan Steemann
1a2449193e
skiplist code cleanup
2015-08-26 22:52:41 +02:00
Jan Steemann
21793ff9f7
cppcheck
2015-08-26 21:36:44 +02:00
Jan Steemann
e8505a35f2
cppcheck
2015-08-26 21:35:57 +02:00
Michael Hackstein
2212be29c0
Merge branch 'devel' of github.com:arangodb/arangodb into devel
2015-08-26 17:10:14 +02:00
Michael Hackstein
7257bf0b9d
Skiplist and HashIndex will now print their figures if requested
2015-08-26 17:10:02 +02:00
Jan Steemann
8f2df77c30
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2015-08-26 16:59:40 +02:00
Jan Steemann
249627e21b
fixed VS build
2015-08-26 16:59:27 +02:00
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
a3550e331e
fixed makefiles
2015-08-26 16:17:45 +02:00
Michael Hackstein
4a3b8007bd
Fixed memory calculation of HashIndexMulti. And added index information for it
2015-08-26 14:38:23 +02:00
Michael Hackstein
4effa2291e
Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing
2015-08-26 10:41:27 +02:00
Jan Steemann
9374a25822
removed unused error code
2015-08-25 19:55:48 +02:00
Michael Hackstein
40c1361244
Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing
2015-08-25 16:40:31 +02:00
Jan Steemann
18f231f666
do not read memory for comparisons
2015-08-25 16:09:12 +02:00
Max Neunhoeffer
7957df9215
Merge branch 'array_indexing' of ssh://github.com/ArangoDB/ArangoDB into array_indexing
2015-08-25 13:04:48 +02:00
Max Neunhoeffer
203e9a5195
Make hashcache in AssocMulti switchable-off. Does not work yet.
2015-08-25 12:46:47 +02:00
Michael Hackstein
57c6103458
Revert "The AssocUnique index now requires only an element to insert it. They key is derived"
...
This reverts commit ea70a948e254716905a7619e72b41fbef4f66695.
2015-08-25 09:40:29 +02:00
Michael Hackstein
2d6af6e872
The AssocUnique index now requires only an element to insert it. They key is derived
2015-08-24 17:14:39 +02:00
Michael Hackstein
5b6f8b7b8e
Added a remove by key function to AssocUnique
2015-08-24 17:06:21 +02:00
Michael Hackstein
ba8264eada
AssocUnique is now a templated index. Foundation to move primary index to use it
2015-08-24 16:41:16 +02:00
Michael Hackstein
f9647962d7
Moved HashIndex/hash-array.h to Basics/AssocUnique.h
2015-08-24 14:17:49 +02:00
Michael Hackstein
2dd0f7cf7f
Continued @neunhoef 's on simplification of hash-index. The index itself will never free anything, calling class is responsible for freeing now.
2015-08-24 13:14:35 +02:00
Michael Hackstein
d43c515b56
Fixed a bug in hash index buckets. When resizing the table was not nulled correctly.
2015-08-24 11:22:53 +02:00
Michael Hackstein
b708a7ae68
Merge remote-tracking branch 'origin/devel' into array_indexing
2015-08-21 15:34:49 +02:00
Michael Hackstein
85b58a6d8d
Fixed sparse indexes
2015-08-21 14:07:32 +02:00
Michael Hackstein
9bb7c0dec6
The skiplist index is now able to index arrays as well
2015-08-21 11:04:04 +02:00
Michael Hackstein
4bb8508d82
Implemented a new improved version of the Array index insertion function.
2015-08-20 14:03:17 +02:00
Willi Goesgens
61eb1e6002
Fix vs 2015 compile issue.
2015-08-20 11:34:01 +02:00