Merge pull request #6292 from sfc-gh-ajbeamon/change-feed-list-format

Use printable when formatting change feed ranges in fdbcli
This commit is contained in:
Evan Tschannen 2022-01-26 15:54:25 -08:00 committed by GitHub
commit 25c743d5a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,10 +48,10 @@ ACTOR Future<Void> changeFeedList(Database db) {
printf("Found %d range feeds%s\n", result.size(), result.size() == 0 ? "." : ":");
for (auto& it : result) {
auto range = std::get<0>(decodeChangeFeedValue(it.value));
printf(" %s: %s - %s\n",
printf(" %s: `%s' - `%s'\n",
it.key.removePrefix(changeFeedPrefix).toString().c_str(),
range.begin.toString().c_str(),
range.end.toString().c_str());
printable(range.begin).c_str(),
printable(range.end).c_str());
}
return Void();
} catch (Error& e) {