aboutsummaryrefslogtreecommitdiff
path: root/storage/index.go
diff options
context:
space:
mode:
Diffstat (limited to 'storage/index.go')
-rw-r--r--storage/index.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/storage/index.go b/storage/index.go
index f34abab..1d01b93 100644
--- a/storage/index.go
+++ b/storage/index.go
@@ -69,3 +69,11 @@ func (idx Index) Load(r io.Reader) error {
}
return scan.Err()
}
+
+func (a Index) Combine(b Index) {
+ for t, objs := range b {
+ for id := range objs {
+ a[t][id] = struct{}{}
+ }
+ }
+}