Enhance concurrency handling with improved ticket acquisition logic and logging

This commit is contained in:
ImBenji
2025-11-23 19:21:13 +00:00
parent f5a23fa5c4
commit 809d79cfc8
3 changed files with 76 additions and 46 deletions

View File

@@ -337,6 +337,7 @@ class SweepstoreWorkerTicket {
_concurrencyHeader._header._file.setPositionSync(_baseOffset);
_concurrencyHeader._header._file.writeFromSync(buffer.toUint8List());
_concurrencyHeader._header._file.flushSync();
} finally {
_concurrencyHeader._header._file.unlockSync(_baseOffset, _baseOffset + ticketSize);