Hi

I have a doubt in sync and append in LogStorage. According to the
tutorial it says:
"If the LogWrite.write returned SUCCESS, then a short time later, a
LogWrite.appendDone will be signaled. This event returns the details
of the write including the source buffer, length of data written,
whether any records were lost (if this is a circular buffer) and any
error code. If no errors occurred, then the data was written to flash
with atomicity, consistency, and durability guarantees (and will
survive node crashes and reboots):"

But in TEP 103, it says this about sync:
"LogWrite.sync: guarantee that data written so far will not be lost to
a crash or reboot (it can still be overwritten when a circular log
wraps around). Using sync MAY waste some space in the log."

Theres seems to be some inconsistencies.
If the first text is wrong, do i have to do a sync after a appendDone?
If the second text is right, whats the purpose of the sync?

regards,
Ricardo
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to