{"id":7317,"date":"2024-04-07T19:01:01","date_gmt":"2024-04-07T11:01:01","guid":{"rendered":""},"modified":"2024-04-07T19:01:01","modified_gmt":"2024-04-07T11:01:01","slug":"\u6570\u636e\u5e93\u4e2d\u5e38\u8bf4\u7684steal\u548cforce\u5230\u5e95\u662f\u4ec0\u4e48","status":"publish","type":"post","link":"https:\/\/mushiming.com\/7317.html","title":{"rendered":"\u6570\u636e\u5e93\u4e2d\u5e38\u8bf4\u7684steal\u548cforce\u5230\u5e95\u662f\u4ec0\u4e48"},"content":{"rendered":"
\u65f6\u957f\u5728\u770b\u4e00\u4e9bdatabase paper\u7684\u65f6\u5019\u770b\u5230steal\u548cno-force\u7684\u5b57\u6837\uff0c\u6df1\u5165\u4e86\u89e3\u4e86\u4e00\u4e0b\uff0c\u53d1\u73b0\u6211\u4eec\u5e73\u65f6\u5173\u6ce8\u7684redo log\u4e2aundo log\u90fd\u662f\u6709\u6e0a\u6e90\u7684\uff0c\u4ec0\u4e48\u65f6\u5019\u9700\u8981redo log\uff0c\u4ec0\u4e48\u65f6\u5019\u9700\u8981undo log\uff0c\u4ec0\u4e48\u65f6\u5019\u4e24\u8005\u90fd\u9700\u8981\u3002\u82f1\u6587\u597d\u7684\u53ef\u4ee5\u76f4\u63a5\u53bb\u770b\u4e0a\u9762\u7684wiki\uff0c\u4e0d\u597d\u7684\u53ef\u4ee5\u770b\u6211\u603b\u7ed3\u7684\u5927\u767d\u8bdd\u5427\u3002<\/p>\n
<\/span> \u662f\u5426\u5141\u8bb8\u4e00\u4e2auncommitted\u7684\u4e8b\u52a1\u5c06\u4fee\u6539\u66f4\u65b0\u5230\u78c1\u76d8\uff0c\u5982\u679c\u662fsteal\u7b56\u7565\uff0c\u90a3\u4e48\u6b64\u65f6\u78c1\u76d8\u4e0a\u5c31\u53ef\u80fd\u5305\u542buncommitted\u7684\u6570\u636e\uff0c\u56e0\u6b64\u7cfb\u7edf\u9700\u8981\u8bb0\u5f55undo log\uff0c\u4ee5\u9632\u4e8b\u52a1abort\u65f6\u8fdb\u884c\u56de\u6eda\uff08roll-back\uff09\u3002\u5982\u679c\u662fno steal\u7b56\u7565\uff0c\u5c31\u8868\u793a\u78c1\u76d8\u4e0a\u4e0d\u4f1a\u5b58\u5728uncommitted\u6570\u636e\uff0c\u56e0\u6b64\u65e0\u9700\u56de\u6eda\u64cd\u4f5c\uff0c\u4e5f\u5c31\u65e0\u9700\u8bb0\u5f55undo log\u3002<\/span><\/p>\n <\/span> force\u7b56\u7565\u8868\u793a\u4e8b\u52a1\u5728committed\u4e4b\u540e\u5fc5\u987b\u5c06\u6240\u6709\u66f4\u65b0\u7acb\u523b\u6301\u4e45\u5316\u5230\u78c1\u76d8\uff0c\u8fd9\u6837\u4f1a\u5bfc\u81f4\u78c1\u76d8\u53d1\u751f\u5f88\u591a\u5c0f\u7684\u5199\u64cd\u4f5c\uff08\u66f4\u53ef\u80fd\u662f\u968f\u673a\u5199\uff09\u3002no-force\u8868\u793a\u4e8b\u52a1\u5728committed\u4e4b\u540e\u53ef\u4ee5\u4e0d\u7acb\u5373\u6301\u4e45\u5316\u5230\u78c1\u76d8\uff0c \u8fd9\u6837\u53ef\u4ee5\u7f13\u5b58\u5f88\u591a\u7684\u66f4\u65b0\u6279\u91cf\u6301\u4e45\u5316\u5230\u78c1\u76d8\uff0c\u8fd9\u6837\u53ef\u4ee5\u964d\u4f4e\u78c1\u76d8\u64cd\u4f5c\u6b21\u6570\uff08\u63d0\u5347\u987a\u5e8f\u5199\uff09\uff0c\u4f46\u662f\u5982\u679ccommitted\u4e4b\u540e\u53d1\u751fcrash\uff0c\u90a3\u4e48\u6b64\u65f6\u5df2\u7ecfcommitted\u7684\u4e8b\u52a1\u6570\u636e\u5c06\u4f1a\u4e22\u5931\uff08\u56e0\u4e3a\u8fd8\u6ca1\u6709\u6301\u4e45\u5316\u5230\u78c1\u76d8\uff09\uff0c\u56e0\u6b64\u7cfb\u7edf\u9700\u8981\u8bb0\u5f55redo log\uff0c\u5728\u7cfb\u7edf\u91cd\u542f\u65f6\u5019\u8fdb\u884c\u524d\u6eda\uff08roll-forward\uff09\u64cd\u4f5c\u3002 <\/span> <\/p>\n <\/p>\n <\/span> steal\/no-steal\u4e3b\u8981\u51b3\u5b9a\u4e86\u78c1\u76d8\u4e0a\u662f\u5426\u4f1a\u5305\u542buncommitted\u7684\u6570\u636e\u3002force\/no-force\u4e3b\u8981\u51b3\u5b9a\u4e86\u78c1\u76d8\u4e0a\u662f\u5426\u4f1a\u4e0d\u5305\u542b\u5df2\u7ecfcommitted\u7684\u6570\u636e\u3002<\/p>\n \u73b0\u5728DBMS\u5e38\u7528\u7684\u662fsteal\/no-force\u7b56\u7565\uff0c\u56e0\u6b64\u4e00\u822c\u90fd\u9700\u8981\u8bb0\u5f55redo log\u548cundo log\u3002\u8fd9\u6837\u53ef\u4ee5\u83b7\u5f97\u8f83\u5feb\u7684\u8fd0\u884c\u65f6\u6027\u80fd\uff0c\u4ee3\u4ef7\u5c31\u662f\u5728\u6570\u636e\u5e93\u6062\u590d\uff08recovery\uff09\u7684\u65f6\u5019\u9700\u8981\u505a\u5f88\u591a\u7684\u4e8b\u60c5\uff0c\u589e\u5927\u4e86\u7cfb\u7edf\u91cd\u542f\u7684\u65f6\u95f4\u3002<\/p>\n \u4e0b\u56fe\uff08\u6765\u6e90\u4e8e\u4e92\u8054\u7f51\uff09\u6982\u62ec\u4e86\u5404\u79cd\u7b56\u7565\u642d\u914d\u4e0b\u7684\u6027\u80fd\u548c\u8981\u8bb0\u5f55\u7684log\u7c7b\u578b\u3002<\/p>\n <\/p>\n","protected":false},"excerpt":{"rendered":"\u6570\u636e\u5e93\u4e2d\u5e38\u8bf4\u7684steal\u548cforce\u5230\u5e95\u662f\u4ec0\u4e48\u65f6\u957f\u5728\u770b\u4e00\u4e9bdatabasepaper\u7684\u65f6\u5019\u770b\u5230steal\u548cno-force\u7684\u5b57\u6837\uff0c\u6df1\u5165\u4e86\u89e3\u4e86\u4e00\u4e0b\uff0c\u53d1\u73b0\u6211...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/7317"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=7317"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/7317\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=7317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=7317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=7317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\n<\/span> <\/p>\nsteal\/no-steal:<\/h3>\n
\n<\/span> <\/p>\nforce\/no-force:<\/h3>\n
\n<\/span> <\/p>\n\u603b\u7ed3<\/h3>\n