]> source.dussan.org Git - jgit.git/commit
reftable: enforce ordering for ref and log writes 99/146799/19
authorHan-Wen Nienhuys <hanwen@google.com>
Tue, 30 Jul 2019 14:54:31 +0000 (16:54 +0200)
committerHan-Wen Nienhuys <hanwen@google.com>
Mon, 19 Aug 2019 09:40:25 +0000 (11:40 +0200)
commit9f9163cbcace9729eec181c0b2f1313a12fcb0b4
treee87f3962d83f25916407b440e16ee0231e6ac32e
parentca3b4b608340218e15d45479c424794e95bfb316
reftable: enforce ordering for ref and log writes

Previously, the API did not enforce ordering of writes.  Misuse of
this API would lead to data effectively being lost.

Guard against that with IllegalArgumentException, and add a test.

Change-Id: I04f55c481d60532fc64d35fa32c47037a03988ae
Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
org.eclipse.jgit.test/tst/org/eclipse/jgit/internal/storage/reftable/ReftableTest.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/ReftableWriter.java