From d3b3228c1fdf40bc4bcd9bbfbf22592e6d26eff7 Mon Sep 17 00:00:00 2001 From: Piotr Tabor Date: Fri, 14 May 2021 22:25:44 +0200 Subject: [PATCH] Minor formatting fix on top of https://github.com/etcd-io/etcd/pull/12568 --- server/mvcc/backend/tx_buffer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/mvcc/backend/tx_buffer.go b/server/mvcc/backend/tx_buffer.go index 256845a5dc3..ada6f7131d0 100644 --- a/server/mvcc/backend/tx_buffer.go +++ b/server/mvcc/backend/tx_buffer.go @@ -39,10 +39,11 @@ func (txb *txBuffer) reset() { // txWriteBuffer buffers writes of pending updates that have not yet committed. type txWriteBuffer struct { txBuffer + // Map from bucket name into information whether this bucket is edited + // sequentially (i.e. keys are growing monotonically). seq map[string]bool } - func (txw *txWriteBuffer) put(bucket, k, v []byte) { txw.seq[string(bucket)] = false txw.putSeq(bucket, k, v)