[
https://issues.apache.org/jira/browse/MYNEWT-568?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15843589#comment-15843589
]
ASF subversion and git services commented on MYNEWT-568:
--------------------------------------------------------
Commit 7ddaff5261c0143567801eb5e045784cc5fbff5f in incubator-mynewt-core's
branch refs/heads/develop from [~ccollins476]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-mynewt-core.git;h=7ddaff5
]
MYNEWT-568 Initial idx incorrect when logs empty.
At boot time, Mynewt determines the next log index to use by reading the
last entry from all persisted logs. If there were no persisted entries,
a garbage value would be used.
Now: if all logs are empty, 0 is used.
> logs - Increase idx to 32 bits
> ------------------------------
>
> Key: MYNEWT-568
> URL: https://issues.apache.org/jira/browse/MYNEWT-568
> Project: Mynewt
> Issue Type: Improvement
> Reporter: Christopher Collins
> Assignee: Christopher Collins
> Fix For: v1_0_0_beta2
>
>
> * Increase log entry's index field to 32 bits.
> * In newtmgr read log command, the index is the only criterion for selecting
> the start point of the read (don't use timestamp anymore).
> * On startup, read the last entry from each flash log to determine the index
> of the next entry. This is to ensure the next entry written has the correct
> sequence number.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)