mirror of https://github.com/m-labs/artiq.git
firmware: assume empty config records as removed (#2064)
This will return `KeyNotFound` for empty values, which are produced by `remove` operation Signed-off-by: Egor Savkin <es@m-labs.hk>
This commit is contained in:
parent
1ca09b9484
commit
bbf80875fb
|
@ -163,7 +163,7 @@ mod imp {
|
||||||
while let Some(result) = iter.next() {
|
while let Some(result) = iter.next() {
|
||||||
let (record_key, record_value) = result?;
|
let (record_key, record_value) = result?;
|
||||||
if key.as_bytes() == record_key {
|
if key.as_bytes() == record_key {
|
||||||
found = true;
|
found = !record_value.is_empty();
|
||||||
// last write wins
|
// last write wins
|
||||||
value = record_value
|
value = record_value
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue