dets durability

Paul Mineiro paul-trapexit@REDACTED
Sun Sep 13 03:25:03 CEST 2009


i'm having trouble finding the answer to this question.

if i do a bunch of dets operations, e.g., dets:insert/2 and dets:delete/2,
and then hard reboot the operating system without synchronizing the
page cache (e.g., hit the power button), and then reopen the dets file:
what guarantees do i have?

some possible answers are (after the file is "repaired"):

  * every update is guaranteed to be reflected in the dets; or
  * you may not have every update, but the dets will be in a consistent
state.  no partial updates will be applied (no mangled records); or
  * no guarantees, due to some unlikely worst case.

thanks in advance,

-- p


More information about the erlang-questions mailing list