Block writes earlier than sync/stabilize would be blocked, too

This commit is contained in:
Vitaliy Filippov
2020-01-10 20:05:17 +03:00
parent b3f2102f33
commit 4b05bde3a2
6 changed files with 38 additions and 12 deletions
+3
View File
@@ -6,6 +6,9 @@
#define JOURNAL_MAGIC 0x4A33
#define JOURNAL_BUFFER_SIZE 4*1024*1024
// We reserve some extra space for future stabilize requests during writes
#define JOURNAL_STABILIZE_RESERVATION 65536
// Journal entries
// Journal entries are linked to each other by their crc32 value
// The journal is almost a blockchain, because object versions constantly increase