Commit 64f2d15a authored by Nikos Tsironis's avatar Nikos Tsironis Committed by Mike Snitzer
Browse files

dm era: Use correct value size in equality function of writeset tree

Fix the writeset tree equality test function to use the right value size
when comparing two btree values.

Fixes: eec40579

 ("dm: add era target")
Cc: # v3.15+
Signed-off-by: default avatarNikos Tsironis <>
Reviewed-by: default avatarMing-Hung Tsai <>
Signed-off-by: Mike Snitzer's avatarMike Snitzer <>
parent 904e6b26
......@@ -389,7 +389,7 @@ static void ws_dec(void *context, const void *value)
static int ws_eq(void *context, const void *value1, const void *value2)
return !memcmp(value1, value2, sizeof(struct writeset_metadata));
return !memcmp(value1, value2, sizeof(struct writeset_disk));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment