mirror of
https://github.com/EnterpriseDB/repmgr.git
synced 2026-03-26 08:36:30 +00:00
Remove unused variable
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user