Skip to content

Commit b49f88a

Browse files
committed
add: recover debug function
1 parent 1b96db0 commit b49f88a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/cypher/execution_plan/ops/op_var_len_expand.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@
2121
#include "cypher/execution_plan/ops/op.h"
2222
#include "filter/filter.h"
2323

24+
#ifndef NDEBUG
25+
#define VAR_LEN_EXP_DUMP_FOR_DEBUG() \
26+
do { \
27+
LOG_DEBUG() << __func__ << __LINE__ << ": hop=" << hop_ << ", edge=" \
28+
<< (hop_ == 0 ? "na" : _detail::EdgeUid2String(eits_[hop_ - 1].GetUid())); \
29+
LOG_DEBUG() << pattern_graph_->VisitedEdges().Dump(); \
30+
} while (0)
31+
#else
32+
#define VAR_LEN_EXP_DUMP_FOR_DEBUG()
33+
#endif
34+
2435
namespace cypher {
2536

2637
struct DfsState {

0 commit comments

Comments
 (0)