Jan Steemann
a3f7002a41
less pause for matching parens (helps when copy & pasting code into the shell)
2015-09-14 17:44:29 +02:00
Jan Steemann
75ccd7e2cc
fixed incremental sync method
2015-09-14 17:44:12 +02:00
Jan Steemann
e08d840b47
replication API documentation
2015-09-14 15:30:00 +02:00
Jan Steemann
5865ca7955
lol self
2015-09-08 15:16:10 +02:00
Jan Steemann
18963d635c
fix leak
2015-09-08 15:06:43 +02:00
Michael Hackstein
1afd19e550
Fixed the resizing of AssocUnique. It was different from AssocMulti which cased the nonUnique index to be faster than the unique one
2015-09-08 11:48:57 +02:00
Jan Steemann
3e468fcf38
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2015-09-07 20:01:42 +02:00
Jan Steemann
62714a50f9
less OpenSSL leaks
2015-09-07 20:01:31 +02:00
Jan Steemann
8b599b5274
changed some include headers around
2015-09-07 17:09:10 +02:00
Jan Steemann
b6a1684605
primary index speedup
2015-09-07 16:22:39 +02:00
Jan Steemann
39939fc1c9
primary index initial insertion speedup
2015-09-07 13:05:02 +02:00
Jan Steemann
5bf02f9eb9
removed assert, because a clang
2015-09-07 11:31:19 +02:00
Jan Steemann
9228fd0e89
added assertions
2015-09-07 11:07:54 +02:00
Jan Steemann
f45d9f5bc7
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2015-09-07 09:39:50 +02:00
Jan Steemann
b74d608180
fixed my own bug
2015-09-07 09:39:21 +02:00
CoDEmanX
8aa78dcb7f
Fix some more typos
2015-09-05 17:18:04 +02:00
Jan Steemann
21d023b502
fixed inconsistent ifdefs
2015-09-04 18:14:55 +02:00
Jan Steemann
47360f4511
added tests
2015-09-04 14:21:31 +02:00
Willi Goesgens
771c291042
Merge pull request #1472 from CoDEmanX/devel
...
More Americanization
2015-09-04 09:15:30 +02:00
Jan Steemann
06760a2c45
fixed broken index scan
2015-09-03 22:49:53 +02:00
CoDEmanX
3a9648d78a
More Americanization
2015-09-03 22:25:43 +02:00
Michael Hackstein
630c8fd42f
Improved Primary Sequential read
2015-09-03 16:25:24 +02:00
Jan Steemann
ec61d921f6
fixed typo
2015-09-03 13:55:07 +02:00
Jan Steemann
ad67d59fc9
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2015-09-03 13:54:01 +02:00
Jan Steemann
ad6ca31201
use unique_ptr
2015-09-03 13:53:50 +02:00
Jan Steemann
5c44c968ef
no additional memory allocations in maintainer mode, no zone comparisons on free
2015-09-03 13:15:49 +02:00
Jan Steemann
73d087f788
delete random implementation on shutdown
2015-09-03 13:08:13 +02:00
Michael Hackstein
0edccb5ca3
The AssocUnique does not require the key element for insertion any more. It needs two functions instead: Compare identical and compare element keys.
2015-09-03 10:16:15 +02:00
Michael Hackstein
481cb1b7dd
Removed const in AssocMulti batch insert. It was non-const casted internally...
2015-09-03 10:16:15 +02:00
Michael Hackstein
9001e88a89
Added a general batch inserter for AssocUnique. Not used in any index yet
2015-09-03 10:16:14 +02:00
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
a3ee707f6f
less creations of empty headers maps
2015-08-30 22:11:18 +02:00
Jan Steemann
a9d63a0612
do not advertise support for delate encoding in `org/arangodb/request` by default
2015-08-29 02:46:01 +02:00
Jan Steemann
573c143398
constified
2015-08-29 02:18:02 +02:00
Jan Steemann
a253a5d320
do not halt on single-line comments
2015-08-28 16:41:14 +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
Jan Steemann
abea80ac53
issue #1436 : deflate responses encoded with `content-encoding: deflate`, too
2015-08-27 15:16:32 +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
Jan Steemann
61243ebb7b
Merge branch 'devel' of https://github.com/arangodb/arangodb into array_indexing
...
Conflicts:
arangod/HashIndex/hash-array-multi.cpp
arangod/Indexes/HashIndex.cpp
2015-08-26 15:01:29 +02:00
Michael Hackstein
4a3b8007bd
Fixed memory calculation of HashIndexMulti. And added index information for it
2015-08-26 14:38:23 +02:00
Jan Steemann
5bf32095a1
print abortion
2015-08-26 12:02:43 +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
Jan Steemann
c07e32427b
issue #1458 : HTTP code 500 when unique constraint violated
2015-08-25 19:29:05 +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
Jan Steemann
deb7830615
fix dump/restore filenames
2015-08-20 02:47:00 +02:00
Jan Steemann
97d67e4399
use binary-safe string representations
2015-08-20 01:46:20 +02:00
Jan Steemann
1be3733a64
moved some handlers around
...
fix disappeared handlers
2015-08-20 01:26:52 +02:00
Jan Steemann
0e3fddf917
fixes for VS2015
2015-08-19 17:18:13 +02:00
Max Neunhoeffer
ff135a10ad
Add some overrides to silence a clang compiler warning.
2015-08-19 14:46:06 +02:00
Michael Hackstein
241905c42c
Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing
2015-08-19 12:51:53 +02:00
Jan Steemann
65424143c6
fix VS build
2015-08-19 12:37:34 +02:00
Jan Steemann
28ad41defc
fix compile warnings
2015-08-19 12:22:34 +02:00
Jan Steemann
e9a598c020
do not include deprecated header
2015-08-19 12:01:12 +02:00
Michael Hackstein
1a4d59d954
Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing
2015-08-19 11:57:12 +02:00
Jan Steemann
6680f3bb5a
fix Mac build
2015-08-19 11:56:41 +02:00
Michael Hackstein
59e8ea3fad
Merge branch 'devel' of github.com:arangodb/arangodb into array_indexing
2015-08-19 11:56:34 +02:00
Jan Steemann
9f0384284f
moved files
2015-08-19 11:19:37 +02:00
Jan Steemann
edd1e90511
clean up shell implementation code
2015-08-18 18:10:27 +02:00
Jan Steemann
8677da48b1
replication API enhancements, not yet ready
2015-08-18 18:08:20 +02:00
Jan Steemann
338dd7e100
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2015-08-17 18:41:13 +02:00
Jan Steemann
4e771b2728
replication improvements
2015-08-17 18:41:05 +02:00
Willi Goesgens
35de50d153
set the mac to add hashes too.
2015-08-17 17:31:15 +02:00
Michael Hackstein
e867181a72
Merge remote-tracking branch 'origin/eimerung_hashindex' into array_indexing
2015-08-17 15:58:53 +02:00
Michael Hackstein
2c0bdb5861
Added a function in the attribute parser to transform an expanded attribute to the correct path for pid.
2015-08-17 12:43:13 +02:00
Max Neunhoeffer
1ba7587fc0
Rename ThreadProtector to DataProtector.
2015-08-17 12:43:12 +02:00
Jan Steemann
a8428877e7
some cleanup
2015-08-17 12:43:12 +02:00
Jan Steemann
4db822443b
allow non-const access to string-buffer
2015-08-17 12:43:11 +02:00
Michael Hackstein
8e3e2d547d
Do not push <Class const> into vector. It does not work everywhere
2015-08-17 12:43:11 +02:00
Jan Steemann
98106510d2
remove CONST_CAST helper
2015-08-17 12:43:11 +02:00
Jan Steemann
6262614ce3
delay supervisor startup
2015-08-17 12:43:10 +02:00
Jan Steemann
205d1e73ed
fix Visual Studio compile errors
2015-08-17 12:43:09 +02:00
Michael Hackstein
d7d00a5d0d
Fixed index comparision with multiple components. Introduced by AttributeName format.
2015-08-17 12:43:09 +02:00
Max Neunhoeffer
a18faae89f
Untemplatify ThreadProtector for those with gcc < 4.9.2.
...
We will revert this later once everybody has gcc >= 4.9.2.
2015-08-17 12:43:09 +02:00
Jan Steemann
907e6368c6
some unused function cleanup
2015-08-17 12:43:09 +02:00
Michael Hackstein
c2338d80d0
A user can now create an indux on attribute[*] which will put an index on attribute and ignores the expand flag. Does not harm any feature in AQL now.
2015-08-17 12:43:08 +02:00
Michael Hackstein
17a8f73a06
Now the input for indexes is parsed using the new attribute parser. This means the flags for expanded Attributes are set. Also introduced a transformation function to transform an attributeName list back into a string.
2015-08-17 12:43:07 +02:00
Max Neunhoeffer
a5cb29e026
Improve the explanation of ThreadProtectors.
2015-08-17 12:43:06 +02:00
Max Neunhoeffer
49f74b1baf
Replace DataGuardian by ThreadProtector.
2015-08-17 12:43:06 +02:00
Jan Steemann
5faf5d8248
provide more information on arangod startup and shutdown in supervisor mode
2015-08-17 12:43:06 +02:00
Jan Steemann
cc42bd1c85
log logfiles location on startup
2015-08-17 12:43:06 +02:00
Michael Hackstein
8fbb2739b0
The indexes can now use the new AttributeName struct which contains a flag if the attribute should be Array-Indexed. Right now this flag is hard-coded to false in all cases and not persisted.
2015-08-17 12:43:05 +02:00
Michael Hackstein
c85d5e347a
Implemented a new AttributeNameParser this is able to identify [*] expansion and shall be used for array indexes. Also includes tests.
2015-08-17 12:43:05 +02:00
Jan Steemann
46565e4daf
fix parallel insertion
2015-08-17 12:43:05 +02:00
Max Neunhoeffer
6d5d14a3ed
Merge branch 'devel' of ssh://github.com/ArangoDB/ArangoDB into devel
2015-08-17 12:40:16 +02:00
Jan Steemann
6a46fd55ec
added explicit
2015-08-17 00:14:53 +02:00
Jan Steemann
69721a6cca
fix handling of socket read/write errors
2015-08-16 22:42:27 +02:00
Jan Steemann
46c8d042ae
fix busy waits in scheduler threads
2015-08-16 22:08:25 +02:00
Jan Steemann
57cb32bdf6
close connections
2015-08-14 18:16:35 +02:00
Jan Steemann
dd378089bc
close connection on I/O errors
2015-08-14 14:59:32 +02:00
Jan Steemann
b81b4c32e0
removed AsyncTask
2015-08-14 11:55:02 +02:00
Jan Steemann
006bf3d2c1
Revert "fix assertion"
...
This reverts commit 9e1ffac077452187acd4d652b4480495f4a2b608.
2015-08-14 11:37:39 +02:00
Jan Steemann
0aa3bb6104
fix assertion
2015-08-14 11:37:00 +02:00
Jan Steemann
17d1f254a9
silence VS
2015-08-14 11:02:18 +02:00
Jan Steemann
43896b3daf
change version string
2015-08-14 01:23:25 +02:00
Jan Steemann
e754f0c3f0
cppcheck
2015-08-14 01:23:17 +02:00
Jan Steemann
57e9b55739
use TRI_CHAR_NODE_PAIR()
2015-08-14 00:54:59 +02:00
Jan Steemann
a4202e5ea9
use macro to determine strlens at compile time
2015-08-13 23:41:19 +02:00
Max Neunhoeffer
1cfaf524d1
Fix DataProtector after blog post comments.
2015-08-13 23:16:07 +02:00
Jan Steemann
22e14c9444
fix buffer overrun when there are more users than DATA_PROTECTOR_MULTIPLICITY
2015-08-13 20:57:34 +02:00
Jan Steemann
ca5b7661a3
initialize _list to nullptr
...
otherwise _list is uninitialized and if the assignment in the constructor fails with std::bad_alloc,
the destructor will delete from an uninitialized pointer
2015-08-13 20:19:41 +02:00
Jan Steemann
344741e342
force closing of idle connections
2015-08-13 18:35:00 +02:00
Jan Steemann
6dc10ba1de
remove unused function
2015-08-13 16:34:55 +02:00
Jan Steemann
b16667b19f
slight cleanup
2015-08-13 16:14:59 +02:00
Willi Goesgens
d3cc9981b8
Merge branch 'devel' of github.com:arangodb/ArangoDB into devel
2015-08-13 14:25:22 +02:00
Jan Steemann
34d372d2c3
lower privileges earlier on startup
2015-08-13 14:25:33 +02:00
Willi Goesgens
9fa3ce60c8
Examplify job api
2015-08-13 14:25:05 +02:00
Jan Steemann
9b4a6770bd
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
2015-08-13 11:15:15 +02:00