mirror of https://github.com/citusdata/citus.git
Fix tests
parent
5d6ac5d0a1
commit
d50c015934
|
@ -1129,7 +1129,7 @@ AcquireDistributedLockOnRelations_Internal(List *relationIdList, LOCKMODE lockMo
|
|||
LOCK_RELATION_IF_EXISTS;
|
||||
appendStringInfo(lockRelationCommand, lockCommand,
|
||||
quote_literal_cstr(qualifiedRelationName),
|
||||
lockModeCString);
|
||||
quote_literal_cstr(lockModeCString));
|
||||
|
||||
/* preemptive permission check so a worker connection is not */
|
||||
/* established if the user is not allowed to acquire the lock */
|
||||
|
|
|
@ -117,9 +117,9 @@ typedef enum CitusOperations
|
|||
#define DIST_LOCK_NOWAIT 1 << 2
|
||||
|
||||
#define LOCK_RELATION_IF_EXISTS \
|
||||
"SELECT pg_catalog.lock_relation_if_exists(%s, quote_literal_cstr(%s));"
|
||||
"SELECT pg_catalog.lock_relation_if_exists(%s, %s);"
|
||||
#define LOCK_RELATION_IF_EXISTS_NOWAIT \
|
||||
"SELECT pg_catalog.lock_relation_if_exists(%s, quote_literal_cstr(%s), nowait => true);"
|
||||
"SELECT pg_catalog.lock_relation_if_exists(%s, %s, nowait => true);"
|
||||
|
||||
/* Lock shard/relation metadata for safe modifications */
|
||||
extern void LockShardDistributionMetadata(int64 shardId, LOCKMODE lockMode);
|
||||
|
|
Loading…
Reference in New Issue