summaryrefslogtreecommitdiff
path: root/pim/lib/cal/tree.go
diff options
context:
space:
mode:
Diffstat (limited to 'pim/lib/cal/tree.go')
-rw-r--r--pim/lib/cal/tree.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pim/lib/cal/tree.go b/pim/lib/cal/tree.go
index f78f2eb..4c65877 100644
--- a/pim/lib/cal/tree.go
+++ b/pim/lib/cal/tree.go
@@ -269,6 +269,12 @@ func (s *Server) addPartstat(dir *fs.StaticDir, e *Event) {
if err := rsvp.RSVP(uid, time.Time{}, want); err != nil {
return 0, err
}
+ // The tree still holds the old answer until it is rebuilt,
+ // and a file that lies right after you wrote it is worse
+ // than one that is slow.
+ if err := s.Reload(); err != nil {
+ Warnf("rsvp: reload: %v", err)
+ }
return uint32(len(data)), nil
},
})