aboutsummaryrefslogtreecommitdiff
path: root/zen/chunk/chunk.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-41/+42
| | | | | | | | | | | | | | | | | | - 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
* Format fix.Per Larsson2022-01-221-4/+2
|
* Added an implementation of task_group::run() on POSIXMartin Ridgers2022-01-111-2/+9
|
* Merged main.Per Larsson2021-12-141-7/+49
|\
| * Fake concrt for non-Windows platformsMartin Ridgers2021-12-021-0/+42
| |
| * WideToUtf8() to PathToUtf8()Martin Ridgers2021-12-021-1/+1
| |
| * Deleted unused variableMartin Ridgers2021-12-021-2/+0
| |
| * Signed-unsigned comparison compile fixMartin Ridgers2021-12-021-1/+1
| |
| * If-def'd a #pragma statementMartin Ridgers2021-12-021-0/+2
| |
| * If-def wrapped some Windows-only includesMartin Ridgers2021-12-021-2/+4
| |
* | Added simple GC interval scheduling.Per Larsson2021-12-051-2/+2
| |
* | gc: Added GcStorage base class and hooked it up to CasGcStefan Boberg2021-10-211-1/+4
|/
* timer: cleaned up Stopwatch, removed GetCpuTimerValueStefan Boberg2021-09-291-3/+3
|
* It's not possible to compile out testsStefan Boberg2021-09-201-1/+3
| | | | Tests are now compiled in if `ZEN_WITH_TESTS=1`, and compiled out if not. Compiling tests out reduces the footprint of the resulting executables quite significantly.
* Changed logging implementationStefan Boberg2021-09-151-28/+28
| | | | | | * 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
* IoHash::HashMemory -> IoHash::HashBuffer for consistency with UE5 codeStefan Boberg2021-09-021-6/+6
|
* Removed pointer-based InsertChunk from CAS store interface.Stefan Boberg2021-05-251-6/+9
| | | | All code must now use the IoBuffer path
* Adding zenservice codeStefan Boberg2021-05-111-0/+1157