mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd::db: Improve readability.
This commit is contained in:
parent
e0e9e09e67
commit
4b53217939
1 changed files with 10 additions and 10 deletions
20
ircd/db.cc
20
ircd/db.cc
|
@ -7113,18 +7113,18 @@ ircd::db::debug(const rocksdb::WriteBatch &batch)
|
|||
(const mutable_buffer &ret)
|
||||
{
|
||||
return snprintf(data(ret), size(ret)+1,
|
||||
"%d deltas; size: %zuB :%s%s%s%s%s%s%s%s%s",
|
||||
"%d deltas; size:%zuB %s+%s+%s+%s+%s+%s+%s+%s+%s",
|
||||
batch.Count(),
|
||||
batch.GetDataSize(),
|
||||
batch.HasPut()? " PUT" : "",
|
||||
batch.HasDelete()? " DELETE" : "",
|
||||
batch.HasSingleDelete()? " SINGLE_DELETE" : "",
|
||||
batch.HasDeleteRange()? " DELETE_RANGE" : "",
|
||||
batch.HasMerge()? " MERGE" : "",
|
||||
batch.HasBeginPrepare()? " BEGIN_PREPARE" : "",
|
||||
batch.HasEndPrepare()? " END_PREPARE" : "",
|
||||
batch.HasCommit()? " COMMIT" : "",
|
||||
batch.HasRollback()? " ROLLBACK" : "");
|
||||
batch.HasPut()? "PUT" : "",
|
||||
batch.HasDelete()? "DEL" : "",
|
||||
batch.HasSingleDelete()? "SDL" : "",
|
||||
batch.HasDeleteRange()? "DRG" : "",
|
||||
batch.HasMerge()? "MRG" : "",
|
||||
batch.HasBeginPrepare()? "BEG" : "",
|
||||
batch.HasEndPrepare()? "END" : "",
|
||||
batch.HasCommit()? "COM-" : "",
|
||||
batch.HasRollback()? "RB^" : "");
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue