Skip to content

Commit

Permalink
Fix various spelling errors
Browse files Browse the repository at this point in the history
Reviewed-by: Andrew Bartlett <[email protected]>
Reviewed-by: Michael Adam <[email protected]>

Autobuild-User(master): Andrew Bartlett <[email protected]>
Autobuild-Date(master): Fri Nov  6 13:43:45 CET 2015 on sn-devel-104
  • Loading branch information
sathieu authored and abartlet committed Nov 6, 2015
1 parent f3033a1 commit c315fce
Show file tree
Hide file tree
Showing 82 changed files with 152 additions and 152 deletions.
2 changes: 1 addition & 1 deletion ctdb/client/ctdb_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,7 +1014,7 @@ static void ctdb_client_reply_control(struct ctdb_context *ctdb,
c->errorlen);
}

/* state->outdata now uses resources from c so we dont want c
/* state->outdata now uses resources from c so we don't want c
to just dissappear from under us while state is still alive
*/
talloc_steal(state, c);
Expand Down
6 changes: 3 additions & 3 deletions ctdb/common/rb_tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ static int tree_destructor(trbt_tree_t *tree)

/* traverse the tree and remove the node destructor and steal
the node to the temporary context.
we dont want to use the existing destructor for the node
we don't want to use the existing destructor for the node
since that will remove the nodes one by one from the tree.
since the entire tree will be completely destroyed we dont care
since the entire tree will be completely destroyed we don't care
if it is inconsistent or unbalanced while freeing the
individual nodes
*/
Expand Down Expand Up @@ -504,7 +504,7 @@ delete_node(trbt_node_t *node, bool from_destructor)
Once the delete of the node is finished, we remove this dummy
node, which is simple to do since it is guaranteed that it will
still not have any children after the delete operation.
This is because we dont represent the leaf-nodes as actual nodes
This is because we don't represent the leaf-nodes as actual nodes
in this implementation.
*/
if (!child) {
Expand Down
2 changes: 1 addition & 1 deletion ctdb/common/system_aix.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ int ctdb_sys_close_capture_socket(void *private_data)
*/
int ctdb_sys_send_arp(const ctdb_sock_addr *addr, const char *iface)
{
/* FIXME AIX: We dont do gratuitous arp yet */
/* FIXME AIX: We don't do gratuitous arp yet */
return -1;
}

Expand Down
4 changes: 2 additions & 2 deletions ctdb/common/system_freebsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static uint16_t tcp_checksum6(uint16_t *data, size_t n, struct ip6_hdr *ip6)
*/
int ctdb_sys_send_arp(const ctdb_sock_addr *addr, const char *iface)
{
/* FIXME FreeBSD: We dont do gratuitous arp yet */
/* FIXME FreeBSD: We don't do gratuitous arp yet */
return -1;
}

Expand Down Expand Up @@ -220,7 +220,7 @@ int ctdb_sys_send_tcp(const ctdb_sock_addr *dest,
return -1;

}
/* sendto() dont like if the port is set and the socket is
/* sendto() don't like if the port is set and the socket is
in raw mode.
*/
tmpdest = discard_const(dest);
Expand Down
4 changes: 2 additions & 2 deletions ctdb/common/system_gnu.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static uint16_t tcp_checksum6(uint16_t *data, size_t n, struct ip6_hdr *ip6)
*/
int ctdb_sys_send_arp(const ctdb_sock_addr *addr, const char *iface)
{
/* FIXME GNU/Hurd: We dont do gratuitous arp yet */
/* FIXME GNU/Hurd: We don't do gratuitous arp yet */
return -1;
}

Expand Down Expand Up @@ -215,7 +215,7 @@ int ctdb_sys_send_tcp(const ctdb_sock_addr *dest,
return -1;

}
/* sendto() dont like if the port is set and the socket is
/* sendto() don't like if the port is set and the socket is
in raw mode.
*/
tmpdest = discard_const(dest);
Expand Down
4 changes: 2 additions & 2 deletions ctdb/common/system_kfreebsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static uint16_t tcp_checksum6(uint16_t *data, size_t n, struct ip6_hdr *ip6)
*/
int ctdb_sys_send_arp(const ctdb_sock_addr *addr, const char *iface)
{
/* FIXME kFreeBSD: We dont do gratuitous arp yet */
/* FIXME kFreeBSD: We don't do gratuitous arp yet */
return -1;
}

Expand Down Expand Up @@ -215,7 +215,7 @@ int ctdb_sys_send_tcp(const ctdb_sock_addr *dest,
return -1;

}
/* sendto() dont like if the port is set and the socket is
/* sendto() don't like if the port is set and the socket is
in raw mode.
*/
tmpdest = discard_const(dest);
Expand Down
4 changes: 2 additions & 2 deletions ctdb/common/system_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ int ctdb_sys_send_tcp(const ctdb_sock_addr *dest,
return -1;

}
/* sendto() dont like if the port is set and the socket is
/* sendto() don't like if the port is set and the socket is
in raw mode.
*/
tmpdest = discard_const(dest);
Expand Down Expand Up @@ -577,7 +577,7 @@ bool ctdb_sys_check_iface_exists(const char *iface)

s = socket(PF_PACKET, SOCK_RAW, 0);
if (s == -1){
/* We dont know if the interface exists, so assume yes */
/* We don't know if the interface exists, so assume yes */
DEBUG(DEBUG_CRIT,(__location__ " failed to open raw socket\n"));
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion ctdb/config/events.d/10.interface
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ monitor_interfaces()
mark_up $iface
;;
ib*)
# we dont know how to test ib links
# we don't know how to test ib links
mark_up $iface
;;
*)
Expand Down
4 changes: 2 additions & 2 deletions ctdb/config/statd-callout
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ case "$1" in

