Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: 'NUMBER_DB_SEEK' is not a member of 'rocksdb' #1090

Closed
stevenfoong opened this issue Apr 25, 2016 · 3 comments
Closed

error: 'NUMBER_DB_SEEK' is not a member of 'rocksdb' #1090

stevenfoong opened this issue Apr 25, 2016 · 3 comments

Comments

@stevenfoong
Copy link

When I try to compile mongo db with rocksdb, i received following error.

Compiling build/opt/mongo/db/modules/rocks/src/rocks_server_status.o
src/mongo/db/modules/rocks/src/rocks_server_status.cpp: In member function 'virtual mongo::BSONObj mongo::RocksServerStatusSection::generateSection(mongo::OperationContext_, const mongo::BSONElement&) const':
src/mongo/db/modules/rocks/src/rocks_server_status.cpp:184:14: error: 'NUMBER_DB_SEEK' is not a member of 'rocksdb'
{rocksdb::NUMBER_DB_SEEK, "num-seeks"},
^
src/mongo/db/modules/rocks/src/rocks_server_status.cpp:185:14: error: 'NUMBER_DB_NEXT' is not a member of 'rocksdb'
{rocksdb::NUMBER_DB_NEXT, "num-forward-iterations"},
^
src/mongo/db/modules/rocks/src/rocks_server_status.cpp:186:14: error: 'NUMBER_DB_PREV' is not a member of 'rocksdb'
{rocksdb::NUMBER_DB_PREV, "num-backward-iterations"},
^
src/mongo/db/modules/rocks/src/rocks_server_status.cpp:192:14: error: 'ITER_BYTES_READ' is not a member of 'rocksdb'
{rocksdb::ITER_BYTES_READ, "bytes-read-iteration"},
^
src/mongo/db/modules/rocks/src/rocks_server_status.cpp:196:11: error: could not convert '{{NUMBER_KEYS_WRITTEN, "num-keys-written"}, {NUMBER_KEYS_READ, "num-keys-read"}, {, "num-seeks"}, {, "num-forward-iterations"}, {, "num-backward-iterations"}, {BLOCK_CACHE_MISS, "block-cache-misses"}, {BLOCK_CACHE_HIT, "block-cache-hits"}, {BLOOM_FILTER_USEFUL, "bloom-filter-useful"}, {BYTES_WRITTEN, "bytes-written"}, {BYTES_READ, "bytes-read-point-lookup"}, {, "bytes-read-iteration"}, {FLUSH_WRITE_BYTES, "flush-bytes-written"}, {COMPACT_READ_BYTES, "compaction-bytes-read"}, {COMPACT_WRITE_BYTES, "compaction-bytes-written"}}' from '' to 'const std::vector<std::pair<rocksdb::Tickers, std::basic_string > >'
};
^
scons: *_* [build/opt/mongo/db/modules/rocks/src/rocks_server_status.o] Error 1
scons: building terminated because of errors.
build/opt/mongo/db/modules/rocks/src/rocks_server_status.o failed: Error 1

My environment is a fresh installation Centos 6.5.

@siying
Copy link
Contributor

siying commented Apr 25, 2016

Which version of RocksDB are you using?

@stevenfoong
Copy link
Author

Should be version 4. When I open HISTORY.md, i saw this .

Rocksdb Change Log

4.0.0 (9/9/2015)

New Features

  • Added support for transactions. See include/rocksdb/utilities/transaction.h for more info.

I compile the rocksdb from source using the following command:

git clone https://github.com/facebook/rocksdb.git
cd rocksdb
git checkout mongorocks
make static_lib
make install
cd~

@igorcanadi
Copy link
Collaborator

This is a duplicate of mongodb-partners/mongo-rocks#23. Let's keep all the discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants