3 ms·
> If you send a flush command to a consumer grade hd, it returns before the flush is done. So essentially its a no-op?
by pkaye 6y ago
> If you send a flush command to a consumer grade hd, it returns before the flush is done.
So essentially its a no-op?
- lukevp 6y agoJust speculating but perhaps the consumer ones return after the cache is populated and not after the data is durably on disk? That wouldn’t really be a no-op but would be much quicker for small writes at the expense of correctness in a power outage (although in the case of a DB the WAL entries are typically atomic so it would just be a rollback anyway).
- dijit 6y agoThink of it like mongodb thinks of data: it's eventually consistent, maybe.