MCPcopy Create free account
hub / github.com/RedisGraph/RedisGraph / AttributeSet_PersistValues

Function AttributeSet_PersistValues

src/graph/entities/attribute_set.c:398–412  ·  view source on GitHub ↗

persists all attributes within given set

Source from the content-addressed store, hash-verified

396
397// persists all attributes within given set
398void AttributeSet_PersistValues
399(
400 const AttributeSet set // set to persist
401) {
402 // return if set is read-only
403 ASSERT(ATTRIBUTE_SET_IS_READONLY(set) == false);
404
405 if(set == NULL) return;
406
407 for (uint16_t i = 0; i < set->attr_count; ++i) {
408 Attribute *attr = set->attributes + i;
409
410 SIValue_Persist(&attr->value);
411 }
412}
413
414// free attribute set
415void AttributeSet_Free

Callers 1

CommitUpdatesFunction · 0.85

Calls 1

SIValue_PersistFunction · 0.85

Tested by

no test coverage detected