diff options
author | Kees Bos <k.bos@capitar.com> | 2015-06-11 11:49:13 +0200 |
---|---|---|
committer | Kees Bos <k.bos@capitar.com> | 2015-06-11 11:49:13 +0200 |
commit | 0d0af07ce969c9dd5a416c3b9f466ab0139a57e3 (patch) | |
tree | d24fb8b919a5c03c6b01b000c508aac7956418bc /service/ControlPlane.cpp | |
parent | de697a1c45e8afbdd32687b9b5d203732ce5e62a (diff) | |
download | infinitytier-0d0af07ce969c9dd5a416c3b9f466ab0139a57e3.tar.gz infinitytier-0d0af07ce969c9dd5a416c3b9f466ab0139a57e3.zip |
Get deletion of networks in controller going
Multiple statements in a sqlite3_prepare_v2 is not usable. Only
the first statement will be executed.
Since the schema now uses 'ON DELETE CASCADE', there's only
one statement needed.
If multiple statements are needed, there should be either multiple
sqlite3_prepare_v2 calls be used or the sqlite3_exec function.
Diffstat (limited to 'service/ControlPlane.cpp')
-rw-r--r-- | service/ControlPlane.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/ControlPlane.cpp b/service/ControlPlane.cpp index 71b3fd3f..3ff9b7a2 100644 --- a/service/ControlPlane.cpp +++ b/service/ControlPlane.cpp @@ -525,7 +525,7 @@ unsigned int ControlPlane::handleRequest( } else { #ifdef ZT_ENABLE_NETWORK_CONTROLLER if (_controller) - _controller->handleControlPlaneHttpDELETE(std::vector<std::string>(ps.begin()+1,ps.end()),urlArgs,headers,body,responseBody,responseContentType); + scode = _controller->handleControlPlaneHttpDELETE(std::vector<std::string>(ps.begin()+1,ps.end()),urlArgs,headers,body,responseBody,responseContentType); else scode = 404; #else scode = 404; |