From 633bff2f19283d55f91f4d5a3b2d42acd45d4fd9 Mon Sep 17 00:00:00 2001 From: Remington Brasga Date: Mon, 10 Aug 2020 10:04:57 -0700 Subject: [PATCH] Fixed typo on Value mismatch error in db_test (#6587) Summary: The debug is supposed to print out two keys to show the value mismatch, which was compared just a few lines above. However, the actual print-out is the same values (so they obviously won't be mismatched) Pull Request resolved: https://github.com/facebook/rocksdb/pull/6587 Reviewed By: riversand963 Differential Revision: D23025279 Pulled By: ajkr fbshipit-source-id: 4c6c35bc60b273f13c08b5464b6f690d8a5cfe41 --- db/db_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/db_test.cc b/db/db_test.cc index 6e858bf84..2d56351d2 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -3146,7 +3146,7 @@ static bool CompareIterators(int step, DB* model, DB* db, fprintf(stderr, "step %d: Value mismatch for key '%s': '%s' vs. '%s'\n", step, EscapeString(miter->key()).c_str(), EscapeString(miter->value()).c_str(), - EscapeString(miter->value()).c_str()); + EscapeString(dbiter->value()).c_str()); ok = false; } }