]> granicus.if.org Git - pgbouncer/commitdiff
fix check for authfile changes
authorMarko Kreen <markokr@gmail.com>
Wed, 12 Sep 2007 07:59:53 +0000 (07:59 +0000)
committerMarko Kreen <markokr@gmail.com>
Wed, 12 Sep 2007 07:59:53 +0000 (07:59 +0000)
silly typo made pgbouncer reload users list on each full_maint (3x per sec)

catched by hubert depesz lubaczewski.

src/loader.c

index de4a6694a33b16ae459cb1c9bb4de62ddc5b83e0..34eb6907ac1b03fa8a670b7cfbbe5d9193e4828d 100644 (file)
@@ -363,7 +363,8 @@ static bool auth_loaded(const char *fn)
        if (cache.st_dev == cur.st_dev
        && cache.st_ino == cur.st_ino
        && cache.st_mode == cur.st_mode
-       && cache.st_uid == cur.st_gid
+       && cache.st_uid == cur.st_uid
+       && cache.st_gid == cur.st_gid
        && cache.st_mtime == cur.st_mtime
        && cache.st_size == cur.st_size)
                return true;