@@ -605,7 +605,7 @@ rocksdb::Status Storage::Get(engine::Context &ctx, const rocksdb::ReadOptions &o
605
605
rocksdb::ColumnFamilyHandle *column_family, const rocksdb::Slice &key,
606
606
std::string *value) {
607
607
if (ctx.txn_context_enabled ) {
608
- DCHECK_NOTNULL (options.snapshot );
608
+ DCHECK_NE (options.snapshot , nullptr );
609
609
DCHECK_EQ (ctx.GetSnapshot ()->GetSequenceNumber (), options.snapshot ->GetSequenceNumber ());
610
610
}
611
611
rocksdb::Status s;
@@ -630,7 +630,7 @@ rocksdb::Status Storage::Get(engine::Context &ctx, const rocksdb::ReadOptions &o
630
630
rocksdb::ColumnFamilyHandle *column_family, const rocksdb::Slice &key,
631
631
rocksdb::PinnableSlice *value) {
632
632
if (ctx.txn_context_enabled ) {
633
- DCHECK_NOTNULL (options.snapshot );
633
+ DCHECK_NE (options.snapshot , nullptr );
634
634
DCHECK_EQ (ctx.GetSnapshot ()->GetSequenceNumber (), options.snapshot ->GetSequenceNumber ());
635
635
}
636
636
rocksdb::Status s;
@@ -663,7 +663,7 @@ void Storage::recordKeyspaceStat(const rocksdb::ColumnFamilyHandle *column_famil
663
663
rocksdb::Iterator *Storage::NewIterator (engine::Context &ctx, const rocksdb::ReadOptions &options,
664
664
rocksdb::ColumnFamilyHandle *column_family) {
665
665
if (ctx.txn_context_enabled ) {
666
- DCHECK_NOTNULL (options.snapshot );
666
+ DCHECK_NE (options.snapshot , nullptr );
667
667
DCHECK_EQ (ctx.GetSnapshot ()->GetSequenceNumber (), options.snapshot ->GetSequenceNumber ());
668
668
}
669
669
auto iter = db_->NewIterator (options, column_family);
@@ -679,7 +679,7 @@ void Storage::MultiGet(engine::Context &ctx, const rocksdb::ReadOptions &options
679
679
rocksdb::ColumnFamilyHandle *column_family, const size_t num_keys, const rocksdb::Slice *keys,
680
680
rocksdb::PinnableSlice *values, rocksdb::Status *statuses) {
681
681
if (ctx.txn_context_enabled ) {
682
- DCHECK_NOTNULL (options.snapshot );
682
+ DCHECK_NE (options.snapshot , nullptr );
683
683
DCHECK_EQ (ctx.GetSnapshot ()->GetSequenceNumber (), options.snapshot ->GetSequenceNumber ());
684
684
}
685
685
if (is_txn_mode_ && txn_write_batch_->GetWriteBatch ()->Count () > 0 ) {
0 commit comments