Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(800)

Unified Diff: src/cmd/vac/file.c

Issue 157360043: vac: additionally flush venti directory files when flushing directory metadata files
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/cmd/vac/file.c
===================================================================
--- a/src/cmd/vac/file.c
+++ b/src/cmd/vac/file.c
@@ -983,6 +983,7 @@
/* No block found, extend the file by one metablock. */
vtfileflushbefore(ms, nb*(uvlong)ms->dsize);
+ vtfileflushbefore(fp->source, VtEntrySize*(uvlong)dir->entry);
if((b = vtfileblock(ms, nb, VtORDWR)) == nil)
goto Err;
vtfilesetsize(ms, (nb+1)*ms->dsize);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b