mirror of
https://github.com/apple/foundationdb.git
synced 2025-05-14 09:58:50 +08:00
Use printable when formatting change feed ranges
This commit is contained in:
parent
bb082344e2
commit
7989b83450
@ -48,10 +48,10 @@ ACTOR Future<Void> changeFeedList(Database db) {
|
|||||||
printf("Found %d range feeds%s\n", result.size(), result.size() == 0 ? "." : ":");
|
printf("Found %d range feeds%s\n", result.size(), result.size() == 0 ? "." : ":");
|
||||||
for (auto& it : result) {
|
for (auto& it : result) {
|
||||||
auto range = std::get<0>(decodeChangeFeedValue(it.value));
|
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(),
|
it.key.removePrefix(changeFeedPrefix).toString().c_str(),
|
||||||
range.begin.toString().c_str(),
|
printable(range.begin).c_str(),
|
||||||
range.end.toString().c_str());
|
printable(range.end).c_str());
|
||||||
}
|
}
|
||||||
return Void();
|
return Void();
|
||||||
} catch (Error& e) {
|
} catch (Error& e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user