Skip to content

Instantly share code, notes, and snippets.

CREATE DATABASE `sequencedb`;
CREATE TABLE `sequencedb`.`sequences` (
`sequence_name` varchar(100) NOT NULL,
`sequence_increment` int(11) unsigned NOT NULL DEFAULT 1,
`sequence_current_value` bigint(20) unsigned DEFAULT 1,
PRIMARY KEY (`sequence_name`)
) ENGINE=innodb;
DELIMITER $$
struct server *get_server_ph(struct proxy *px, const char *uri, int uri_len)
{
unsigned long hash = 0;
const char *p;
const char *params;
int plen;
char *param_decode;
/* when tot_weight is 0 then so is srv_count */
if (px->lbprm.tot_weight == 0)
# setting up irq affinity according to /proc/interrupts
# 2008-11-25 Robert Olsson
# 2009-02-19 updated by Jesse Brandeburg
#
# > Dave Miller:
# (To get consistent naming in /proc/interrups)
# I would suggest that people use something like:
# char buf[IFNAMSIZ+6];
#
# sprintf(buf, "%s-%s-%d",