Remove unused variable

This commit is contained in:
Ian Barwick
2017-05-31 23:01:20 +09:00
parent 3a56bec4b5
commit 056ed0328a

View File

@@ -11,7 +11,6 @@
#include <fcntl.h> #include <fcntl.h>
#include "postgres_fe.h" #include "postgres_fe.h"
#include "port/pg_crc32c.h"
#include "repmgr.h" #include "repmgr.h"
#include "controldata.h" #include "controldata.h"
@@ -62,8 +61,8 @@ describe_db_state(DBState state)
/* /*
* we maintain our own version of get_controlfile() as we don't care if * we maintain our own version of get_controlfile() as we need cross-version
* the file isn't readable * compatibility, and also don't care if the file isn't readable.
*/ */
static ControlFileInfo * static ControlFileInfo *
get_controlfile(char *DataDir) get_controlfile(char *DataDir)
@@ -71,7 +70,6 @@ get_controlfile(char *DataDir)
ControlFileInfo *control_file_info; ControlFileInfo *control_file_info;
int fd; int fd;
char ControlFilePath[MAXPGPATH]; char ControlFilePath[MAXPGPATH];
pg_crc32c crc;
control_file_info = palloc0(sizeof(ControlFileInfo)); control_file_info = palloc0(sizeof(ControlFileInfo));
control_file_info->control_file_processed = false; control_file_info->control_file_processed = false;