You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rocksdb embed cfd pointer in ColumnFamilyHandleImpl. One of the benefit is, with the handle, a read doesn't need to acquire db_mutex to obtain cfd pointer. Similarly, we can embed BlobStorage pointer in the handle to save mutex lock to obtain BlobStorage pointer. We can define TitanColumnFamilyHandle as following and return it to caller. The struct is safe to be used as rocksdb::ColumnFamilyHandle when calling rocksdb methods.
struct TitanColumnFamilyHandle : public rocksdb::ColumnFamilyHandleImpl {
std::shared_ptr<BlobStorage> blob_storage;
};
rocksdb embed
cfd
pointer inColumnFamilyHandleImpl
. One of the benefit is, with the handle, a read doesn't need to acquire db_mutex to obtaincfd
pointer. Similarly, we can embedBlobStorage
pointer in the handle to save mutex lock to obtainBlobStorage
pointer. We can defineTitanColumnFamilyHandle
as following and return it to caller. The struct is safe to be used asrocksdb::ColumnFamilyHandle
when calling rocksdb methods.Part of #139
The text was updated successfully, but these errors were encountered: