aboutsummaryrefslogtreecommitdiff
path: root/internal/object
diff options
context:
space:
mode:
Diffstat (limited to 'internal/object')
-rw-r--r--internal/object/store.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/object/store.go b/internal/object/store.go
index a441705..61cb007 100644
--- a/internal/object/store.go
+++ b/internal/object/store.go
@@ -55,3 +55,8 @@ func (s *ObjectStore) IDSet() map[string]bool {
}
return ids
}
+
+func (s *ObjectStore) Reload(dataDir string) {
+ s.cache = make(map[string]*ObjectDef)
+ s.pathIndex = behavior.BuildPathIndex(filepath.Join(dataDir, "objects"))
+}