From d4b1f368b37fa580968a44013c15005226b16f22 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Mon, 15 Dec 2014 15:01:04 -0800 Subject: [PATCH] consul: Adding new request to reap tombstones --- consul/structs/structs.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/consul/structs/structs.go b/consul/structs/structs.go index 2072780f36..01a4f455fa 100644 --- a/consul/structs/structs.go +++ b/consul/structs/structs.go @@ -23,6 +23,7 @@ const ( KVSRequestType SessionRequestType ACLRequestType + TombstoneReapRequestType ) const ( @@ -531,6 +532,17 @@ type EventFireResponse struct { QueryMeta } +// TombstoneReapRequest is used to trigger a reaping of the tombstones +type TombstoneReapRequest struct { + Datacenter string + ReapIndex uint64 + WriteRequest +} + +func (r *TombstoneReapRequest) RequestDatacenter() string { + return r.Datacenter +} + // msgpackHandle is a shared handle for encoding/decoding of structs var msgpackHandle = &codec.MsgpackHandle{}