File locking deprecation replacements (#593)

This commit is contained in:
Ken Van Hoeylandt
2026-07-27 23:48:02 +02:00
committed by GitHub
parent d1f06cb774
commit 58a529cc44
16 changed files with 231 additions and 220 deletions
+1 -3
View File
@@ -186,9 +186,7 @@ size_t receiveFile(httpd_req_t* request, size_t length, const std::string& fileP
char buffer[BUFFER_SIZE];
size_t bytes_received = 0;
auto lockable = file::getLock(filePath);
auto lock = lockable->asScopedLock();
lock.lock();
file::FileMutexGuard guard(filePath);
auto* file = fopen(filePath.c_str(), "wb");
if (file == nullptr) {