File tree 2 files changed +0
-6
lines changed
2 files changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -867,9 +867,6 @@ Status CloudTablet::sync_meta() {
867
867
}
868
868
return st;
869
869
}
870
- if (tablet_meta->tablet_state () != TABLET_RUNNING) { // impossible
871
- return Status::InternalError (" invalid tablet state. tablet_id={}" , tablet_id ());
872
- }
873
870
874
871
auto new_ttl_seconds = tablet_meta->ttl_seconds ();
875
872
if (_tablet_meta->ttl_seconds () != new_ttl_seconds) {
Original file line number Diff line number Diff line change @@ -261,9 +261,6 @@ void CloudTabletMgr::sync_tablets(const CountDownLatch& stop_latch) {
261
261
262
262
for (auto & weak_tablet : weak_tablets) {
263
263
if (auto tablet = weak_tablet.lock ()) {
264
- if (tablet->tablet_state () != TABLET_RUNNING) {
265
- continue ;
266
- }
267
264
int64_t last_sync_time = tablet->last_sync_time_s ;
268
265
if (last_sync_time <= last_sync_time_bound) {
269
266
sync_time_tablet_set.emplace (last_sync_time, weak_tablet);
You can’t perform that action at this time.
0 commit comments