aboutsummaryrefslogtreecommitdiff
path: root/zenserver/projectstore.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Changed `std::exception` into `std::runtime_error` since `std::exception` ↵Stefan Boberg2021-09-151-2/+2
| | | | does not have a constructor which accepts a string argument in the standard (this appears to be an MSVC implementation thing)
* Changed logging implementationStefan Boberg2021-09-151-52/+52
| | | | | | * Code should no longer directly `#include spdlog/spdlog.h`, instead use `#include <zencore/logging.h>` * Instead of explicit calls to `spdlog::info(...)` and such please use the logging macros defined in `zencore/logging.h`. I.e `ZEN_INFO`, `ZEN_DEBUG`, `ZEN_TRACE`, `ZEN_ERROR`, `ZEN_CRITITCAL` * The macros will pick up the "most local" logger via a `Log()` call to retrieve a logger instance. To override the default logger in a class please implement your own `Log()` function
* Changed direct includes of spdlog/spdlog.h into zencore/logging.h to make it ↵Stefan Boberg2021-09-151-1/+1
| | | | easier to tweak implementation
* Changed so more loggers go via the zen::loggers interfaceStefan Boberg2021-09-151-6/+4
|
* oplog: added handling of new attachment typesStefan Boberg2021-09-141-3/+28
|
* HttpResponse enum -> HttpResponseCodeStefan Boberg2021-09-121-43/+43
| | | | Also removed initial CbPackage API HttpServer changes as I have decided to take a different approach
* clang-formatStefan Boberg2021-09-091-3/+3
|
* Fixed a number of unreferenced variable warningsStefan Boberg2021-09-091-5/+1
|
* IoHash::HashMemory -> IoHash::HashBuffer for consistency with UE5 codeStefan Boberg2021-09-021-2/+2
|
* Introduced support for compressed buffer attachmentsStefan Boberg2021-09-021-1/+1
|
* Added logic to fix project store tests (we use absolute file paths in the ↵Stefan Boberg2021-08-201-1/+6
| | | | test, unlike the cooker)
* CL16570338: CompactBinary: Added validation to LoadCompactBinary and removed ↵Stefan Boberg2021-08-201-4/+26
| | | | asserts from the other load functions
* Added {project}/oplog/{log}/{hash} endpoint (implemented by Matt Peters)Stefan Boberg2021-08-121-1/+102
| | | | Added project store flush implementation
* Support iterative cooks (#3)Per Larsson2021-06-231-10/+144
| | | | | | | | | | | | | | * Added new route to get all chunk IDs and chunk hashes. Changed to always update chunk mapping to support iterative cooks. * Replay latest oplog entries. * Include server path when fetching file(s) and support for fetching single oplog entry. * Removed get chunks route. * Removed iterate chunk map. * Take read lock when iterating oplog. * Take read lock when reading oplog entry. * Take ownership of buffer reading oplog entry. * Fixed incorrect oplog key when fetching single entry. * Changed map updates to use insert_or_assign for efficiency Co-authored-by: Stefan Boberg <[email protected]>
* Fixed issue with ProjectStore::OplogStorage::Exists()Stefan Boberg2021-06-091-7/+7
| | | | It would always return false, which was caused by earlier removal of the .zdb files
* Added initial implementation of chunk batch APICarl-Magnus Nordin2021-06-021-9/+56
|
* Added support for salt in oplog append operations, which can be used to ↵Stefan Boberg2021-06-021-3/+28
| | | | avoid payload file conflicts when multiple operations end up producing the same large output chunks
* clang-format fixesStefan Boberg2021-05-271-8/+8
|
* Added locks to protect against races in parallel oplog updatesStefan Boberg2021-05-271-0/+21
|
* Compile out all rocksdb code for a smaller binaryStefan Boberg2021-05-251-6/+16
|
* Eliminated exploratory LMDB/RocksDB code from default pathStefan Boberg2021-05-241-16/+3
|
* clang-formatStefan Boberg2021-05-221-1/+1
|
* Renamed CasBlobFile -> BasicFileStefan Boberg2021-05-211-3/+3
|
* Moved CasBlobFile into basicfile.hStefan Boberg2021-05-211-0/+1
|
* Added support for package additional files. Added io hash chunk id to… (#2)Per Larsson2021-05-211-90/+42
| | | | Added support for attaching additional files to oplog entries in project store
* Added oplog prep step to avoid redundant chunk transfersStefan Boberg2021-05-171-0/+74
|
* Implemented move-in-place for large CAS payloadsStefan Boberg2021-05-131-3/+3
|
* Made SharedBuffer/UniqueBuffer share guts with IoBufferStefan Boberg2021-05-131-2/+1
| | | | This enables way more efficient marshaling of compact binary objects and attachments
* Added minor TODOStefan Boberg2021-05-121-0/+1
|
* Implemented basic support for marshaling attachments out-of-band with the ↵Stefan Boberg2021-05-111-1/+14
| | | | | | | | package payload Currently supported in project store but will also be used for the structured cache Currently, cleanup is missing. Ultimately the intent is that the file used for marshaling will simply be moved into place.
* Adding zenservice codeStefan Boberg2021-05-111-0/+1547