Browse Source
This commit removes an assertion which is not needed because with etcd we can safely create keys and values with the same key since they are stored under different keys in the DB. This saves us one unnecessary Get on every Put.master
Andras Banki-Horvath
3 years ago
6 changed files with 63 additions and 8 deletions
@ -0,0 +1,8 @@
|
||||
// +build dev
|
||||
|
||||
package kvdb |
||||
|
||||
const ( |
||||
// Switch on extra debug code.
|
||||
etcdDebug = true |
||||
) |
@ -0,0 +1,8 @@
|
||||
// +build dev
|
||||
|
||||
package etcd |
||||
|
||||
const ( |
||||
// Switch on extra debug code.
|
||||
etcdDebug = true |
||||
) |
@ -0,0 +1,8 @@
|
||||
// +build !dev
|
||||
|
||||
package etcd |
||||
|
||||
const ( |
||||
// Switch off extra debug code.
|
||||
etcdDebug = false |
||||
) |
Loading…
Reference in new issue