]> source.dussan.org Git - jgit.git/commit
DHT: Add sequence RefData 21/3521/3
authorShawn O. Pearce <spearce@spearce.org>
Fri, 13 May 2011 16:16:58 +0000 (09:16 -0700)
committerChris Aniszczyk <caniszczyk@gmail.com>
Wed, 25 May 2011 14:08:33 +0000 (09:08 -0500)
commitb8c508e54d64628660aa0d907b37a9648923c1f5
tree222c48b34df9b4b9f70c725f3c3f1f56c2b42414
parent6ec6169215eb33683728c583e231eb5fe9617813
DHT: Add sequence RefData

RefData now uses a sequence number as part of the field, ensuring
that updates always increase the sequence number by one whenever
a reference is modified.

Attaching a sequence number to RefData will help with storing
reference log entries during updates. As the sequence number should
be unique within the reference name space, log entries can be keyed
by the sequence number and remain unique.  Making this work over
reference delete-create cycles will require an additional RefTable
API to return the oldest sequence number previously used in the
reference log to seed the recreated reference.

Change-Id: I11cfff2a96ef962e57f29925a3eef41bdbf9f9bb
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Chris Aniszczyk <caniszczyk@gmail.com>
org.eclipse.jgit.generated.storage.dht.proto/resources/org/eclipse/jgit/storage/dht/git_store.proto
org.eclipse.jgit.generated.storage.dht.proto/src/org/eclipse/jgit/generated/storage/dht/proto/GitStore.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtRefDatabase.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/DhtRefUpdate.java
org.eclipse.jgit.storage.dht/src/org/eclipse/jgit/storage/dht/RefDataUtil.java
org.eclipse.jgit/src/org/eclipse/jgit/util/RefMap.java