@@ -65,8 +65,7 @@ bool SliceSnapshot::IsSnaphotInProgress() {
65
65
return tl_slice_snapshots.size () > 0 ;
66
66
}
67
67
68
- void SliceSnapshot::Start (bool stream_journal, const Cancellation* cll, SnapshotFlush allow_flush)
69
- ABSL_LOCKS_EXCLUDED(big_value_mu_) {
68
+ void SliceSnapshot::Start (bool stream_journal, const Cancellation* cll, SnapshotFlush allow_flush) {
70
69
DCHECK (!snapshot_fb_.IsJoinable ());
71
70
72
71
auto db_cb = absl::bind_front (&SliceSnapshot::OnDbChange, this );
@@ -82,16 +81,15 @@ void SliceSnapshot::Start(bool stream_journal, const Cancellation* cll, Snapshot
82
81
const auto flush_threshold = ServerState::tlocal ()->serialization_max_chunk_size ;
83
82
std::function<void (size_t , RdbSerializer::FlushState)> flush_fun;
84
83
if (flush_threshold != 0 && allow_flush == SnapshotFlush::kAllow ) {
85
- flush_fun =
86
- [this , flush_threshold](size_t bytes_serialized, RdbSerializer::FlushState flush_state)
87
- ABSL_LOCKS_EXCLUDED (big_value_mu_) {
88
- if (bytes_serialized > flush_threshold) {
89
- size_t serialized = FlushSerialized (flush_state);
90
- VLOG (2 ) << " FlushSerialized " << serialized << " bytes" ;
91
- auto & stats = ServerState::tlocal ()->stats ;
92
- ++stats.big_value_preemptions ;
93
- }
94
- };
84
+ flush_fun = [this , flush_threshold](size_t bytes_serialized,
85
+ RdbSerializer::FlushState flush_state) {
86
+ if (bytes_serialized > flush_threshold) {
87
+ size_t serialized = FlushSerialized (flush_state);
88
+ VLOG (2 ) << " FlushSerialized " << serialized << " bytes" ;
89
+ auto & stats = ServerState::tlocal ()->stats ;
90
+ ++stats.big_value_preemptions ;
91
+ }
92
+ };
95
93
}
96
94
serializer_ = std::make_unique<RdbSerializer>(compression_mode_, flush_fun);
97
95
@@ -104,8 +102,7 @@ void SliceSnapshot::Start(bool stream_journal, const Cancellation* cll, Snapshot
104
102
});
105
103
}
106
104
107
- void SliceSnapshot::StartIncremental (Context* cntx, LSN start_lsn)
108
- ABSL_LOCKS_EXCLUDED(big_value_mu_) {
105
+ void SliceSnapshot::StartIncremental (Context* cntx, LSN start_lsn) {
109
106
serializer_ = std::make_unique<RdbSerializer>(compression_mode_);
110
107
111
108
snapshot_fb_ = fb2::Fiber (" incremental_snapshot" , [cntx, start_lsn, this ] {
0 commit comments