]> granicus.if.org Git - pgbouncer/commitdiff
Fix a bunch of typos.
authorEuler Taveira de Oliveira <euler@timbira.com>
Wed, 18 Dec 2013 23:38:33 +0000 (20:38 -0300)
committerEuler Taveira de Oliveira <euler@timbira.com>
Wed, 18 Dec 2013 23:38:33 +0000 (20:38 -0300)
17 files changed:
doc/config.txt
doc/todo.txt
include/bouncer.h
src/admin.c
src/client.c
src/janitor.c
src/loader.c
src/main.c
src/objects.c
src/pooler.c
src/proto.c
src/sbuf.c
src/server.c
src/system.c
src/util.c
src/varcache.c
test/asynctest.c

index 9cd390797153f72fa882c0192b12acb3f7647e16..49e84807df5592a3177e68b80f38b9b6ceb12e6c 100644 (file)
@@ -309,7 +309,7 @@ for 8.3 and above its enough to do:
 
 When transaction pooling is used, the `server_reset_query` should be empty,
 as clients should not use any session features.  If client does use session
-features, then they will be broken as transaction pooling will not guaratee
+features, then they will be broken as transaction pooling will not guarantee
 that next query will be run on same connection.
 
 Default: DISCARD ALL
index a8f6d3618dd711eb353cfb4f99eaa4625539c59e..a0e804d43f5444e6e0aeac632257ab525d67699b 100644 (file)
@@ -54,16 +54,16 @@ Waiting for contributors...
  * units for config parameters.
  * some preliminary notification that fd limit is full
 
- * Move all "look-at-full-packet" situtations to SBUF_EV_PKT_CALLBACK
+ * Move all "look-at-full-packet" situations to SBUF_EV_PKT_CALLBACK
 
  * `pool_mode = plproxy` - use postgres in full-duplex mode for autocommit
    queries, multiplexing several queries into one connection.  Should result
-   in more effiicent CPU usage of server.
+   in more efficient CPU usage of server.
 
- * SMP: spread sockets over per-cpu threads.  needs confirmation that
-   single-threadedness can be problem.  it can also be that only
-   accept() + login handling of short connection is problem.
+ * SMP: spread sockets over per-cpu threads.  Needs confirmation that
+   single-threadedness can be problem.  It can also be that only
+   accept() + login handling of short connection is problem
    that could be solved by just having threads for login handling,
-   which would be lot simpler.  or just deciding that its not
+   which would be lot simpler or just deciding that it is not
    worth fixing.
 
index 60d33d5439215b9c78df5e4fe5b8d56696fff60c..efc608a27a308acb60d8dfe789a103195c906cd1 100644 (file)
@@ -43,7 +43,7 @@
 #define FULLVER   PACKAGE_NAME " version " PACKAGE_VERSION
 #endif
 
