add a node remove labels effect to buffer
| 709 | |
| 710 | // add a node remove labels effect to buffer |
| 711 | void EffectsBuffer_AddRemoveLabelsEffect |
| 712 | ( |
| 713 | EffectsBuffer *buff, // effect buffer |
| 714 | const Node *node, // updated node |
| 715 | const LabelID *lbl_ids, // removed labels |
| 716 | size_t lbl_count // number of removed labels |
| 717 | ) { |
| 718 | //-------------------------------------------------------------------------- |
| 719 | // effect format: |
| 720 | // effect type |
| 721 | // node ID |
| 722 | // labels count |
| 723 | // label IDs |
| 724 | //-------------------------------------------------------------------------- |
| 725 | |
| 726 | QueryCtx_GetResultSetStatistics()->labels_removed += lbl_count; |
| 727 | |
| 728 | EffectType t = EFFECT_REMOVE_LABELS; |
| 729 | EffectsBuffer_AddSetRemoveLabelsEffect(buff, node, lbl_ids, lbl_count, t); |
| 730 | |
| 731 | EffectsBuffer_IncEffectCount(buff); |
| 732 | } |
| 733 | |
| 734 | // add a schema addition effect to buffer |
| 735 | void EffectsBuffer_AddNewSchemaEffect |
no test coverage detected