]> source.dussan.org Git - jgit.git/commit
reftable: move AutoCloseable to ReftableReader 41/150141/5
authorHan-Wen Nienhuys <hanwen@google.com>
Wed, 25 Sep 2019 17:01:26 +0000 (19:01 +0200)
committerHan-Wen Nienhuys <hanwen@google.com>
Fri, 27 Sep 2019 16:57:10 +0000 (18:57 +0200)
commita358d0c53ba3ba89b81ac955aaf42e0ac196e8ed
tree7de2c8f3d32d3779b278ba0ef1c38c48b33b630d
parente7a48bce3fb0aba2861e59f5fb5eb0e017162275
reftable: move AutoCloseable to ReftableReader

MergedReftable is not used as an AutoCloseable, because closing tables
is currently handled by DfsReftableStack#close.

Encode that a MergedReftable is a list of ReftableReaders. The previous
code suggested that we could form nested trees of MergedReftables,
which is not how we use reftables.

Change-Id: Icbe2fee8a5a12373f45fc5f97d8b1a2b14231c96
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/reftable/MergedReftableTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/DfsReftableStack.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/dfs/ReftableBatchRefUpdate.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/MergedReftable.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/Reftable.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/ReftableCompactor.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/ReftableReader.java