Skip to content

Commit c9de2d3

Browse files
committed
add time
1 parent 99aef8e commit c9de2d3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

extensions/rocksdb-repos/FlowFileRepository.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ Connectable* FlowFileRepository::getContainer(const std::string& container_id) {
135135
return nullptr;
136136
}
137137
void FlowFileRepository::initialize_repository() {
138+
const auto start_time = std::chrono::steady_clock::now();
139+
auto log_duration = gsl::finally([this, start_time]() {
140+
logger_->log_error("FlowFileRepository::initialize_repository took {}", std::chrono::steady_clock::now()-start_time);
141+
});
138142
auto opendb = db_->open();
139143
if (!opendb) {
140144
logger_->log_trace("Couldn't open database to load existing flow files");

0 commit comments

Comments
 (0)