mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Minor formatting fix on top of https://github.com/etcd-io/etcd/pull/12568
This commit is contained in:
parent
79eafb9719
commit
4a2ffc2cbe
@ -37,10 +37,11 @@ func (txb *txBuffer) reset() {
|
|||||||
// txWriteBuffer buffers writes of pending updates that have not yet committed.
|
// txWriteBuffer buffers writes of pending updates that have not yet committed.
|
||||||
type txWriteBuffer struct {
|
type txWriteBuffer struct {
|
||||||
txBuffer
|
txBuffer
|
||||||
|
// Map from bucket name into information whether this bucket is edited
|
||||||
|
// sequentially (i.e. keys are growing monotonically).
|
||||||
seq map[string]bool
|
seq map[string]bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (txw *txWriteBuffer) put(bucket, k, v []byte) {
|
func (txw *txWriteBuffer) put(bucket, k, v []byte) {
|
||||||
txw.seq[string(bucket)] = false
|
txw.seq[string(bucket)] = false
|
||||||
txw.putSeq(bucket, k, v)
|
txw.putSeq(bucket, k, v)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user