Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-30878

rocksdb (mongo-rocks) compilation failure

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.13
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • Storage 2017-09-11

      Fix the method signatures to accommodate API changes for timestamps.

      In file included from src/mongo/db/modules/rocksdb/src/rocks_record_store.h:42:0,
                       from src/mongo/db/modules/rocksdb/src/rocks_record_store.cpp:34:
      src/mongo/db/storage/record_store.h:374:34: error: 'virtual mongo::StatusWith<mongo::RecordId> mongo::RecordStore::insertRecord(mongo::OperationContext*, const char*, int, mongo::Timestamp, bool)' was hidden [-Werror=overloaded-virtual]
           virtual StatusWith<RecordId> insertRecord(OperationContext* opCtx,
                                        ^
      In file included from src/mongo/db/modules/rocksdb/src/rocks_record_store.cpp:34:0:
      src/mongo/db/modules/rocksdb/src/rocks_record_store.h:139:38: error:   by 'virtual mongo::StatusWith<mongo::RecordId> mongo::RocksRecordStore::insertRecord(mongo::OperationContext*, const char*, int, bool)' [-Werror=overloaded-virtual]
               virtual StatusWith<RecordId> insertRecord( OperationContext* opCtx,
                                            ^
      In file included from src/mongo/db/modules/rocksdb/src/rocks_record_store.h:42:0,
                       from src/mongo/db/modules/rocksdb/src/rocks_record_store.cpp:34:
      src/mongo/db/storage/record_store.h:408:20: error: 'virtual mongo::Status mongo::RecordStore::insertRecordsWithDocWriter(mongo::OperationContext*, const mongo::DocWriter* const*, const mongo::Timestamp*, size_t, mongo::RecordId*)' was hidden [-Werror=overloaded-virtual]
           virtual Status insertRecordsWithDocWriter(OperationContext* opCtx,
                          ^
      In file included from src/mongo/db/modules/rocksdb/src/rocks_record_store.cpp:34:0:
      src/mongo/db/modules/rocksdb/src/rocks_record_store.h:144:24: error:   by 'virtual mongo::Status mongo::RocksRecordStore::insertRecordsWithDocWriter(mongo::OperationContext*, const mongo::DocWriter* const*, size_t, mongo::RecordId*)' [-Werror=overloaded-virtual]
               virtual Status insertRecordsWithDocWriter(OperationContext* opCtx,
                              ^
      

            Assignee:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Reporter:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: