MCPcopy Create free account
hub / github.com/MariaDB/server / commit

Method commit

storage/rocksdb/rdb_datadic.cc:4803–4818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4801}
4802
4803int Rdb_dict_manager::commit(rocksdb::WriteBatch *const batch,
4804 const bool sync) const {
4805 if (!batch) return HA_ERR_ROCKSDB_COMMIT_FAILED;
4806 int res = HA_EXIT_SUCCESS;
4807 rocksdb::WriteOptions options;
4808 options.sync = sync;
4809 rocksdb::TransactionDBWriteOptimizations optimize;
4810 optimize.skip_concurrency_control = true;
4811 rocksdb::Status s = m_db->Write(options, optimize, batch);
4812 res = !s.ok(); // we return true when something failed
4813 if (res) {
4814 rdb_handle_io_error(s, RDB_IO_ERROR_DICT_COMMIT);
4815 }
4816 batch->Clear();
4817 return res;
4818}
4819
4820void Rdb_dict_manager::dump_index_id(uchar *const netbuf,
4821 Rdb_key_def::DATA_DICT_TYPE dict_type,

Callers 12

persist_statsMethod · 0.45
finishMethod · 0.45
runmeMethod · 0.45
populate_id_mapMethod · 0.45
verify_txnMethod · 0.45
verify_dataMethod · 0.45
execute_oneMethod · 0.45
runmeMethod · 0.45
load_generator.pyFile · 0.45
runmeMethod · 0.45
runmeMethod · 0.45

Calls 4

rdb_handle_io_errorFunction · 0.85
WriteMethod · 0.45
okMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected