mirror of https://github.com/citusdata/citus.git
test
parent
697bb55fc5
commit
2032afcb70
|
@ -514,19 +514,16 @@ InsertCleanupRecordInSubtransaction(CleanupObject objectType,
|
||||||
*/
|
*/
|
||||||
Assert(CurrentOperationId != INVALID_OPERATION_ID);
|
Assert(CurrentOperationId != INVALID_OPERATION_ID);
|
||||||
|
|
||||||
StringInfo sequenceName = makeStringInfo();
|
uint64 recordId = GetNextCleanupRecordId();
|
||||||
appendStringInfo(sequenceName, "%s.%s",
|
|
||||||
PG_CATALOG,
|
|
||||||
CLEANUPRECORDID_SEQUENCE_NAME);
|
|
||||||
|
|
||||||
StringInfo command = makeStringInfo();
|
StringInfo command = makeStringInfo();
|
||||||
appendStringInfo(command,
|
appendStringInfo(command,
|
||||||
"INSERT INTO %s.%s "
|
"INSERT INTO %s.%s "
|
||||||
" (record_id, operation_id, object_type, object_name, node_group_id, policy_type) "
|
" (record_id, operation_id, object_type, object_name, node_group_id, policy_type) "
|
||||||
" VALUES ( nextval('%s'), " UINT64_FORMAT ", %d, %s, %d, %d)",
|
" VALUES ( %lu, " UINT64_FORMAT ", %d, %s, %d, %d)",
|
||||||
PG_CATALOG,
|
PG_CATALOG,
|
||||||
PG_DIST_CLEANUP,
|
PG_DIST_CLEANUP,
|
||||||
sequenceName->data,
|
recordId,
|
||||||
CurrentOperationId,
|
CurrentOperationId,
|
||||||
objectType,
|
objectType,
|
||||||
quote_literal_cstr(objectName),
|
quote_literal_cstr(objectName),
|
||||||
|
|
Loading…
Reference in New Issue