diff options
Diffstat (limited to 'src/vmod_dbrw.c')
-rw-r--r-- | src/vmod_dbrw.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/vmod_dbrw.c b/src/vmod_dbrw.c index c3436f8..9e6af1e 100644 --- a/src/vmod_dbrw.c +++ b/src/vmod_dbrw.c @@ -1,5 +1,5 @@ /* This file is part of vmod-dbrw - Copyright (C) 2013-2014 Sergey Poznyakoff + Copyright (C) 2013-2017 Sergey Poznyakoff Vmod-dbrw is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -198,7 +198,6 @@ parse_flags(const char *arg, int *qdisp, int *flags, char status[]) return rc; } - /* Configure the module. BACKEND - "mysql" or "pgsql" PARAM - VAR=VALUE*: @@ -217,7 +216,7 @@ vmod_config(VRT_CTX, struct vmod_priv *priv, { struct dbrw_config *conf; struct dbrw_backend *backend; - + AZ(priv->priv); backend = dbrw_backend_select(bkname); if (!backend) { @@ -571,3 +570,10 @@ vmod_rewrite(VRT_CTX, struct vmod_priv *priv, VCL_STRING arg) debug(conf, 1, ("vmod_rewrite: res=%s", res ? res : "(NULL)")); return res; } +wd() +{ + int volatile _st=0; + while (!_st) { + _st=_st; + } +} |