-/* each state corresponts to a list */
+/* each state corresponds to a list */
 enum SocketState {
        CL_FREE,                /* free_client_list */
        CL_JUSTFREE,            /* justfree_client_list */
@@ -193,7 +193,7 @@ struct PgPool {
        struct List head;                       /* entry in global pool_list */
        struct List map_head;                   /* entry in user->pool_list */
 
-       PgDatabase *db;                 /* corresponging database */
+       PgDatabase *db;                 /* corresponding database */
        PgUser *user;                   /* user logged in as */
 
        struct StatList active_client_list;     /* waiting events logged in clients */
@@ -244,7 +244,7 @@ struct PgPool {
  * first(db->forced_user->pool_list), where pool_list has only one entry.
  *
  * Otherwise, ->pool_list contains multiple pools, for all PgDatabases
- * whis user has logged in.
+ * which user has logged in.
  */
 struct PgUser {
        struct List head;               /* used to attach user to list */
@@ -352,7 +352,7 @@ struct PgSocket {
 #define tmp_sk_linkfd  query_start
 /* takeover_clean_socket() needs to clean those up */
 
-/* where the salt is temporarly stored */
+/* where the salt is temporarily stored */
 #define tmp_login_salt  cancel_key
 
 /* main.c */
index 4473b81aefb832d72466a2ce9078ef0b91c04a50..5af9ec37b6e2bf0f114449bf4f68242ae79cebe6 100644 (file)
@@ -928,7 +928,7 @@ static bool admin_cmd_shutdown(PgSocket *admin, const char *arg)
 
        /*
         * note: new pooler expects unix socket file gone when it gets
-        * event from fd.  currently atexit() cleanup should be called
+        * event from fd.  Currently atexit() cleanup should be called
         * before closing open sockets.
         */
        log_info("SHUTDOWN command issued");
@@ -1293,7 +1293,7 @@ bool admin_handle_client(PgSocket *admin, PktHdr *pkt)
        const char *q;
        bool res;
 
-       /* dont tolerate partial packets */
+       /* don't tolerate partial packets */
        if (incomplete_pkt(pkt)) {
                disconnect_client(admin, true, "incomplete pkt");
                return false;
index 8eff818ad82b8595b60f23cda6f42b34906143bf..c8a2574d594260aae9ad12d0c4ffc579af3ba465 100644 (file)
@@ -362,7 +362,7 @@ static bool decide_startup_pool(PgSocket *client, PktHdr *pkt)
        if (!dbname || !dbname[0])
                dbname = username;
 
-       /* check if limit allows, dont limit admin db
+       /* check if limit allows, don't limit admin db
           nb: new incoming conn will be attached to PgSocket, thus
           get_active_client_count() counts it */
        if (get_active_client_count() > cf_max_client_conn) {
@@ -507,7 +507,7 @@ static bool handle_client_work(PgSocket *client, PktHdr *pkt)
                if (client->pool->db->admin)
                        return admin_handle_client(client, pkt);
 
-               /* aquire server */
+               /* acquire server */
                if (!find_server(client))
                        return false;
 
index 167a62ea08d4e24bc3f36bcc92487f618e13ab12..c6c47fd42e8037bd9beb7bcf433a3d6f12795ba5 100644 (file)
@@ -235,7 +235,7 @@ static int per_loop_suspend(PgPool *pool, bool force_suspend)
 
        active += suspend_socket_list(&pool->active_client_list, force_suspend);
 
-       /* this list is unsuspendable, but still need force_suspend and counting */
+       /* this list is not suspendable, but still need force_suspend and counting */
        active += suspend_socket_list(&pool->waiting_client_list, force_suspend);
        if (active)
                per_loop_activate(pool);
@@ -598,7 +598,7 @@ skip_maint:
        safe_evtimer_add(&full_maint_ev, &full_maint_period);
 }
 
-/* first-time initializtion */
+/* first-time initialization */
 void janitor_setup(void)
 {
        /* launch maintenance */
index 5a4ad676f2b6e8976a03d8c8b7be2659ebd6ad80..94960845618224398c883c845a76ace1ec17cd19 100644 (file)
@@ -40,7 +40,7 @@ static char *cstr_skip_ws(char *p)
        return p;
 }
 
-/* parse paramenter name before '=' */
+/* parse parameter name before '=' */
 static char *cstr_get_key(char *p, char **dst_p)
 {
        char *end;
@@ -104,7 +104,7 @@ static char *cstr_get_value(char *p, char **dst_p)
 }
 
 /*
- * Get key=val pair from connstring.  returns position it stopped
+ * Get key=val pair from connstring.  Returns position it stopped
  * or NULL on error.  EOF is signaled by *key = 0.
  */
 static char * cstr_get_pair(char *p,
index d978bf1d35e6faf64ca05cd5feeae483ad898614..1cd5f3e6643f8fb3d8550fd39a950b8d971ce96c 100644 (file)
@@ -17,7 +17,7 @@
  */
 
 /*
- * Launcer for all the rest.
+ * Launcher for all the rest.
  */
 
 #include "bouncer.h"
@@ -317,7 +317,7 @@ void load_config(void)
                die("Cannot load config file");
        } else {
                log_warning("Config file loading failed");
-               /* if ini file missing, dont kill anybody */
+               /* if ini file missing, don't kill anybody */
                set_dbs_dead(false);
        }
 
@@ -454,7 +454,7 @@ static void go_daemon(void)
        if (!cf_pidfile[0])
                fatal("daemon needs pidfile configured");
 
-       /* dont log to stdout anymore */
+       /* don't log to stdout anymore */
        cf_quiet = 1;
 
        /* send stdin, stdout, stderr to /dev/null */
index 7ce15662bf240b05980078f2fa04c9949c42fcc7..ec80d109dc10da78f0d72b7adab4f28cf56e9f08 100644 (file)
@@ -637,8 +637,8 @@ static bool reuse_on_release(PgSocket *server)
 
                /*
                 * As the activate_client() does full read loop,
-                * then it may happen that linked client close
-                * couses server close.  Report it.
+                * then it may happen that linked client closing
+                * causes server closing.  Report it.
                 */
                if (server->state == SV_FREE || server->state == SV_JUSTFREE)
                        res = false;
index 906b7e42f24ec9f99c5ab9314a2d9dab816e9074..42902dfec7910a7ed3eb4d28588477c0529ec7a2 100644 (file)
@@ -202,7 +202,7 @@ static void create_unix_socket(const char *socket_dir, int listen_port)
  *
  * Related to tcp_synack_retries sysctl, default 5 (corresponds 180 secs).
  *
- * SO_ACCEPTFILTER needs to be set after listern(), maybe TCP_DEFER_ACCEPT too.
+ * SO_ACCEPTFILTER needs to be set after listen(), maybe TCP_DEFER_ACCEPT too.
  */
 static void tune_accept(int sock, bool on)
 {
index f7939982da92788ea4945df5becb85c5119620c5..ad1e0395946ac779e4110392593352e3d536ff9c 100644 (file)
@@ -61,7 +61,7 @@ bool get_header(struct MBuf *data, PktHdr *pkt)
                        log_noise("get_header: unknown special pkt");
                        return false;
                }
-               /* dont tolerate partial pkt */
+               /* don't tolerate partial pkt */
                if (mbuf_avail_for_read(&hdr) < OLD_HEADER_LEN - 2) {
                        log_noise("get_header: less than 8 bytes for special pkt");
                        return false;
index f481a47d511c37837434a96762d6de2792d3eaad..b9559d53626461eebaf2a15d5128b4cfe88cfcc6 100644 (file)
@@ -547,7 +547,7 @@ static bool sbuf_actual_recv(SBuf *sbuf, unsigned len)
                sbuf_call_proto(sbuf, SBUF_EV_RECV_FAILED);
                return false;
        } else if (got < 0 && errno != EAGAIN) {
-               /* some error occured */
+               /* some error occurred */
                sbuf_call_proto(sbuf, SBUF_EV_RECV_FAILED);
                return false;
        }
index dac4867932712a3502fa540a72d358e5baa7f560..b8f63e467bb4f883692abfed1d2d01c3024e2a5d 100644 (file)
@@ -246,7 +246,7 @@ static bool handle_server_work(PgSocket *server, PktHdr *pkt)
 
        /*
         * 'E' and 'N' packets currently set ->ready to 0.  Correct would
-        * be to leave ->ready as-is, because overal TX state stays same.
+        * be to leave ->ready as-is, because overall TX state stays same.
         * It matters for connections in IDLE or USED state which get dirty
         * suddenly but should not as they are still usable.
         *
index 5425f21f54229ff70452d563ed3c6a55d22c9bfd..20ac5566d7ac88c667298f75b80a281da253d0a3 100644 (file)
@@ -99,7 +99,7 @@ void change_file_mode(const char *fn, mode_t mode,
                } else {
                        gr = getgrnam(group_name);
                        if (!gr)
-                               fatal("cound not find group '%s': %s",
+                               fatal("could not find group '%s': %s",
                                      group_name, strerror(errno));
                        gid = gr->gr_gid;
                }
index 79856f22a813f4d96736f0a2a2e3de1c182180ad..1c761c31493973cf694681f825b826dc5ca6eee6 100644 (file)
@@ -183,7 +183,7 @@ loop:
 
        /* move listpos further */
        listpos = p + len;
-       /* survive len=0 and avoid unneccesary compare */
+       /* survive len=0 and avoid unnecessary compare */
        if (*listpos)
                listpos++;
 
index 7a795cd42fd45a8067a1c17d0e221cb81cf8c881..6321dc537c3dc42a2874b9b422458e8a52f6ca2c 100644 (file)
@@ -124,7 +124,7 @@ bool varcache_apply(PgSocket *server, PgSocket *client, bool *changes_p)
 
        pktbuf_start_packet(pkt, 'Q');
 
-       /* grab quory position inside pkt */
+       /* grab query position inside pkt */
        sql_ofs = pktbuf_written(pkt);
 
        for (lk = lookup; lk->name; lk++) {
index 00f5e6ec9a61f900a7cf155c2cb20898aba57b71..74b2204a4d756218cbdfdfe8280d4c7a54d91f18 100644 (file)
@@ -213,7 +213,7 @@ static void conn_error(DbConn *db, const char *desc)
 }
 
 /*
- * Connection has a resultset avalable, fetch it.
+ * Connection has a resultset available, fetch it.
  *
  * Returns true if there may be more results coming,
  * false if all done.