v1.5.1 增强程序稳定性
This commit is contained in:
@@ -70,10 +70,10 @@ func (this *DB) Inspect(fn func(key []byte, value []byte)) error {
|
||||
if valueErr != nil {
|
||||
return valueErr
|
||||
}
|
||||
fn(it.Key(), value)
|
||||
fn(append([]byte(nil), it.Key()...), append([]byte(nil), value...))
|
||||
}
|
||||
|
||||
return nil
|
||||
return it.Error()
|
||||
}
|
||||
|
||||
// Truncate the database
|
||||
|
||||
Reference in New Issue
Block a user