projects
/
users
/
heikki
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f95976
)
Move dstfd/dstpath to beginning of file, for clarity
author
Heikki Linnakangas
<
[email protected]
>
Fri, 9 Jan 2015 09:24:51 +0000
(11:24 +0200)
committer
Heikki Linnakangas
<
[email protected]
>
Fri, 16 Jan 2015 11:37:07 +0000
(13:37 +0200)
contrib/pg_rewind/copy_fetch.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pg_rewind/copy_fetch.c
b/contrib/pg_rewind/copy_fetch.c
index 90f694a3563ca3ff3d4d6a38948a3ebe2a38384b..5de6416284fe7e0a7b77c009a32756532efcc7e7 100644
(file)
--- a/
contrib/pg_rewind/copy_fetch.c
+++ b/
contrib/pg_rewind/copy_fetch.c
@@
-23,6
+23,12
@@
#include "catalog/catalog.h"
+/*
+ * Currently open destination file.
+ */
+static int dstfd = -1;
+static char dstpath[MAXPGPATH] = "";
+
static void recurse_dir(const char *datadir, const char *path,
process_file_callback_t callback);
@@
-162,9
+168,6
@@
recurse_dir(const char *datadir, const char *parentpath,
}
}
-static int dstfd = -1;
-static char dstpath[MAXPGPATH] = "";
-
void
open_target_file(const char *path, bool trunc)
{