mirror of https://github.com/status-im/consul.git
consul: Adding new request to reap tombstones
This commit is contained in:
parent
1120e6fcbd
commit
d4b1f368b3
|
@ -23,6 +23,7 @@ const (
|
||||||
KVSRequestType
|
KVSRequestType
|
||||||
SessionRequestType
|
SessionRequestType
|
||||||
ACLRequestType
|
ACLRequestType
|
||||||
|
TombstoneReapRequestType
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -531,6 +532,17 @@ type EventFireResponse struct {
|
||||||
QueryMeta
|
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
|
// msgpackHandle is a shared handle for encoding/decoding of structs
|
||||||
var msgpackHandle = &codec.MsgpackHandle{}
|
var msgpackHandle = &codec.MsgpackHandle{}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue