[BugFix]Fix the error of using GTID to handle dirty tablet metadata (backport #62275) (#62284)

Signed-off-by: edwinhzhang <edwinhzhang@tencent.com>
Co-authored-by: zhanghe <edwinhzhang@tencent.com>
This commit is contained in:
mergify[bot] 2025-08-25 10:11:11 +00:00 committed by GitHub
parent 08af8a12be
commit b647155d20
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ StatusOr<TabletMetadataPtr> publish_version(TabletManager* tablet_mgr, int64_t t
}
auto new_version_metadata_or_error = [=](const Status& error) -> StatusOr<TabletMetadataPtr> {
auto res = tablet_mgr->get_tablet_metadata(tablet_id, new_version, txns.back().gtid());
auto res = tablet_mgr->get_tablet_metadata(tablet_id, new_version, true, txns.back().gtid());
if (res.ok()) return res;
return error;
};