Expose column family id to FlushJobInfo
Summary: Pull Request resolved: https://github.com/facebook/rocksdb/pull/4772 Differential Revision: D13428923 Pulled By: ajkr fbshipit-source-id: e351e9c5eea97816db25429e129357a8af90712a
This commit is contained in:
parent
ae25546a7a
commit
4862720e08
@ -479,6 +479,7 @@ void DBImpl::NotifyOnFlushBegin(ColumnFamilyData* cfd, FileMetaData* file_meta,
|
|||||||
mutex_.Unlock();
|
mutex_.Unlock();
|
||||||
{
|
{
|
||||||
FlushJobInfo info;
|
FlushJobInfo info;
|
||||||
|
info.cf_id = cfd->GetID();
|
||||||
info.cf_name = cfd->GetName();
|
info.cf_name = cfd->GetName();
|
||||||
// TODO(yhchiang): make db_paths dynamic in case flush does not
|
// TODO(yhchiang): make db_paths dynamic in case flush does not
|
||||||
// go to L0 in the future.
|
// go to L0 in the future.
|
||||||
@ -530,6 +531,7 @@ void DBImpl::NotifyOnFlushCompleted(ColumnFamilyData* cfd,
|
|||||||
mutex_.Unlock();
|
mutex_.Unlock();
|
||||||
{
|
{
|
||||||
FlushJobInfo info;
|
FlushJobInfo info;
|
||||||
|
info.cf_id = cfd->GetID();
|
||||||
info.cf_name = cfd->GetName();
|
info.cf_name = cfd->GetName();
|
||||||
// TODO(yhchiang): make db_paths dynamic in case flush does not
|
// TODO(yhchiang): make db_paths dynamic in case flush does not
|
||||||
// go to L0 in the future.
|
// go to L0 in the future.
|
||||||
|
@ -154,6 +154,8 @@ struct FileOperationInfo {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct FlushJobInfo {
|
struct FlushJobInfo {
|
||||||
|
// the id of the column family
|
||||||
|
uint32_t cf_id;
|
||||||
// the name of the column family
|
// the name of the column family
|
||||||
std::string cf_name;
|
std::string cf_name;
|
||||||
// the path to the newly created file
|
// the path to the newly created file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user