mirror of
https://github.com/postgres/postgres.git
synced 2025-12-01 12:18:01 +03:00
Add some const decorations to prototypes
Reviewed-by: Fabien COELHO <coelho@cri.ensmp.fr>
This commit is contained in:
@@ -3478,7 +3478,7 @@ BeginTransactionBlock(void)
|
||||
* resource owner, etc while executing inside a Portal.
|
||||
*/
|
||||
bool
|
||||
PrepareTransactionBlock(char *gid)
|
||||
PrepareTransactionBlock(const char *gid)
|
||||
{
|
||||
TransactionState s;
|
||||
bool result;
|
||||
@@ -3823,7 +3823,7 @@ EndImplicitTransactionBlock(void)
|
||||
* This executes a SAVEPOINT command.
|
||||
*/
|
||||
void
|
||||
DefineSavepoint(char *name)
|
||||
DefineSavepoint(const char *name)
|
||||
{
|
||||
TransactionState s = CurrentTransactionState;
|
||||
|
||||
@@ -4168,7 +4168,7 @@ RollbackToSavepoint(List *options)
|
||||
* the caller to do it.
|
||||
*/
|
||||
void
|
||||
BeginInternalSubTransaction(char *name)
|
||||
BeginInternalSubTransaction(const char *name)
|
||||
{
|
||||
TransactionState s = CurrentTransactionState;
|
||||
|
||||
|
||||
@@ -327,7 +327,7 @@ not_available:
|
||||
* This is currently used for recovery_end_command and archive_cleanup_command.
|
||||
*/
|
||||
void
|
||||
ExecuteRecoveryCommand(char *command, char *commandName, bool failOnSignal)
|
||||
ExecuteRecoveryCommand(const char *command, const char *commandName, bool failOnSignal)
|
||||
{
|
||||
char xlogRecoveryCmd[MAXPGPATH];
|
||||
char lastRestartPointFname[MAXPGPATH];
|
||||
@@ -425,7 +425,7 @@ ExecuteRecoveryCommand(char *command, char *commandName, bool failOnSignal)
|
||||
* in pg_wal (xlogfname), replacing any existing file with the same name.
|
||||
*/
|
||||
void
|
||||
KeepFileRestoredFromArchive(char *path, char *xlogfname)
|
||||
KeepFileRestoredFromArchive(const char *path, const char *xlogfname)
|
||||
{
|
||||
char xlogfpath[MAXPGPATH];
|
||||
bool reload = false;
|
||||
|
||||
Reference in New Issue
Block a user