From fbb534e3948707bc1e9a56560a278fcf2332ae1a Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Sat, 10 Jun 2017 21:16:59 +0900 Subject: [PATCH] Add todo note --- dirutil.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dirutil.c b/dirutil.c index 04b24364..b548e41b 100644 --- a/dirutil.c +++ b/dirutil.c @@ -298,9 +298,10 @@ _create_pg_dir(char *path, bool force, bool for_witness) * repmgr metadata, so in --force mode we can simply overwrite the * directory. * - * For non-witness servers, we'll leave the data in place, both to reduce - * the risk of unintentional data loss and to make it possible for the - * data directory to be brought up-to-date with rsync. + * For non-witness servers, we'll leave the data in place, to reduce + * the risk of unintentional data loss + * + * TODO: check DB state, if not running overwrite */ if (for_witness) {