mirror of https://github.com/citusdata/citus.git
parent
cdec663c60
commit
31e19e8b19
|
|
@ -657,7 +657,9 @@ SaveStripeSkipList(RelFileLocator relfilelocator, uint64 stripe,
|
||||||
nulls[Anum_columnar_chunk_maximum_value - 1] = true;
|
nulls[Anum_columnar_chunk_maximum_value - 1] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
PushActiveSnapshot(GetTransactionSnapshot());
|
||||||
InsertTupleAndEnforceConstraints(modifyState, values, nulls);
|
InsertTupleAndEnforceConstraints(modifyState, values, nulls);
|
||||||
|
PopActiveSnapshot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2859,7 +2859,9 @@ InsertNodeRow(int nodeid, char *nodeName, int32 nodePort, NodeMetadata *nodeMeta
|
||||||
TupleDesc tupleDescriptor = RelationGetDescr(pgDistNode);
|
TupleDesc tupleDescriptor = RelationGetDescr(pgDistNode);
|
||||||
HeapTuple heapTuple = heap_form_tuple(tupleDescriptor, values, isNulls);
|
HeapTuple heapTuple = heap_form_tuple(tupleDescriptor, values, isNulls);
|
||||||
|
|
||||||
|
PushActiveSnapshot(GetTransactionSnapshot());
|
||||||
CatalogTupleInsert(pgDistNode, heapTuple);
|
CatalogTupleInsert(pgDistNode, heapTuple);
|
||||||
|
PopActiveSnapshot();
|
||||||
|
|
||||||
CitusInvalidateRelcacheByRelid(DistNodeRelationId());
|
CitusInvalidateRelcacheByRelid(DistNodeRelationId());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,9 @@ LogTransactionRecord(int32 groupId, char *transactionName)
|
||||||
TupleDesc tupleDescriptor = RelationGetDescr(pgDistTransaction);
|
TupleDesc tupleDescriptor = RelationGetDescr(pgDistTransaction);
|
||||||
HeapTuple heapTuple = heap_form_tuple(tupleDescriptor, values, isNulls);
|
HeapTuple heapTuple = heap_form_tuple(tupleDescriptor, values, isNulls);
|
||||||
|
|
||||||
|
PushActiveSnapshot(GetTransactionSnapshot());
|
||||||
CatalogTupleInsert(pgDistTransaction, heapTuple);
|
CatalogTupleInsert(pgDistTransaction, heapTuple);
|
||||||
|
PopActiveSnapshot();
|
||||||
|
|
||||||
CommandCounterIncrement();
|
CommandCounterIncrement();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue