mirror of
https://github.com/matrix-construct/construct
synced 2024-09-29 20:28:52 +02:00
modules/console: Add more details for transaction list.
This commit is contained in:
parent
5af3d3a4f2
commit
32cc7ee61a
1 changed files with 15 additions and 1 deletions
|
@ -3576,6 +3576,14 @@ try
|
||||||
std::max(seqnum - limit * ssize_t(database.columns.size()), 0L)
|
std::max(seqnum - limit * ssize_t(database.columns.size()), 0L)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
out << std::setw(12) << std::left << "SEQUENCE"
|
||||||
|
<< " "
|
||||||
|
<< std::setw(6) << std::left << "DELTAS"
|
||||||
|
<< " "
|
||||||
|
<< std::setw(18) << std::left << "SIZE"
|
||||||
|
<< " : "
|
||||||
|
<< std::endl;
|
||||||
|
|
||||||
for_each(database, start, db::seq_closure_bool{[&out, &seqnum]
|
for_each(database, start, db::seq_closure_bool{[&out, &seqnum]
|
||||||
(db::txn &txn, const int64_t &_seqnum) -> bool
|
(db::txn &txn, const int64_t &_seqnum) -> bool
|
||||||
{
|
{
|
||||||
|
@ -3592,7 +3600,13 @@ try
|
||||||
if(!event_id)
|
if(!event_id)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
out << std::setw(12) << std::right << _seqnum << " : "
|
thread_local char iecbuf[48];
|
||||||
|
out << std::setw(12) << std::left << _seqnum
|
||||||
|
<< " "
|
||||||
|
<< std::setw(6) << std::left << txn.size()
|
||||||
|
<< " "
|
||||||
|
<< std::setw(18) << std::left << pretty(iecbuf, iec(txn.bytes()))
|
||||||
|
<< " : "
|
||||||
<< string_view{event_id}
|
<< string_view{event_id}
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue