From c8d61c2e013f7a8fa0dbe25e935f01663eceab01 Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Thu, 8 Dec 2016 23:43:10 -0800 Subject: [PATCH] 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 --- kmod/src/manifest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kmod/src/manifest.c b/kmod/src/manifest.c index 9858a168..cfc46d0b 100644 --- a/kmod/src/manifest.c +++ b/kmod/src/manifest.c @@ -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;