0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 08:12:37 +01:00

ircd::db: Use #error rather than #warning when RocksDB fixes cannot be interposed.

This commit is contained in:
Jason Volk 2020-04-29 15:27:06 -07:00
parent c5ce08f3d1
commit a416481e1b

View file

@ -82,7 +82,7 @@ rocksdb::WriteThread::BlockingAwaitState(Writer *const w,
return state;
}
#else
#warning "RocksDB source is not available. Cannot interpose bugfixes."
#error "RocksDB source is not available. Cannot interpose bugfixes."
#endif
#if __has_include("util/delete_scheduler.h")
@ -114,7 +114,7 @@ rocksdb::DeleteScheduler::~DeleteScheduler()
}
#else
#warning "RocksDB source is not available. Cannot interpose bugfixes."
#error "RocksDB source is not available. Cannot interpose bugfixes."
#endif
#if __has_include("util/file_util.h")
@ -127,6 +127,8 @@ rocksdb::DeleteSSTFile(const ImmutableDBOptions *db_options,
assert(db_options->env);
return db_options->env->DeleteFile(fname);
}
#else
#error "RocksDB source is not available. Cannot interpose bugfixes."
#endif
#if __has_include("table/block_fetcher.h") && defined(IRCD_DB_BYPASS_CHECKSUM)