From 82670fb17bb1df8ba9c1dbb15a8126b578eb59cd Mon Sep 17 00:00:00 2001 From: Andrew Kryczka Date: Mon, 20 Dec 2021 23:28:40 -0800 Subject: [PATCH] db_stress print hex key for MultiGet() inconsistency (#9324) Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/9324 Reviewed By: riversand963 Differential Revision: D33248178 Pulled By: ajkr fbshipit-source-id: c8a7382ed613f9ac3a0a2e3fa7d3c6fe9c95ef85 --- db_stress_tool/batched_ops_stress.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db_stress_tool/batched_ops_stress.cc b/db_stress_tool/batched_ops_stress.cc index e751a04bf..ab5155f90 100644 --- a/db_stress_tool/batched_ops_stress.cc +++ b/db_stress_tool/batched_ops_stress.cc @@ -232,7 +232,8 @@ class BatchedOpsStressTest : public StressTest { for (size_t i = 1; i < num_prefixes; i++) { if (values[i] != values[0]) { fprintf(stderr, "error : inconsistent values for key %s: %s, %s\n", - key_str[i].c_str(), StringToHex(values[0].ToString()).c_str(), + StringToHex(key_str[i]).c_str(), + StringToHex(values[0].ToString()).c_str(), StringToHex(values[i].ToString()).c_str()); // we continue after error rather than exiting so that we can // find more errors if any