Skip to content

Commit 800849e

Browse files
committed
processor_tda: Add a note
Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent ae2348c commit 800849e

File tree

1 file changed

+3
-0
lines changed
  • plugins/processor_tda

1 file changed

+3
-0
lines changed

plugins/processor_tda/tda.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,9 @@ static size_t tda_window_snapshot(struct tda_window *w,
681681
return 0;
682682
}
683683

684+
/* Note: lwrb doesn't support peek, so we read and restore.
685+
* In the unlikely event write-back fails, data is lost.
686+
*/
684687
/* read out all data ... */
685688
r = lwrb_read(&w->rb, tmp, full_bytes);
686689
if (r != full_bytes) {

0 commit comments

Comments
 (0)