aboutsummaryrefslogtreecommitdiff
path: root/zenserver/projectstore.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Changed oplog ddc property name.deriveddataPer Larsson2022-11-301-1/+1
|
* Minor refactor of cache mapping.Per Larsson2022-11-301-43/+46
|
* Moved DDC reference array out of package meta object.Per Larsson2022-11-241-20/+26
|
* Check content ID before searching CID store.Per Larsson2022-11-231-3/+7
|
* Map DDC cache key to content ID.Per Larsson2022-11-231-26/+142
|
* changelog and removed obsolete commentDan Engelbrecht2022-11-181-1/+0
|
* Add `import-project` and `export-project` (#183)Dan Engelbrecht2022-11-181-208/+629
| | | * Add `import-project` and `export-project` command line parsing
* move BasicFile to zenutil to remove zenstore dependency from zen command (#190)Dan Engelbrecht2022-11-171-1/+1
|
* Support file reference in package message (#184)Dan Engelbrecht2022-11-071-6/+6
| | | | | | | | * Fix packed message parsing for absolute path * Always enable are sharing when opening files as IoBuffers. * Allow control over sending partial files as localfile ref * Check "AcceptFlags" field in RPC message for allowing localfile ref in reply * make oplog entry add operations ZEN_DEBUG level logs * changelog
* fix concurrency issues in projectstore and enable GC (#181)Dan Engelbrecht2022-10-171-237/+594
| | | | | | | | | | | | | | * Fix concurreny issues when deleting projects/oplogs * remove rocksdb test code * project store unit tests * safer deletion of oplogs/projects * reference count ProjectStore::Project to handle lifetime during GC * Don't open all project oplogs unless we need them * Don't scrub expired projects * Don't gather references from expired projects * added logging details for GC * release lock as soon as folder is moved * more tests for project store * changelog
* disable project store GC (#179)Dan Engelbrecht2022-10-121-1/+2
|
* De/oplog gc lifetime (#178)Dan Engelbrecht2022-10-101-43/+131
| | | | | | | * Make sure we don't use invalidated iterators in projectstore.cpp * project store keeps track of project file and will garbage collect data for a project if the project file no longer exist * Implement GC of projects in project store - still need to fix lifetime issues for Project instances * Add INFO log if project file path is empty in projectstore * changelog
* De/reduce buffer creation in parsepackedmessage (#175)Dan Engelbrecht2022-09-301-7/+7
| | | | | * Don't create call CreateBuffer for attachement data that we only read and not keep * changelog * don't read oplog attachments into memory just to do a redundant store of them
* Adjust errors vs warnings messages (#160)Dan Engelbrecht2022-09-081-4/+4
| | | | * demote a number of ZEN_ERROR to ZEN_WARN * changelog
* Make cas storage an hidden implementation detail of CidStore (#130)v0.1.4-pre6v0.1.4-pre5Dan Engelbrecht2022-06-171-5/+5
| | | | | | | | | | | | | | | | | | - 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
* removed LocalProjectService prototypeStefan Boberg2022-06-131-300/+0
|
* fixed issue where projects would not be discovered via DiscoverProjects due ↵Stefan Boberg2022-06-101-10/+100
| | | | | | to use of stem() vs filename() added /prj/{project}/oplog/{log}/{op} endpoint to allow retrieval of an op entry by LSN. Supports returning CbObject or CbPackage format payloads
* Added GetDirectoryContent utilityDan Engelbrecht2022-05-061-42/+9
|
* simplify lambda capturesDan Engelbrecht2022-05-021-1/+1
|
* always keep full log but read from index snapshot location if availableDan Engelbrecht2022-04-041-21/+24
|
* rename EMode to ModeDan Engelbrecht2022-04-011-4/+4
|
* Don hard fail on removing files we no longer care aboutDan Engelbrecht2022-03-311-3/+2
|
* improved logging for gc/migrationDan Engelbrecht2022-03-311-0/+6
|
* Migration now works in larger disk IO chunksDan Engelbrecht2022-03-311-4/+4
| | | | BasicFile and CasLogFile now has new explicit modes instead of create true/false
* Fixed wrong route pattern.Per Larsson2022-03-231-1/+1
|
* Added route '/prj/list' for retrieving project info.Per Larsson2022-03-231-0/+32
|
* Fixed missing object in project oplog response.Per Larsson2022-01-241-1/+5
|
* Format fix.Per Larsson2022-01-221-1/+2
|
* Unused lambda capture compile errorMartin Ridgers2022-01-101-1/+1
|
* Converted use of _format UDL to fmt::formatMartin Ridgers2022-01-101-12/+7
|
* Added trace scopes.Per Larsson2021-12-151-0/+9
|
* Initialisation order compile errorMartin Ridgers2021-12-151-1/+1
|
* Paths are not wide-chars on non-Windows platformsMartin Ridgers2021-12-151-2/+2
|
* Merged main.Per Larsson2021-12-141-24/+35
|\
| * Removed the special-case path handling to make project tests passMartin Ridgers2021-11-291-12/+0
| |
| * Only Windows paths have drive lettersMartin Ridgers2021-11-291-0/+2
| |
| * ToUtf8() -> PathToUtf8() as the latter is less ambiguousMartin Ridgers2021-11-161-3/+3
| |
| * Stubbed out Project Store's PipeConnection on POSIXMartin Ridgers2021-11-021-0/+17
| |
| * Fixed up some assumptions that satd::fs::path uses wchar_tMartin Ridgers2021-11-011-4/+4
| |
| * Removed unused variableMartin Ridgers2021-11-011-4/+0
| |
| * Initialisation order warningsMartin Ridgers2021-11-011-2/+2
| |
| * Unhandled switch case warningsMartin Ridgers2021-11-011-0/+6
| |
| * Fixed up Windows-specific include statementsMartin Ridgers2021-10-291-1/+4
| |
| * Fixed std::memory_order compile errorsMartin Ridgers2021-10-291-2/+2
| |
| * Merged mainMartin Ridgers2021-10-251-90/+127
| |\
| * \ Merged mainMartin Ridgers2021-10-201-0/+2
| |\ \
| * \ \ Merged mainMartin Ridgers2021-10-141-55/+5
| |\ \ \
| * | | | Use std::fs::path for IoBuffer::MakeFromFile().Martin Ridgers2021-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | This is more consistent with MakeFromTempFile() and almost all arguments are path objects anyway.
* | | | | projectstore: iterating over an empty project store should not throwStefan Boberg2021-11-181-0/+5
| | | | |
* | | | | projectstore: Implemented project/oplog discovery so we can take any ↵Stefan Boberg2021-11-011-1/+66
| | | | | | | | | | | | | | | | | | | | persistent oplog into account even if it has not been opened in the current session