{"id":4558,"date":"2010-08-13T10:38:05","date_gmt":"2010-08-13T01:38:05","guid":{"rendered":"https:\/\/xe.bz\/blog\/4558.html"},"modified":"2010-08-13T10:38:05","modified_gmt":"2010-08-13T01:38:05","slug":"51547127","status":"publish","type":"post","link":"https:\/\/akibabara.com\/blog\/4558.html","title":{"rendered":"memcached\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30d7\u30ed\u30b0\u30e9\u30e0mcb\u304c\u843d\u3061\u308b"},"content":{"rendered":"<p>memcached\u3092\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3057\u3088\u3046\u3068\u601d\u3063\u3066CentOS 5.5\u3067<a href=\"http:\/\/www.interdb.jp\/techinfo\/mcb\/\" target=\"_blank\">mcb<\/a>\u306e1.0RC2\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u3001\u306a\u305c\u304b\u30bb\u30b0\u30e1\u30f3\u30c6\u30fc\u30b7\u30e7\u30f3\u9055\u53cd\u3068\u306a\u308a\u843d\u3061\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u3057\u304b\u3057\u79c1\u306fC\u306f\u3055\u3063\u3071\u308a\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u30fb\u30fb\u30fb\u3002\u3068\u308a\u3042\u3048\u305a\u30e1\u30e2\u30ea\u95a2\u9023\u3060\u3068\u601d\u3063\u3066\u9069\u5f53\u306b\u5024\u3092\u3044\u3058\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n<blockquote><p>&#8212; mcb.c.orig\t2010-08-13 10:09:25.000000000 +0900<br \/>\n+++ mcb.c\t2010-08-13 10:33:33.000000000 +0900<br \/>\n@@ -387,11 +387,11 @@<\/p>\n<p>assert(0 <= no &#038;&#038; no < sysval.thread_num);\n\n-    if ((buff = calloc(1, sysval.data_len * 2 + 100)) == NULL) {\n+    if ((buff = calloc(1, sysval.data_len * 2 + 2000)) == NULL) {\nelog(\"calloc error\");\nexit(-1);\n}\n-    if ((data = calloc(1, sysval.data_len * 2 + 1)) == NULL) {\n+    if ((data = calloc(1, sysval.data_len * 2 + 2000)) == NULL) {\nelog(\"calloc error\");\nexit(-1);\n}<\/p><\/blockquote>\n<p>-n\u306e\u5024\uff08\u30b9\u30ec\u30c3\u30c9\u5f53\u305f\u308a\u306e\u9001\u4fe1\u30b3\u30de\u30f3\u30c9\u6570\uff09\u306b\u3088\u3063\u3066\u3082\u3063\u3068\u6570\u5b57\u3092\u5927\u304d\u304f\u3057\u306a\u3044\u3068\u3044\u3051\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u3068\u308a\u3042\u3048\u305a-n 1000000\u307e\u3067\u306f\u3044\u3051\u307e\u3057\u305f\u3002\u3061\u306a\u307f\u306b\u306a\u3093\u3067\u3053\u3046\u306a\u306e\u304b\u7406\u5c48\u306f\u308f\u304b\u3063\u3066\u307e\u305b\u3093\u3002(^^;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>memcached\u3092\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3057\u3088\u3046\u3068\u601d\u3063\u3066CentOS 5.5\u3067mcb\u306e1.0RC2\u3092\u30b3\u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[11],"tags":[],"class_list":{"0":"post-4558","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-linux","7":"three-column","8":"ar-three-column","9":"au-three-column"},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/savCgQ-51547127","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/posts\/4558","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/comments?post=4558"}],"version-history":[{"count":0,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/posts\/4558\/revisions"}],"wp:attachment":[{"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/media?parent=4558"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/categories?post=4558"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/akibabara.com\/blog\/wp-json\/wp\/v2\/tags?post=4558"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}