notify)
# we must restart the lockmanager (on all nodes) so that we get
# a clusterwide grace period (so other clients dont take out
# a clusterwide grace period (so other clients don't take out
# conflicting locks through other nodes before all locks have been
# reclaimed)

Expand All @@ -103,7 +103,7 @@ case "$1" in
#echo 0 > /proc/sys/net/ipv4/tcp_max_tw_buckets
#echo 0 > /proc/sys/net/ipv4/tcp_max_orphans

# Delete the notification list for statd, we dont want it to
# Delete the notification list for statd, we don't want it to
# ping any clients
rm -f /var/lib/nfs/statd/sm/*
rm -f /var/lib/nfs/statd/sm.bak/*
Expand Down
2 changes: 1 addition & 1 deletion ctdb/doc/ctdbd.1.xml
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@
<listitem>
<para>
IPADDR specifies the single IP that CTDB will use in
conjuction with LVS.
conjunction with LVS.
</para>
<para>
Please see the <citetitle>LVS</citetitle> section in
Expand Down
2 changes: 1 addition & 1 deletion ctdb/doc/ctdbd.conf.5.xml
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@
</para>
<para>
If you change this then you probably want to set this in
root's enviroment (perhaps in a file in
root's environment (perhaps in a file in
<filename>/etc/profile.d</filename>) so that you can use
the <citerefentry><refentrytitle>ctdb</refentrytitle>
<manvolnum>1</manvolnum></citerefentry> command in a
Expand Down
24 changes: 12 additions & 12 deletions ctdb/packaging/RPM/ctdb.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ Performance Co-Pilot (PCP) support for CTDB
* Tue Nov 8 2011 : Version 1.12
- Add new tunable : AllowClientDBAttach that can be used to stop
client db access during maintenance operations
- Updated logging for interfaces that are missing or dont exist but are
- Updated logging for interfaces that are missing or don't exist but are
configured to be used.
- Add timeout argument to ctdb_cmdline_client
- PDMA support
Expand Down Expand Up @@ -343,7 +343,7 @@ Performance Co-Pilot (PCP) support for CTDB
just do a less disruptive ip-reallocation
- When starting ctdbd, wait until all initial recoveries have finished
before we issue the "startup" event.
So dont start services or monitoring until the cluster has
So don't start services or monitoring until the cluster has
stabilized.
- Major eventscript overhaul by Ronnie, Rusty and Martins and fixes of a few
bugs found.
Expand Down Expand Up @@ -392,14 +392,14 @@ Performance Co-Pilot (PCP) support for CTDB
"time since last ..." if from either the last recovery OR the last failover
- Michael A: transaction updates
* Wed Oct 28 2009 : Version 1.0.101
- create a separate context for non-monitoring events so they dont interfere with the monitor event
- create a separate context for non-monitoring events so they don't interfere with the monitor event
- make sure to return status 0 in teh callback when we abort an event
* Wed Oct 28 2009 : Version 1.0.100
- Change eventscript handling to allow EventScriptTimeout for each individual script instead of for all scripts as a whole.
- Enhanced logging from the eventscripts, log the name and the duration for each script as it finishes.
- Add a check to use wbinfo -t for the startup event of samba
- TEMP: allow clients to attach to databases even when teh node is in recovery mode
- dont run the monitor event as frequently after an event has failed
- don't run the monitor event as frequently after an event has failed
- DEBUG: in the eventloops, check the local time and warn if the time changes backward or rapidly forward
- From Metze, fix a bug where recovery master becoming unhealthy did not trigger an ip failover.
- Disable the multipath script by default
Expand All @@ -411,7 +411,7 @@ Performance Co-Pilot (PCP) support for CTDB
- Fix a SEGV in the new db priority code.
- From Wolfgang : eliminate a ctdb_fatal() if there is a dmaster violation detected.
- During testing we often add/delete eventscripts at runtime. This could cause an eventscript to fail and mark the node unhealthy if an eventscript was deleted while we were listing the names. Handle the errorcode and make sure the node does not becomne unhealthy in this case.
- Lower the debuglevel for the messages when ctdb creates a filedescruiptor so we dont spam the logs with these messages.
- Lower the debuglevel for the messages when ctdb creates a filedescruiptor so we don't spam the logs with these messages.
- Dont have the RPM automatically restart ctdb
- Volker : add a missing transaction_cancel() in the handling of persistent databases
- Treat interfaces with the anme ethX* as bond devices in 10.interfaces so we do the correct test for if they are up or not.
Expand All @@ -434,7 +434,7 @@ Performance Co-Pilot (PCP) support for CTDB
- Add more debugging output when eventscripts have trouble. Print a
"pstree -p" to the log when scripts have hung.
- Update the initscript, only print the "No reclock file used" warning
when we do "service ctdb start", dont also print them for all other
when we do "service ctdb start", don't also print them for all other
actions.
- When changing between unhealthy/healthy state, push a request to the
recovery master to perform an ip reallocation instead of waiting for the
Expand Down Expand Up @@ -477,7 +477,7 @@ Performance Co-Pilot (PCP) support for CTDB
- Add machinereadable output to the ctdb getreclock command
- merge transaction updates from Michael Adam
- In the new banning code, reset the culprit count to 0 for all nodes that could successfully compelte a full recovery.
- dont mark the recovery master as a ban culprit because a node in the cluster needs a recovery. this happens naturally when using ctdb recover command so dont make this cause a node to be banned.
- don't mark the recovery master as a ban culprit because a node in the cluster needs a recovery. this happens naturally when using ctdb recover command so dont make this cause a node to be banned.
* Sat Sep 12 2009 : Version 1.0.90
- Be more forgiving for eventscripts that hang during startup
- Fix for a banning bug in the new banning logic
Expand Down Expand Up @@ -565,7 +565,7 @@ Performance Co-Pilot (PCP) support for CTDB
- When building initial vnnmap, ignode any nonexisting nodes
- Add a new nodestate : DELETED that is used when deleting a node from an
existing cluster.
- dont remove the ctdb socket when shutting down. This prevents a race in the
- don't remove the ctdb socket when shutting down. This prevents a race in the
initscripts when restarting ctdb quickly after stopping it.
- TDB nesting reworked.
- Remove obsolete ipmux
Expand Down Expand Up @@ -612,7 +612,7 @@ Performance Co-Pilot (PCP) support for CTDB
- if we can not pull a database from a remote node during recovery, mark that node as a culprit so it becomes banned
- increase the loglevel when we volunteer to drop all ip addresses after beeing in recovery mode for too long. Make this timeout tuneable with "RecoveryDropAllIPs" and have it default to 60 seconds
- Add a new flag TDB_NO_NESTING to the tdb layer to prevent nested transactions which ctdb does not use and does not expect. Have ctdb set this flag to prevent nested transactions from occuring.
- dont unconditionally kill off ctdb and restrat it on "service ctdb start". Fail "service ctdb start" with an error if ctdb is already running.
- don't unconditionally kill off ctdb and restrat it on "service ctdb start". Fail "service ctdb start" with an error if ctdb is already running.
- Add a new tunable "VerifyRecoveryLock" that can be set to 0 to prevent the main ctdb daemon to verify that the recovery master has locked the reclock file correctly before allowing it to set the recovery mode to active.
- fix a cosmetic bug with ctdb statistics where certain counters could become negative.
* Wed Apr 8 2009 : Version 1.0.79
Expand All @@ -621,7 +621,7 @@ Performance Co-Pilot (PCP) support for CTDB
- add a funciton remove_ip to safely remove an ip from an interface, taking care to workaround an issue with linux alias interfaces.
- Update the natgw eventscript to use the safe remove_ip() function
- fix a bug in the eventscript child process that would cause the socket to be removed.
- dont verify nodemap on banned nodes during cluster monitoring
- don't verify nodemap on banned nodes during cluster monitoring
- Update the dodgy SeqnumInterval to have ms resolution
* Tue Mar 31 2009 : Version 1.0.78
- Add a notify mechanism so we can send snmptraps/email to external management systems when the node becomes unhealthy
Expand Down Expand Up @@ -799,7 +799,7 @@ Performance Co-Pilot (PCP) support for CTDB
* Fri Jul 18 2008 : Version 1.0.50
- Dont assume that just because we can establish a TCP connection
that we are actually talking to a functioning ctdb daemon.
So dont mark the node as CONNECTED just because the tcp handshake
So don't mark the node as CONNECTED just because the tcp handshake
was successful.
- Dont try to set the recmaster to ourself during elections for those
cases we know this will fail. To remove some annoying benign but scary
Expand Down Expand Up @@ -867,7 +867,7 @@ Performance Co-Pilot (PCP) support for CTDB
- zero out ctdb->freeze_handle when we free/destroy a freeze-child.
This prevent a heap corruption/ctdb crash bug that could trigger
if the freeze child times out.
- we dont need to explicitely thaw the databases from the recovery daemon
- we don't need to explicitely thaw the databases from the recovery daemon
since this is done implicitely when we restore the recovery mode back to normal.
- track when we start and stop a recovery. Add the 'time it took to complete the
recovery' to the 'ctdb uptime' output.
Expand Down
2 changes: 1 addition & 1 deletion ctdb/server/ctdb_call.c
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ void ctdb_request_call(struct ctdb_context *ctdb, struct ctdb_req_header *hdr)
return;
}

/* Dont do READONLY if we dont have a tracking database */
/* Dont do READONLY if we don't have a tracking database */
if ((c->flags & CTDB_WANT_READONLY) && !ctdb_db->readonly) {
c->flags &= ~CTDB_WANT_READONLY;
}
Expand Down
2 changes: 1 addition & 1 deletion ctdb/server/ctdb_daemon.c
Original file line number Diff line number Diff line change
Expand Up @@ -676,7 +676,7 @@ static void daemon_request_call_from_client(struct ctdb_client *client,
}
}

