Skip to content

Prevented Unnecessary panic in log_write#41

Closed
andTEJAsan wants to merge 1 commit into
codenet:p12-logfrom
andTEJAsan:p12-log
Closed

Prevented Unnecessary panic in log_write#41
andTEJAsan wants to merge 1 commit into
codenet:p12-logfrom
andTEJAsan:p12-log

Conversation

@andTEJAsan

Copy link
Copy Markdown
Contributor

In log_write, the function panics even in the case when 1 slot is remaining, because it thinks that the value of the log header is about to increase. But writes can coalesce, and that may not change log.lh.n. Hence we can prevent a premature panic.

https://piazza.com/class/lqkhcjr4xst5cz/post/80

Screenshot 2024-05-05 at 8 01 41 PM

@sai-kaushik-s

Copy link
Copy Markdown
Collaborator

Already merged as part of #179.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants