Update regression tests

This commit is contained in:
Ian Barwick
2017-09-21 17:19:01 +09:00
parent 3257e0f7c3
commit 23c011fe5e
3 changed files with 45 additions and 0 deletions

View File

@@ -419,6 +419,9 @@ set_voting_status_initiated(PG_FUNCTION_ARGS)
#ifndef BDR_ONLY
int electoral_term = -1;
if (!shared_state)
PG_RETURN_NULL();
LWLockAcquire(shared_state->lock, LW_SHARED);
/* only do something if local_node_id is initialised */