Mark MVCCDatabaseOpen() as unsafe

This commit is contained in:
Pekka Enberg 2023-05-09 10:44:06 +03:00
parent db1e313aca
commit 3ecb0fb2a9

View file

@ -23,7 +23,7 @@ type Db = database::Database<Clock, Storage, tokio::sync::Mutex<Inner>>;
static INIT_RUST_LOG: std::sync::Once = std::sync::Once::new();
#[no_mangle]
pub extern "C" fn MVCCDatabaseOpen(path: *const std::ffi::c_char) -> MVCCDatabaseRef {
pub unsafe extern "C" fn MVCCDatabaseOpen(path: *const std::ffi::c_char) -> MVCCDatabaseRef {
INIT_RUST_LOG.call_once(|| {
tracing_subscriber::fmt::init();
});