1
0
mirror of https://github.com/armink/FlashDB.git synced 2025-01-29 04:32:53 +08:00

in fdb_kv_to_blob(): kv->addr.start should be assigned to blob->saved.meta_addr ?

This commit is contained in:
eggcar 2020-07-03 14:56:42 +08:00
parent d5da533607
commit 9d00e177a6

View File

@ -621,7 +621,7 @@ fdb_kv_t fdb_kv_get_obj(fdb_kvdb_t db, const char *key, fdb_kv_t kv)
*/
fdb_blob_t fdb_kv_to_blob(fdb_kv_t kv, fdb_blob_t blob)
{
blob->saved.addr = kv->addr.start;
blob->saved.meta_addr = kv->addr.start;
blob->saved.addr = kv->addr.value;
blob->saved.len = kv->value_len;