Skip to content

Commit

Permalink
Merge dev to default.
Browse files Browse the repository at this point in the history
Ref T24.
  • Loading branch information
msackman committed May 6, 2016
2 parents 5b4410b + 95a7ec2 commit 815d034
Show file tree
Hide file tree
Showing 72 changed files with 16,343 additions and 2,352 deletions.
1 change: 0 additions & 1 deletion .hgignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
syntax: glob
*~
*.capnp.go
*.log
*.test
*.swp
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS

GoshawkDB Server
Copyright (C) 2015 Matthew Sackman <matthew@goshawkdb.io>
Copyright (C) 2015-2016 Matthew Sackman <matthew@goshawkdb.io>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
Expand Down
14 changes: 14 additions & 0 deletions capnp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
CAPNP := $(patsubst %.capnp,%.capnp.go,$(filter-out go.capnp,$(wildcard *.capnp)))
CAPNPGO := $(wildcard *.capnp.go)

all: capnp

capnp: $(CAPNP)

clean:
rm -f $(CAPNPGO)

%.capnp.go: %.capnp
capnp compile -o go $<

.PHONY: all capnp clean
29 changes: 29 additions & 0 deletions capnp/acceptor.capnp
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
using Go = import "../../common/capnp/go.capnp";

$Go.package("capnp");
$Go.import("goshawkdb.io/server/capnp");

@0xefa5a1e88b6da9e3;

using Ballot = import "ballot.capnp";
using Txn = import "transaction.capnp";
using Outcome = import "outcome.capnp";

struct AcceptorState {
txn @0: Txn.Txn;
outcome @1: Outcome.Outcome;
sendToAll @2: Bool;
instances @3: List(InstancesForVar);
}

struct InstancesForVar {
varId @0: Data;
instances @1: List(AcceptedInstance);
result @2: Ballot.Ballot;
}

struct AcceptedInstance {
rmId @0: UInt32;
roundNumber @1: UInt64;
ballot @2: Ballot.Ballot;
}
Loading

0 comments on commit 815d034

Please sign in to comment.