aboutsummaryrefslogtreecommitdiff
path: root/zenserver/casstore.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make cas storage an hidden implementation detail of CidStore (#130)v0.1.4-pre6v0.1.4-pre5Dan Engelbrecht2022-06-171-112/+0
| | | | | | | | | | | | | | | | | | - Bumped ZEN_SCHEMA_VERSION - CasStore no longer a public API, it is hidden behind CidStore - Moved cas.h from public header folder - CidStore no longer maps from Cid -> Cas, we store entries in Cas under RawHash - CasStore now decompresses data to validate content (matching against RawHash) - CasChunkSet renames to HashKeySet and put in separate header/cpp file - Disabled "Chunk" command for now as it relied on CAS being exposed as a service - Changed CAS http service to Cid http server - Moved "Run" command completely inside ZEN_WITH_EXEC_SERVICES define - Removed "cas.basic" test - Uncommented ".exec.basic" test and added return-skip at start of test - Moved ScrubContext to separate header file - Renamed CasGC to GcManager - Cleaned up configuration passing in cas store classes - Removed CAS stuff from GcContext and clarified naming in class - Remove migration code
* Unhandled switch case warningsMartin Ridgers2021-11-011-0/+3
|
* Removed MemoryOutStream, MemoryInStreamStefan Boberg2021-09-281-47/+1
| | | | | | | | BinaryWriter/BinaryReader now implements memory buffer functionality which previously needed two chained instances of a Buffer/Reader. This was originally expected to be an abstraction for file and other stream access but this is not going to be useful so may as well collapse the functionality. This also eliminates the need for stack-aware ref-counting which is the real reason for wanting to get rid of this code. This was a very old experimental feature which turned out to be a bad idea. This also removes the /cas/batch endpoint
* Changed logging implementationStefan Boberg2021-09-151-3/+3
| | | | | | * 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
* HttpResponse enum -> HttpResponseCodeStefan Boberg2021-09-121-8/+8
| | | | Also removed initial CbPackage API HttpServer changes as I have decided to take a different approach
* IoHash::HashMemory -> IoHash::HashBuffer for consistency with UE5 codeStefan Boberg2021-09-021-2/+2
|
* Removed pointer-based InsertChunk from CAS store interface.Stefan Boberg2021-05-251-2/+2
| | | | All code must now use the IoBuffer path
* Adding zenservice codeStefan Boberg2021-05-111-0/+155