aboutsummaryrefslogtreecommitdiff
path: root/src/zenutil/basicfile.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'main' into 273-integrated-memory-tracking273-integrated-memory-trackingStefan Boberg2023-12-191-9/+23
|\
| * Make sure that PathFromHandle don't hide true error when throwing exceptions ↵Dan Engelbrecht2023-12-111-9/+23
| | | | | | | | | | | | | | | | | | (#600) * Make sure that PathFromHandle don't hide true error when throwing exceptions * changelog * return error info in PathFromHandle if path fails to resolve
* | hide Windows stuffStefan Boberg2023-12-081-0/+4
| |
* | implemented FlushDataOnly for MacOSStefan Boberg2023-12-071-1/+29
| | | | | | | | also added handling of NtFlushBuffersFileEx for certain SDK versions
* | ClangFormatStefan Boberg2023-12-071-1/+1
| |
* | added BasicFile::FlushDataOnlyStefan Boberg2023-12-071-0/+38
|/
* optimized index snapshot reading/writing (#561)Stefan Boberg2023-11-271-10/+84
| | | | | the previous implementation of in-memory index snapshots serialise data to memory before writing to disk and vice versa when reading. This leads to some memory spikes which end up pushing useful data out of system cache and also cause stalls on I/O operations. this change moves more code to a streaming serialisation approach which scales better from a memory usage perspective and also performs much better
* New rotating file logger that keeps on running regardless of errors (#495)Dan Engelbrecht2023-10-251-1/+33
| | | * New rotating file logger that keeps on running regardless of errors
* faster oplog iteration (#471)Dan Engelbrecht2023-10-131-0/+16
| | | | | * use a CbObjectView instead of CbObject to avoid creating IOBufferCore instances * use BasicFileBuffer directly where possible * changelog
* Make sure error logging or destructors don't throw exception when trying to ↵Dan Engelbrecht2023-09-121-2/+6
| | | | | get file name from handle (#393) - Bugfix: Make sure error logging or destructors don't throw exception when trying to get file name from handle
* retry file create (#383)Dan Engelbrecht2023-09-041-0/+16
| | | | | * add retry logic when creating files * only write disk usage log if disk writes are allowed * changelog
* buffered file reading for oplog (#366)Dan Engelbrecht2023-08-211-0/+194
| | | | | * add BasicFileBuffer for buffered read of BasicFile * Use BasicFileBuffer when reading oplog * changelog
* * added file sharing control to BasicFile (required to implement lockfiles)Stefan Boberg2023-06-301-13/+42
| | | | | * added delete-on-close support to BasicFile * added BasicFile::ReadRange()
* BasicFile::ReadAll should handle zero-sized files gracefullyStefan Boberg2023-05-251-3/+10
|
* moved source directories into `/src` (#264)Stefan Boberg2023-05-021-0/+575
* moved source directories into `/src` * updated bundle.lua for new `src` path * moved some docs, icon * removed old test trees