JSONDB fix.

This commit is contained in:
Adam Ierymenko 2017-04-18 13:48:19 -07:00
parent 48cadcd2fc
commit f6d92eb737
4 changed files with 9 additions and 8 deletions

View file

@ -1129,7 +1129,8 @@ unsigned int EmbeddedNetworkController::handleControlPlaneHttpDELETE(
} else {
Mutex::Lock _l(_db_m);
std::string pfx("network/"); pfx.append(nwids);
std::string pfx("network/");
pfx.append(nwids);
_db.filter(pfx,[](const std::string &n,const json &obj) {
return false; // delete
});