Skip to content

Commit

Permalink
TODO fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
laurynas-biveinis committed Apr 29, 2024
1 parent 5f7e036 commit 3b35dab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions storage/rocksdb/ha_rocksdb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5084,10 +5084,7 @@ class Rdb_transaction_impl : public Rdb_transaction {

void start_ignore_snapshot() {
// This may be called several times for the same statement
if (in_snapshot_ignore_mode()) {
assert(m_read_opts[TABLE_TYPE::USER_TABLE].snapshot == nullptr);
return;
}
if (in_snapshot_ignore_mode()) return;

assert(m_saved_snapshot == nullptr);

Expand Down Expand Up @@ -5303,7 +5300,7 @@ class Rdb_transaction_impl : public Rdb_transaction {
return;
}

if (has_snapshot(table_type)) {
if (!has_snapshot(table_type)) {
const auto thd_ss = std::static_pointer_cast<Rdb_explicit_snapshot>(
m_thd->get_explicit_snapshot());
if (thd_ss) {
Expand Down
2 changes: 1 addition & 1 deletion storage/rocksdb/rdb_vector_db.cc
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ uint create_vector_index(Rdb_cmd_srv_helper &, const std::string &,
const FB_vector_index_config,
std::shared_ptr<rocksdb::ColumnFamilyHandle>,
const Rdb_key_def, const Index_id,
std::unique_ptr<Rdb_vector_index> &) {
std::unique_ptr<Rdb_vector_index> &index) {
index = nullptr;
return HA_ERR_UNSUPPORTED;
}
Expand Down

0 comments on commit 3b35dab

Please sign in to comment.