aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/filehandle.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/mount/filehandle.go')
-rw-r--r--weed/mount/filehandle.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/mount/filehandle.go b/weed/mount/filehandle.go
index d3836754f..c20f9eca8 100644
--- a/weed/mount/filehandle.go
+++ b/weed/mount/filehandle.go
@@ -89,23 +89,23 @@ func (fh *FileHandle) SetEntry(entry *filer_pb.Entry) {
glog.Fatalf("setting file handle entry to nil")
}
fh.entry.SetEntry(entry)
-
+
// Invalidate chunk offset cache since chunks may have changed
fh.invalidateChunkCache()
}
func (fh *FileHandle) UpdateEntry(fn func(entry *filer_pb.Entry)) *filer_pb.Entry {
result := fh.entry.UpdateEntry(fn)
-
+
// Invalidate chunk offset cache since entry may have been modified
fh.invalidateChunkCache()
-
+
return result
}
func (fh *FileHandle) AddChunks(chunks []*filer_pb.FileChunk) {
fh.entry.AppendChunks(chunks)
-
+
// Invalidate chunk offset cache since new chunks were added
fh.invalidateChunkCache()
}