1
0
Fork 0

Adjust debug output to changed api

This commit is contained in:
Willi Goesgens 2014-09-15 15:04:45 +02:00
parent 8bad042d08
commit f4f7c53808
1 changed files with 3 additions and 3 deletions

View File

@ -276,7 +276,7 @@ QueryResult Query::execute () {
// Now plan and all derived plans belong to the optimizer
plan = opt.stealBest(); // Now we own the best one again
TRI_ASSERT(plan != nullptr);
/* // for debugging of serialisation/deserialisation . . .
/* // for debugging of serialisation/deserialisation . . . * /
auto JsonPlan = plan->toJson(parser.ast(),TRI_UNKNOWN_MEM_ZONE, true);
auto JsonString = JsonPlan.toString();
std::cout << "original plan: \n" << JsonString << "\n";
@ -285,9 +285,9 @@ QueryResult Query::execute () {
JsonPlan);
otherPlan->getCost();
auto otherJsonString =
otherPlan->toJson(TRI_UNKNOWN_MEM_ZONE, true).toString();
otherPlan->toJson(parser.ast(), TRI_UNKNOWN_MEM_ZONE, true).toString();
std::cout << "deserialised plan: \n" << otherJsonString << "\n";
TRI_ASSERT(otherJsonString == JsonString);*/
TRI_ASSERT(otherJsonString == JsonString);//*/
triagens::basics::Json json(triagens::basics::Json::List);
triagens::basics::Json stats;