File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -67,13 +67,13 @@ void ArenaWrappedDBIter::Init(
67
67
void ArenaWrappedDBIter::MaybeAutoRefresh (bool is_seek,
68
68
DBIter::Direction direction) {
69
69
if (cfh_ != nullptr && read_options_.snapshot != nullptr && allow_refresh_ &&
70
- read_options_.auto_refresh_iterator_with_snapshot && status (). ok () ) {
70
+ read_options_.auto_refresh_iterator_with_snapshot ) {
71
71
// The intent here is to capture the superversion number change
72
72
// reasonably soon from the time it actually happened. As such,
73
73
// we're fine with weaker synchronization / ordering guarantees
74
74
// provided by relaxed atomic (in favor of less CPU / mem overhead).
75
75
uint64_t cur_sv_number = cfh_->cfd ()->GetSuperVersionNumberRelaxed ();
76
- if (sv_number_ != cur_sv_number) {
76
+ if (( sv_number_ != cur_sv_number) && status (). ok () ) {
77
77
// Changing iterators' direction is pretty heavy-weight operation and
78
78
// could have unintended consequences when it comes to prefix seek.
79
79
// Therefore, we need an efficient implementation that does not duplicate
You can’t perform that action at this time.
0 commit comments