Declare two variables in snapbuild.c as static.
authorAndres Freund <andres@anarazel.de>
Sun, 31 Aug 2014 21:53:12 +0000 (23:53 +0200)
committerAndres Freund <andres@anarazel.de>
Sun, 31 Aug 2014 21:53:12 +0000 (23:53 +0200)
Neither is accessed externally, I just seem to have missed the static
when writing the code.

src/backend/replication/logical/snapbuild.c

index 3319497603f00eaced657a99b3ae7cc191e8c5ac..f51d52d94efdaecee6ffe8837b1649978aa20e9c 100644 (file)
@@ -243,8 +243,8 @@ struct SnapBuild
  * Starting a transaction -- which we need to do while exporting a snapshot --
  * removes knowledge about the previously used resowner, so we save it here.
  */
-ResourceOwner SavedResourceOwnerDuringExport = NULL;
-bool       ExportInProgress = false;
+static ResourceOwner SavedResourceOwnerDuringExport = NULL;
+static bool    ExportInProgress = false;
 
 /* transaction state manipulation functions */
 static void SnapBuildEndTxn(SnapBuild *builder, XLogRecPtr lsn, TransactionId xid);