{"id":1751,"date":"2010-03-11T21:54:54","date_gmt":"2010-03-12T05:54:54","guid":{"rendered":"http:\/\/arcanius.silverfir.net\/blog\/?p=1751"},"modified":"2010-03-15T21:52:29","modified_gmt":"2010-03-16T04:52:29","slug":"safety-agains-reopen","status":"publish","type":"post","link":"https:\/\/arcanius.silverfir.net\/blog\/safety-agains-reopen\/","title":{"rendered":"Safety Agains Reopen"},"content":{"rendered":"<p>What does <a href=\"http:\/\/bazaar.launchpad.net\/~mysql\/mysql-server\/mysql-5.1\/annotate\/head%3A\/sql\/log.cc#L2295\">this comment<\/a> in the MySQL source mean? (log.cc, currently line 2295 in 5.1)<\/p>\n<p><code>{\t\t\t\t\t\t\/\/ Safety agains reopen<\/code><\/p>\n<p>I think I understand what it&#8217;s <em>supposed<\/em> to mean &#8212; the writer is pointing out that the code is checking again, to be double sure that the log is still open (although, if it can close between this call and the last call to <code>is_open()<\/code>, I&#8217;d be worried about it closing after this call too&#8230; note that both checks are after <code>LOCK_log<\/code> has been acquired).<\/p>\n<p>What I&#8217;m more interested in is what the comment, as written, actually means? The grammar is very odd. I&#8217;m open to suggestions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What does this comment in the MySQL source mean? (log.cc, currently line 2295 in 5.1) { \/\/ Safety agains reopen I think I understand what it&#8217;s supposed to mean &#8212; the writer is pointing out that the code is checking again, to be double sure that the log is still open (although, if it can [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[45,8],"class_list":["post-1751","post","type-post","status-publish","format-standard","hentry","category-everything","tag-mysql","tag-technology"],"_links":{"self":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/posts\/1751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/comments?post=1751"}],"version-history":[{"count":3,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/posts\/1751\/revisions"}],"predecessor-version":[{"id":1753,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/posts\/1751\/revisions\/1753"}],"wp:attachment":[{"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/media?parent=1751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/categories?post=1751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arcanius.silverfir.net\/blog\/wp-json\/wp\/v2\/tags?post=1751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}