/* Dont do READONLY if we dont have a tracking database */
/* Dont do READONLY if we don't have a tracking database */
if ((c->flags & CTDB_WANT_READONLY) && !ctdb_db->readonly) {
c->flags &= ~CTDB_WANT_READONLY;
}
Expand Down
2 changes: 1 addition & 1 deletion ctdb/server/ctdb_ltdb_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ int32_t ctdb_control_db_attach(struct ctdb_context *ctdb, TDB_DATA indata,
return -1;
}

/* dont allow any local clients to attach while we are in recovery mode
/* don't allow any local clients to attach while we are in recovery mode
* except for the recovery daemon.
* allow all attach from the network since these are always from remote
* recovery daemons.
Expand Down
4 changes: 2 additions & 2 deletions ctdb/server/ctdb_monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -486,15 +486,15 @@ int32_t ctdb_control_modflags(struct ctdb_context *ctdb, TDB_DATA indata)
node->flags = c->new_flags & ~NODE_FLAGS_DISCONNECTED;
node->flags |= (c->old_flags & NODE_FLAGS_DISCONNECTED);

/* we dont let other nodes modify our STOPPED status */
/* we don't let other nodes modify our STOPPED status */
if (c->pnn == ctdb->pnn) {
node->flags &= ~NODE_FLAGS_STOPPED;
if (old_flags & NODE_FLAGS_STOPPED) {
node->flags |= NODE_FLAGS_STOPPED;
}
}

