aboutsummaryrefslogtreecommitdiff
path: root/ref/store/files/close.go
diff options
context:
space:
mode:
Diffstat (limited to 'ref/store/files/close.go')
-rw-r--r--ref/store/files/close.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/ref/store/files/close.go b/ref/store/files/close.go
new file mode 100644
index 00000000..58f400a5
--- /dev/null
+++ b/ref/store/files/close.go
@@ -0,0 +1,11 @@
+package files
+
+// Close releases resources associated with the store.
+//
+// Store borrows gitRoot, so Close does not close it.
+// Transactions and batches borrowing the store are invalid after Close.
+//
+// Repeated calls to Close are undefined behavior.
+func (store *Store) Close() error {
+ return store.commonRoot.Close()
+}