- 2010 InnoDB 5.1 announced, will first ship with MySQL 5.5.
- Historically InnoDB development lags while MySQL is trying to GA
- lots of things fixed in InnoDB since MySQL 5.0
- important note -- plugin version of InnoDB is not the default in 5.1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import optparse | |
import signal | |
import time | |
import tornado.httpserver | |
import tornado.httpclient | |
import tornado.simple_httpclient | |
import tornado.curl_httpclient | |
import tornado.ioloop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tornado.ioloop | |
loop = tornado.ioloop.IOLoop.instance() | |
def callback(*args): | |
loop.add_callback(callback) | |
callback() | |
loop.start() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import optparse | |
import time | |
from tornado.ioloop import IOLoop | |
def main(iterations): | |
loop = IOLoop.instance() | |
counter = [0] | |
def callback(*args): | |
counter[0] += 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A FunctionTemplate is used to create functions at runtime. There | |
* can only be one function created from a FunctionTemplate in a | |
* context. The lifetime of the created function is equal to the | |
* lifetime of the context. So in case the embedder needs to create | |
* temporary functions that can be collected using Scripts is | |
* preferred. | |
* | |
* A FunctionTemplate can have properties, these properties are added to the | |
* function object when it is created. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A FunctionTemplate is used to create functions at runtime. There | |
* can only be one function created from a FunctionTemplate in a | |
* context. The lifetime of the created function is equal to the | |
* lifetime of the context. So in case the embedder needs to create | |
* temporary functions that can be collected using Scripts is | |
* preferred. | |
* | |
* A FunctionTemplate can have properties, these properties are added to the | |
* function object when it is created. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1333743808.054205 --- SIGTERM (Terminated) @ 0 (0) --- | |
1333743808.054361 rt_sigreturn(0xf) = -1 EINTR (Interrupted system call) | |
1333743808.054589 socket(PF_FILE, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 7 | |
1333743808.054789 connect(7, {sa_family=AF_FILE, path="/dev/log"}, 110) = 0 | |
1333743808.054988 sendto(7, "<38>Apr 6 13:23:28 sshd[2330]: "..., 64, MSG_NOSIGNAL, NULL, 0) = 64 | |
1333743808.055198 close(7) = 0 | |
1333743808.055429 close(3) = 0 | |
1333743808.055670 close(4) = 0 | |
1333743808.055894 close(5) = 0 | |
1333743808.056061 close(6) = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 | |
4 2 | |
3 | |
7 5 | |
6 | |
1->2->3->4 forms a loop | |
3->5->6->7 forms a loop | |
4 and 5 are slaves of 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <unistd.h> | |
int main(int argc, char **argv) { | |
char buf[100]; | |
chdir("//"); | |
getcwd(buf, sizeof(buf)); | |
printf("%s\n", buf); | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
#include <ctype.h> | |
#include <cxxabi.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <string> | |
#include <vector> |