1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

Print oldest celldb snapshot to stats (#1078)

Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
EmelyanenkoK 2024-07-26 22:11:58 +03:00 committed by GitHub
parent 679e6be294
commit b3828f8eb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 83 additions and 3 deletions

View file

@ -27,6 +27,7 @@
#include "auto/tl/ton_api.h"
#include "validator.h"
#include "db-utils.h"
#include "td/db/RocksDb.h"
namespace rocksdb {
class Statistics;
@ -139,6 +140,7 @@ class CellDbIn : public CellDbBase {
};
std::shared_ptr<rocksdb::Statistics> statistics_;
std::shared_ptr<td::RocksDbSnapshotStatistics> snapshot_statistics_;
CellDbStatistics cell_db_statistics_;
td::Timestamp statistics_flush_at_ = td::Timestamp::never();