3 ms·
I don't believe what you're describing works. You're suggesting reading first the size of a record (stored itself in a fixed-size field), then reading the rest
by catern 10y ago
I don't believe what you're describing works. You're suggesting reading first the size of a record (stored itself in a fixed-size field), then reading the rest of it?
But unfortunately that is not atomic. Another process could read into the data between your first and second reads.