/* we dont let other nodes modify our BANNED status */
/* we don't let other nodes modify our BANNED status */
if (c->pnn == ctdb->pnn) {
node->flags &= ~NODE_FLAGS_BANNED;
if (old_flags & NODE_FLAGS_BANNED) {
Expand Down
18 changes: 9 additions & 9 deletions ctdb/server/ctdb_recoverd.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,11 +605,11 @@ static int create_missing_remote_databases(struct ctdb_context *ctdb, struct ctd

/* verify that all other nodes have all our databases */
for (j=0; j<nodemap->num; j++) {
/* we dont need to ourself ourselves */
/* we don't need to ourself ourselves */
if (nodemap->nodes[j].pnn == pnn) {
continue;
}
/* dont check nodes that are unavailable */
/* don't check nodes that are unavailable */
if (nodemap->nodes[j].flags & NODE_FLAGS_INACTIVE) {
continue;
}
Expand Down Expand Up @@ -669,11 +669,11 @@ static int create_missing_local_databases(struct ctdb_context *ctdb, struct ctdb

/* verify that we have all database any other node has */
for (j=0; j<nodemap->num; j++) {
/* we dont need to ourself ourselves */
/* we don't need to ourself ourselves */
if (nodemap->nodes[j].pnn == pnn) {
continue;
}
/* dont check nodes that are unavailable */
/* don't check nodes that are unavailable */
if (nodemap->nodes[j].flags & NODE_FLAGS_INACTIVE) {
continue;
}
Expand Down Expand Up @@ -947,7 +947,7 @@ static int pull_remote_database(struct ctdb_context *ctdb,
(this merges based on rsn)
*/
for (j=0; j<nodemap->num; j++) {
/* dont merge from nodes that are unavailable */
/* don't merge from nodes that are unavailable */
if (nodemap->nodes[j].flags & NODE_FLAGS_INACTIVE) {
continue;
}
Expand Down Expand Up @@ -989,7 +989,7 @@ static int update_vnnmap_on_all_nodes(struct ctdb_context *ctdb, struct ctdb_nod

/* push the new vnn map out to all the nodes */
for (j=0; j<nodemap->num; j++) {
/* dont push to nodes that are unavailable */
/* don't push to nodes that are unavailable */
if (nodemap->nodes[j].flags & NODE_FLAGS_INACTIVE) {
continue;
}
Expand Down Expand Up @@ -1792,7 +1792,7 @@ static bool do_takeover_run(struct ctdb_recoverd *rec,
if (ctdb_client_send_message(rec->ctdb, nodes[i],
CTDB_SRVID_DISABLE_TAKEOVER_RUNS,
data) != 0) {
DEBUG(DEBUG_INFO,("Failed to reenable takeover runs\n"));
DEBUG(DEBUG_INFO,("Failed to re-enable takeover runs\n"));
}
}

Expand Down Expand Up @@ -2410,7 +2410,7 @@ static bool ctdb_election_win(struct ctdb_recoverd *rec, struct election_message

ctdb_election_data(rec, &myem);

/* we cant win if we dont have the recmaster capability */
/* we cant win if we don't have the recmaster capability */
if ((rec->ctdb->capabilities & CTDB_CAP_RECMASTER) == 0) {
return false;
}
Expand Down Expand Up @@ -3371,7 +3371,7 @@ static int verify_local_ip_allocation(struct ctdb_context *ctdb, struct ctdb_rec
}

/* verify that we have the ip addresses we should have
and we dont have ones we shouldnt have.
and we don't have ones we shouldnt have.
if we find an inconsistency we set recmode to
active on the local node and wait for the recmaster
to do a full blown recovery.
Expand Down
2 changes: 1 addition & 1 deletion ctdb/server/ctdb_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ void ctdb_input_pkt(struct ctdb_context *ctdb, struct ctdb_req_header *hdr)
case CTDB_REPLY_CALL:
case CTDB_REQ_DMASTER:
case CTDB_REPLY_DMASTER:
/* we dont allow these calls when banned */
/* we don't allow these calls when banned */
if (ctdb->nodes[ctdb->pnn]->flags & NODE_FLAGS_BANNED) {
DEBUG(DEBUG_DEBUG,(__location__ " ctdb operation %u"
" request %u"
Expand Down
Loading

0 comments on commit c315fce

Please sign in to comment.