Manifest item reading tracked wrong key

When iterating over items the manifest would always insert
whatever values it found at the caller's key, instead of the
key that it found in the segment.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2016-12-08 23:43:10 -08:00
parent c74787a848
commit c8d61c2e01

View File

@@ -425,7 +425,7 @@ int scoutfs_manifest_read_items(struct super_block *sb, struct kvec *key)
}
/* remember new least key */
scoutfs_kvec_clone(found_key, key);
scoutfs_kvec_clone(found_key, item_key);
scoutfs_kvec_clone(found_val, item_val);
found = true;
had_found = 0;