Permalink
Browse files

TS-1615: Some spelling errors in source code

  • Loading branch information...
1 parent 0fcc63b commit 78b813416dc070e15d411839d108c262f4a194fb @happyaron happyaron committed with jpeach Dec 8, 2012
View
@@ -1,6 +1,9 @@
-*- coding: utf-8 -*-
Changes with Apache Traffic Server 3.3.1
+ *) [TS-1615] Some spelling errors in source code
+ Author: Aron Xu.
+
*) [TS-1608] IpAllow should use standard config update
*) [TS-1580] Mutex leak plugged.
View
@@ -742,7 +742,7 @@ spawn_manager()
snprintf(old_log_file, sizeof(old_log_file), "%s.old", log_file);
// coverity[toctou]
rename(log_file, old_log_file);
- cop_log(COP_WARNING, "rename %s to %s as it is not accessable.\n", log_file, old_log_file);
+ cop_log(COP_WARNING, "rename %s to %s as it is not accessible.\n", log_file, old_log_file);
}
// coverity[toctou]
if ((log_fd = open(log_file, O_WRONLY | O_APPEND | O_CREAT, 0640)) < 0) {
@@ -283,7 +283,7 @@ free_configuration(ClusterConfiguration * c, ClusterConfiguration * prev)
// are used in different threads, so reference counts are
// relatively difficult and expensive. The solution I have
// chosen is to simply delete the object after some (very long)
- // time after it has ceased to be accessable.
+ // time after it has ceased to be accessible.
//
eventProcessor.schedule_in(NEW(new ConfigurationContinuation(c, prev)), CLUSTER_CONFIGURATION_TIMEOUT, ET_CALL);
}
View
@@ -358,7 +358,7 @@ HttpProxyPort::processOptions(char const* opts) {
if (af_set_p) {
if (in_ip_set_p && m_family != m_inbound_ip.family()) {
- Warning("Invalid port descriptor '%s' - the inbound adddress family [%s] is not the same type as the explict family value [%s]",
+ Warning("Invalid port descriptor '%s' - the inbound adddress family [%s] is not the same type as the explicit family value [%s]",
opts, ats_ip_family_name(m_inbound_ip.family()), ats_ip_family_name(m_family));
zret = false;
}
View
@@ -889,7 +889,7 @@ SnapshotGetMlt(LLQ * snapshots)
* (type PROCESS, NODE, CLUSTER), sets them back to their default value
* If one stat fails to be set correctly, then continues onto next one,
* but will return TS_ERR_FAIL. Only returns TS_ERR_OKAY if all
- * stats are set back to defaults succesfully.
+ * stats are set back to defaults successfully.
*/
TSError
StatsReset(bool cluster)
@@ -285,7 +285,7 @@ reconnect()
* purpose: attempts to reconnect to TM (eg. when TM restarts) for the
* specified number of times
* input: num_attempts - number of reconnection attempts to try before quit
- * output: TS_ERR_OKAY - if succesfully reconnected within num_attempts
+ * output: TS_ERR_OKAY - if successfully reconnected within num_attempts
* TS_ERR_xx - the reason the reconnection failed
* notes:
***************************************************************************/
View
@@ -342,7 +342,7 @@ webIntr_main(void *x)
#endif
char pacFailMsg[] = "Auto-Configuration Service Failed to Initialize";
// char gphFailMsg[] = "Dynamic Graph Service Failed to Initialize";
- char mgmtapiFailMsg[] = "Traffic server managment API service Interface Failed to Initialize.";
+ char mgmtapiFailMsg[] = "Traffic server management API service Interface Failed to Initialize.";
RecInt tempInt;
bool found;
@@ -444,14 +444,14 @@ webIntr_main(void *x)
// INKqa12562: MgmtAPI sockets should be created with 775 permission
mode_t oldmask = umask(S_IWOTH);
if ((mgmtapiFD = newUNIXsocket(api_sock_path)) < 0) {
- mgmt_log(stderr, "[WebIntrMain] Unable to set up socket for handling managment API calls. API socket path = %s\n",
+ mgmt_log(stderr, "[WebIntrMain] Unable to set up socket for handling management API calls. API socket path = %s\n",
api_sock_path);
lmgmt->alarm_keeper->signalAlarm(MGMT_ALARM_WEB_ERROR, mgmtapiFailMsg);
}
if ((eventapiFD = newUNIXsocket(event_sock_path)) < 0) {
mgmt_log(stderr,
- "[WebIntrMain] Unable to set up so for handling managment API event calls. Event Socket path: %s\n",
+ "[WebIntrMain] Unable to set up so for handling management API event calls. Event Socket path: %s\n",
event_sock_path);
}
umask(oldmask);
@@ -191,7 +191,7 @@ TSRemapInit(TSRemapInterface* api_info, char *errbuf, int errbuf_size)
return TS_ERROR;
}
- TSDebug(PLUGIN_NAME, "remap plugin is succesfully initialized");
+ TSDebug(PLUGIN_NAME, "remap plugin is successfully initialized");
return TS_SUCCESS; /* success */
}
@@ -208,7 +208,7 @@ tsremap_init(TSREMAP_INTERFACE *api_info, char *errbuf, int errbuf_size)
return -3;
}
- TSDebug("balancer", "plugin is succesfully initialized");
+ TSDebug("balancer", "plugin is successfully initialized");
return 0;
}
@@ -587,7 +587,7 @@ json_out_stat(TSRecordType rec_type, void *edata, int registered,
case TS_RECORDDATATYPE_STRING:
APPEND_STAT(name, "%s", datum->rec_string); break;
default:
- debug_api("unkown type for %s: %d", name, data_type);
+ debug_api("unknown type for %s: %d", name, data_type);
break;
}
}
@@ -1609,7 +1609,7 @@ TSRemapInit(TSRemapInterface* api_info, char *errbuf, int errbuf_size)
return TS_ERROR;
}
- TSDebug(DEBUG_TAG, "esi remap plugin is succesfully initialized");
+ TSDebug(DEBUG_TAG, "esi remap plugin is successfully initialized");
return TS_SUCCESS;
}
@@ -52,7 +52,7 @@ TSRemapInit(TSRemapInterface* api_info, char *errbuf, int errbuf_size)
gGI = GeoIP_new(GEOIP_MMAP_CACHE);
#endif
- TSDebug(PLUGIN_NAME, "remap plugin is succesfully initialized");
+ TSDebug(PLUGIN_NAME, "remap plugin is successfully initialized");
return TS_SUCCESS; /* success */
}
@@ -272,7 +272,7 @@ TSRemapInit(TSRemapInterface *api_info, char *errbuf, int errbuf_size)
return TS_ERROR;
}
- TSDebug(PLUGIN_NAME, "remap plugin is succesfully initialized");
+ TSDebug(PLUGIN_NAME, "remap plugin is successfully initialized");
return TS_SUCCESS;
}
@@ -176,7 +176,7 @@ TSRemapInit(TSREMAP_INTERFACE *api_info, char *errbuf, int errbuf_size)
return TS_ERROR;
}
- INKDebug("hipes", "plugin is succesfully initialized");
+ INKDebug("hipes", "plugin is successfully initialized");
return TS_SUCCESS;
}
@@ -239,6 +239,6 @@ void TSPluginInit(int argc, const char *argv[])
TSHttpHookAdd(TS_HTTP_READ_REQUEST_HDR_HOOK, cont);
TSDebug(PLUGIN_NAME,
- "plugin is succesfully initialized [plugin mode]");
+ "plugin is successfully initialized [plugin mode]");
return;
}
@@ -243,7 +243,7 @@ TSPluginInit(int argc, const char *argv[]) {
TSContDataSet (cont, (void *)data);
- TSDebug(PLUGIN_NAME, "plugin is succesfully initialized [plugin mode]");
+ TSDebug(PLUGIN_NAME, "plugin is successfully initialized [plugin mode]");
iniparser_freedict(ini);
return;
}
@@ -150,7 +150,7 @@ TSRemapInit(TSRemapInterface* api_info, char *errbuf, int errbuf_size)
return TS_ERROR;
}
- TSDebug(PLUGIN_NAME, "remap plugin is succesfully initialized");
+ TSDebug(PLUGIN_NAME, "remap plugin is successfully initialized");
return TS_SUCCESS; /* success */
}
@@ -558,7 +558,7 @@ TSRemapInit(TSRemapInterface* api_info, char *errbuf, int errbuf_size)
}
setup_memory_allocation();
- TSDebug(PLUGIN_NAME, "plugin is succesfully initialized");
+ TSDebug(PLUGIN_NAME, "plugin is successfully initialized");
return TS_SUCCESS;
}
@@ -137,7 +137,7 @@ json_out_stat(TSRecordType rec_type, void *edata, int registered,
case TS_RECORDDATATYPE_STRING:
APPEND_STAT(name, "%s", datum->rec_string); break;
default:
- TSDebug("istats", "unkown type for %s: %d", name, data_type);
+ TSDebug("istats", "unknown type for %s: %d", name, data_type);
break;
}
}
View
@@ -825,8 +825,8 @@ template<class Data, class Result> int ControlMatcher<Data, Result>::BuildTable(
/****************************************************************
* TEMPLATE INSTANTIATIONS GO HERE
*
- * We have to explictly instantiate the templates so that
- * evertything works on with dec ccx, sun CC, and g++
+ * We have to explicitly instantiate the templates so that
+ * everything works on with dec ccx, sun CC, and g++
*
* Details on the different comipilers:
*
View
@@ -1362,7 +1362,7 @@ REGRESSION_TEST(SDK_API_TSContCreate) (RegressionTest * test, int atype, int *ps
TSMutex mutexp = TSMutexCreate();
TSCont contp = TSContCreate(cont_handler, mutexp);
- if (TS_SUCCESS == TSMutexLockTry(mutexp)) { // Mutex is grabbed succesfully
+ if (TS_SUCCESS == TSMutexLockTry(mutexp)) { // Mutex is grabbed successfully
TSContCall(contp, (TSEvent) 0, NULL);
TSMutexUnlock(mutexp);
} else { //mutex has problems
View
@@ -405,7 +405,7 @@ initialize_process_manager()
ink_strlcpy(management_directory, Layout::get()->sysconfdir, sizeof(management_directory));
if (access(management_directory, R_OK) == -1) {
fprintf(stderr,"unable to access() management path '%s': %d, %s\n", management_directory, errno, strerror(errno));
- fprintf(stderr,"please set management path via command line '-d <managment directory>'\n");
+ fprintf(stderr,"please set management path via command line '-d <management directory>'\n");
_exit(1);
}
}
View
@@ -1296,7 +1296,7 @@ struct HTTPCacheAlt
// destroyed we decrement the refcount
// on that buffer so that it gets destroyed
// We don't want to use a ref count ptr (Ptr<>)
- // since our ownership model requires explict
+ // since our ownership model requires explicit
// destroys and ref count pointers defeat this
RefCountObj *m_ext_buffer;
};
View
@@ -892,7 +892,7 @@ HdrHeap::unmarshal(int buf_length, int obj_type, HdrHeapObjImpl ** found_obj, Re
// by reference into other header heap therefore we need
// to the set the refcount ptr for the strings. We don't
// actually increase the refcount here since for the header
- // the lifetime is explict but copies will increase
+ // the lifetime is explicit but copies will increase
// the refcount
if (block_ref) {
m_ronly_heap[0].m_ref_count_ptr.m_ptr = block_ref;
@@ -8826,7 +8826,7 @@ void
HttpTransact::add_new_stat_block(State* s)
{
// We keep the block around till the end of transaction
- // We don't need explictly deallocate it later since
+ // We don't need explicitly deallocate it later since
// when the transaction is over, the arena will be destroyed
ink_assert(s->current_stats->next_insert == StatBlockEntries);
StatBlock *new_block = (StatBlock *) s->arena.alloc(sizeof(StatBlock));
View
@@ -79,7 +79,7 @@ chunked_reenable(HttpTunnelProducer * p, HttpTunnel * tunnel)
// Also, make sure the tunnel has not been deallocated on
// the call to tunnel->main_handler
if (r == EVENT_CONT && p->alive && p->chunked_handler.state != ChunkedHandler::CHUNK_FLOW_CONTROL) {
- // INKqa05737 - since we explictly disabled the vc by setting
+ // INKqa05737 - since we explicitly disabled the vc by setting
// nbytes = ndone when going into flow control, we need
// set nbytes up again here
p->read_vio->nbytes = INT64_MAX;
View
@@ -264,7 +264,7 @@
@verbatim
int Log::access (LogAccess *entry);
- The return value is Log::OK if all log objects succesfully logged the
+ The return value is Log::OK if all log objects successfully logged the
entry. Otherwise, it has the following bits set to indicate what happened
ret_val & Log::SKIP - at least one object filtered the entry
@@ -107,7 +107,7 @@ initialize_process_manager()
if (access(management_directory, R_OK) == -1) {
fprintf(stderr,"unable to access() management path '%s': %d, %s\n",
management_directory, errno, strerror(errno));
- fprintf(stderr,"please set management path via command line '-d <managment directory>'\n");
+ fprintf(stderr,"please set management path via command line '-d <management directory>'\n");
_exit(1);
}
}

0 comments on commit 78b8134

Please sign in to comment.