aboutsummaryrefslogtreecommitdiffstats
path: root/vespalib
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in optimized.hIkko Eltociear Ashimine2023-03-291-4/+4
| | | postion -> position
* Adjust explicit instantiations of BufferType and Array.Tor Egge2023-03-244-9/+11
|
* Merge pull request #26538 from ↵Tor Brede Vekterli2023-03-2312-95/+243
|\ | | | | | | | | vespa-engine/vekterli/add-capability-checks-to-state-api-handlers Add capability checking to state API handlers
| * Add capability checking to state API handlersTor Brede Vekterli2023-03-2212-95/+243
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This covers both the entry points from the `storagenode` and `searchnode` HTTP servers, though the former is mostly in the name of legacy support. Ideally, capability checking would exist as a property of the HTTP server (Portal) bindings, but the abstractions for the JSON request handling are sufficiently leaky that it ended up making more sense to push things further down the hierarchy. It's always a good thing to move away from using strings with implicit semantics as return types anyway. The `searchnode` state API handler mapping supports fine grained capabilities. The legacy `storagenode` state API forwarding does not; it uses a sledgehammer that expects the union of all possible API capability requirements.
* | Relax check for max prefix.Tor Egge2023-03-231-1/+1
|/
* Add utility wrapper around RE2 possible regex prefix match rangeTor Brede Vekterli2023-03-213-3/+57
| | | | | | For a strictly start-anchored regex, this provides a lower/upper bound pair that constrains the possible prefix range that may contain a string matching the regex.
* Revert "Add utility wrapper around RE2 possible regex prefix match range"Harald Musum2023-03-203-57/+3
|
* Merge pull request #26494 from ↵Tor Brede Vekterli2023-03-203-3/+57
|\ | | | | | | | | vespa-engine/vekterli/add-possible-match-prefix-regex-range-util Add utility wrapper around RE2 possible regex prefix match range
| * Test match range failure case with empty ranges returnedTor Brede Vekterli2023-03-201-0/+5
| |
| * Add utility wrapper around RE2 possible regex prefix match rangeTor Brede Vekterli2023-03-203-3/+52
| | | | | | | | | | | | For a strictly start-anchored regex, this provides a lower/upper bound pair that constrains the possible prefix range that may contain a string matching the regex.
* | Support gcc 11 std::string::size() not being constexpr.Henning Baldersheim2023-03-201-1/+1
| |
* | libstdc++ 11 lacks stream operators for duration. Use same workaroundTor Egge2023-03-192-2/+4
|/ | | | as for old libc++ versions.
* GC convenience constructor to be explicit.Henning Baldersheim2023-03-163-6/+1
|
* - GC unused _activeBuffers member.Henning Baldersheim2023-03-154-9/+8
| | | | - Just keep a very small ChangeVector, it might never be used.
* Merge pull request #26451 from ↵Henning Baldersheim2023-03-151-1/+1
|\ | | | | | | | | vespa-engine/toregge/factor-out-implementation-dependent-sizeof-std-string Factor out implementation dependent sizeof(std::string).
| * Factor out implementation dependent sizeof(std::string).Tor Egge2023-03-151-1/+1
| |
* | Merge pull request #26448 from vespa-engine/havardpe/verify-object-on-attachHåvard Pettersen2023-03-151-1/+4
|\ \ | |/ |/| verify object when attaching it to a handle
| * verify object when attaching it to a handleHåvard Pettersen2023-03-151-1/+4
| |
* | Merge pull request #26447 from ↵Henning Baldersheim2023-03-154-8/+11
|\ \ | | | | | | | | | | | | vespa-engine/toregge/expose-static-size-of-entry-ref-hold-list-deque-in-datastore-base Expose static size of entry ref hold list dequeue in DataStoreBase.
| * | Expose static size of entry ref hold list dequeue in DataStoreBase.Tor Egge2023-03-154-8/+11
| |/
* / Fix format strings.Tor Egge2023-03-151-2/+3
|/
* Assert expected guard value earlier in enable_ref_counted::internal_subrefTor Egge2023-03-141-1/+1
|
* Merge pull request #26441 from vespa-engine/havardpe/avoid-atomic-thread-fenceTor Egge2023-03-141-4/+6
|\ | | | | make TSAN happy (it does not support atomic thread fences)
| * make TSAN happy (it does not support atomic thread fences)Håvard Pettersen2023-03-141-4/+6
| |
* | Prefer std::vectorHenning Baldersheim2023-03-147-64/+2
| |
* | Merge pull request #26440 from ↵Henning Baldersheim2023-03-147-0/+144
|\ \ | | | | | | | | | | | | vespa-engine/havardpe/run-multiple-coroutines-concurrently-from-coroutine enable running sub-co-routines concurrently
| * | enable running sub-co-routines concurrentlyHåvard Pettersen2023-03-147-0/+144
| | |
* | | Merge pull request #26436 from ↵Henning Baldersheim2023-03-142-11/+0
|\ \ \ | | | | | | | | | | | | | | | | vespa-engine/balder/gc-dangerous-docstore-options-with-no-right-to-live summary.cache.initialentries and summary.log.chunk.skipcrconread does…
| * | | summary.cache.initialentries and summary.log.chunk.skipcrconread does not ↵Henning Baldersheim2023-03-142-11/+0
| | |/ | |/| | | | | | | have any purpose.
* / | Add noexceptHenning Baldersheim2023-03-143-56/+55
|/ /
* | Track static cache usageHenning Baldersheim2023-03-142-2/+7
| |
* | Wire in and test static memory usage for caches.Henning Baldersheim2023-03-143-8/+18
| |
* | Use std::vector instead of vespalib::ArrayHenning Baldersheim2023-03-141-6/+6
| |
* | GC unused includesHenning Baldersheim2023-03-141-1/+0
| |
* | Pre sizing is not necessary.Henning Baldersheim2023-03-141-2/+0
| |
* | disable hold_list, not free_list.Henning Baldersheim2023-03-133-5/+5
| |
* | Unify iteration over used buffers.Henning Baldersheim2023-03-134-53/+49
| |
* | GC unused void enableFreeList(uint32_t bufferId) method.Henning Baldersheim2023-03-131-5/+1
| |
* | Fetch state onceHenning Baldersheim2023-03-131-3/+5
| |
* | Unify on proper constness to reflect thread usage and modifications.Henning Baldersheim2023-03-132-8/+8
| |
* | Properly propagate hold list and free list settings when creating new state.Henning Baldersheim2023-03-132-10/+12
| |
* | Allocate BufferState in stash and add pointer to BufferAndMetaHenning Baldersheim2023-03-1312-140/+189
| |
* | - Just start from the beginning to locate a free buffer.Henning Baldersheim2023-03-102-30/+25
| | | | | | | | - Assert that the requested buffer id is legal.
* | Use a non const Store when you are in write thread, and a const when not.Henning Baldersheim2023-03-109-18/+18
| |
* | Compacting is only checked during move in write threadHenning Baldersheim2023-03-104-5/+5
| |
* | Use BufferMeta instead of BufferState to get array sizeHenning Baldersheim2023-03-101-3/+3
| |
* | - rename BufferAndTypeId -> BufferAndMeta and add the array size to it.Henning Baldersheim2023-03-106-222/+98
| | | | | | | | - Use _buffers instead of _states to get array size.
* | Report more of the static memory usage for datastores.Henning Baldersheim2023-03-098-41/+64
| |
* | Test both used and allocated memory.Henning Baldersheim2023-03-091-1/+2
|/
* Update expected sizeHenning Baldersheim2023-03-081-4/+4
|