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
If I use rocksdb with version 6.28.2, you will encounter the following error during compilation:
src/mongo/db/modules/rocks/src/totdb/totransaction_db_impl.cpp: In member function 'virtual rocksdb::Status rocksdb::TOTransactionDBImpl::QueryTimeStamp(const rocksdb::TimeStampType&, rocksdb::RocksTimeStamp*)':
src/mongo/db/modules/rocks/src/totdb/totransaction_db_impl.cpp:1149:27: error: 'class rocksdb::DB' has no member named 'GetFullHistoryTsLow'
auto s = GetRootDB()->GetFullHistoryTsLow(GetRootDB()->DefaultColumnFamily(), &ts_holder);
The DB class in db.h does not have a GetFullHistoryTsLow method.
If I use rocksdb with version 9.0.0, the compilation will succeed, but you need to add #include <rocksdb/advanced_cache.h> in rocks_parameters.cpp or rocks_engine.h, otherwise you will get an error:
src/mongo/db/modules/rocks/src/rocks_parameters.cpp: In member function 'virtual void mongo::RocksCacheSizeParameter::append(mongo::OperationContext*, mongo::BSONObjBuilder&, const string&)':
src/mongo/db/modules/rocks/src/rocks_parameters.cpp:132:57: error: invalid use of incomplete type 'using element_type = class rocksdb::Cache' {aka 'class rocksdb::Cache'}
long long cacheSizeInGB = _data->getBlockCache()->GetCapacity() / bytesInGB;
^~
In file included from src/mongo/db/modules/rocks/src/rocks_engine.h:39,
from build/opt/mongo/db/modules/rocks/src/rocks_parameters_gen.h:21,
from src/mongo/db/modules/rocks/src/rocks_parameters.cpp:32:
/usr/local/include/rocksdb/cache.h:25:7: note: forward declaration of 'using element_type = class rocksdb::Cache' {aka 'class rocksdb::Cache'}
class Cache; // defined in advanced_cache.h
If I use rocksdb with version 95305c44a, it will compile and run normally.
The DB class in db.h does not have a GetFullHistoryTsLow method.
my test environment:
rocksdb compile command:
mongodb(r4.2.5) compile command:
The text was updated successfully, but these errors were encountered: