In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. When starting the recovery, determine the timeline recoveryTargetTLI to which the recovery is going.
1) if the archive recovery point is larger than the timeline recorded in checkpoint, select the archive recovery point as the target timeline
2) otherwise, the timeline in the checkpoint record is used as the target timeline
StartupXLOG- > if (ControlFile- > minRecoveryPointTLI > ControlFile- > checkPointCopy.ThisTimeLineID) recoveryTargetTLI = ControlFile- > minRecoveryPointTLI; else recoveryTargetTLI = ControlFile- > checkPointCopy.ThisTimeLineID;.
2. Then read from the recovery.conf file
1) if the recovery_target_ time value is set and set to latest, then the largest timeline of the history list is the target timeline
2) otherwise, it is the timeline value set in the recovery.conf file
3) if the recovery_target_ time value is not set, the target timeline is the value in the first step
StartupXLOG- > readRecoveryCommandFile ()-> for (item = head; item; item = item- > next) {if (strcmp (item- > name, "restore_command") = = 0) {...} else if. Else if (strcmp (item- > name, "recovery_target_timeline") = = 0) {rtliGiven = true; if (strcmp (item- > value, "latest") = = 0) rtli = 0; else rtli = (TimeLineID) strtoul (item- > value, NULL, 0) } else if... } if (rtliGiven) {if (rtli) {recoveryTargetTLI = rtli; recoveryTargetIsLatest = false;} else {/ * We start the "latest" search from pg_control's timeline * / recoveryTargetTLI = findNewestTimeLine (recoveryTargetTLI); recoveryTargetIsLatest = true }}
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.