Index: impl/memory/gkvlite_utils.go |
diff --git a/impl/memory/gkvlite_utils.go b/impl/memory/gkvlite_utils.go |
index dbdfe2ef9cf9c45093a45b44ee81546063a98bdd..190e62126e78cfed2443bc265212379e44bb5c8b 100644 |
--- a/impl/memory/gkvlite_utils.go |
+++ b/impl/memory/gkvlite_utils.go |
@@ -6,7 +6,6 @@ package memory |
import ( |
"bytes" |
- "runtime" |
"github.com/luci/gae/service/datastore" |
"github.com/luci/gkvlite" |
@@ -125,9 +124,7 @@ func (ms *memStoreImpl) Snapshot() memStore { |
if ms.ro { |
return ms |
} |
- ret := ms.s.Snapshot() |
- runtime.SetFinalizer(ret, func(s *gkvlite.Store) { go s.Close() }) |
- return &memStoreImpl{ret, true} |
+ return &memStoreImpl{ms.s.Snapshot(), true} |
} |
func (ms *memStoreImpl) GetCollection(name string) memCollection { |