File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -1333,6 +1333,8 @@ size_t RdbSaver::Impl::GetTotalBuffersSize() const {
1333
1333
1334
1334
auto cb = [this , &channel_bytes, &serializer_bytes](ShardId sid) {
1335
1335
auto & snapshot = shard_snapshots_[sid];
1336
+ if (!snapshot)
1337
+ return ;
1336
1338
if (channel_.has_value ())
1337
1339
channel_bytes.fetch_add (channel_->GetSize (), memory_order_relaxed);
1338
1340
serializer_bytes.store (snapshot->GetBufferCapacity () + snapshot->GetTempBuffersSize (),
@@ -1355,6 +1357,8 @@ RdbSaver::SnapshotStats RdbSaver::Impl::GetCurrentSnapshotProgress() const {
1355
1357
1356
1358
auto cb = [this , &results](ShardId sid) {
1357
1359
auto & snapshot = shard_snapshots_[sid];
1360
+ if (!snapshot)
1361
+ return ;
1358
1362
results[sid] = snapshot->GetCurrentSnapshotProgress ();
1359
1363
};
1360
1364
You can’t perform that action at this time.
0 commit comments