Skip to content

Commit 3b35dab

Browse files
TODO fixes
1 parent 5f7e036 commit 3b35dab

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

storage/rocksdb/ha_rocksdb.cc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5084,10 +5084,7 @@ class Rdb_transaction_impl : public Rdb_transaction {
50845084

50855085
void start_ignore_snapshot() {
50865086
// This may be called several times for the same statement
5087-
if (in_snapshot_ignore_mode()) {
5088-
assert(m_read_opts[TABLE_TYPE::USER_TABLE].snapshot == nullptr);
5089-
return;
5090-
}
5087+
if (in_snapshot_ignore_mode()) return;
50915088

50925089
assert(m_saved_snapshot == nullptr);
50935090

@@ -5303,7 +5300,7 @@ class Rdb_transaction_impl : public Rdb_transaction {
53035300
return;
53045301
}
53055302

5306-
if (has_snapshot(table_type)) {
5303+
if (!has_snapshot(table_type)) {
53075304
const auto thd_ss = std::static_pointer_cast<Rdb_explicit_snapshot>(
53085305
m_thd->get_explicit_snapshot());
53095306
if (thd_ss) {

storage/rocksdb/rdb_vector_db.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ uint create_vector_index(Rdb_cmd_srv_helper &, const std::string &,
714714
const FB_vector_index_config,
715715
std::shared_ptr<rocksdb::ColumnFamilyHandle>,
716716
const Rdb_key_def, const Index_id,
717-
std::unique_ptr<Rdb_vector_index> &) {
717+
std::unique_ptr<Rdb_vector_index> &index) {
718718
index = nullptr;
719719
return HA_ERR_UNSUPPORTED;
720720
}

0 commit comments

Comments
 (0)