Skip to content

Commit

Permalink
sys/log: Fix reading latest entry from fcb_log
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzej-kaczmarek committed Nov 27, 2024
1 parent 13d03be commit cd59fbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/log/full/src/log_fcb.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ log_fcb_find_gte(struct log *log, struct log_offset *log_offset,
* if timestamp for request is < 0, return last log entry
*/
if (log_offset->lo_ts < 0) {
out_entry->fe_step_back = false;
*out_entry = fcb->f_active;
out_entry->fe_step_back = true;
return 0;
}

Expand Down

0 comments on commit cd59fbc

Please sign in to comment.