trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From iga...@apache.org
Subject svn commit: r1059341 - /trafficserver/traffic/trunk/proxy/mgmt/web2/WebHttp.cc
Date Sat, 15 Jan 2011 14:25:39 GMT
Author: igalic
Date: Sat Jan 15 14:25:39 2011
New Revision: 1059341

URL: http://svn.apache.org/viewvc?rev=1059341&view=rev
Log:
Should've done the test compile *before* comitting.

Modified:
    trafficserver/traffic/trunk/proxy/mgmt/web2/WebHttp.cc

Modified: trafficserver/traffic/trunk/proxy/mgmt/web2/WebHttp.cc
URL: http://svn.apache.org/viewvc/trafficserver/traffic/trunk/proxy/mgmt/web2/WebHttp.cc?rev=1059341&r1=1059340&r2=1059341&view=diff
==============================================================================
--- trafficserver/traffic/trunk/proxy/mgmt/web2/WebHttp.cc (original)
+++ trafficserver/traffic/trunk/proxy/mgmt/web2/WebHttp.cc Sat Jan 15 14:25:39 2011
@@ -109,30 +109,6 @@ InkHashTable *g_display_config_ht = 0;
 
 void spawn_script(WebHttpContext * whc, char *script, char **args);
 
-//-------------------------------------------------------------------------
-// record_version_valid
-//-------------------------------------------------------------------------
-
-static bool
-record_version_valid(char *record_version)
-{
-  int old_version, old_pid, cur_version;
-  // coverity[secure_coding]
-  if (sscanf(record_version, "%d:%d", &old_pid, &old_version) == 2 && old_version
>= 0) {
-    cur_version = RecGetRecordUpdateCount(RECT_CONFIG);
-    //fix me --> lmgmt->record_data->pid
-    // TODO: need to check the PID ??
-    //    if (cur_version != old_version || lmgmt->record_data->pid != old_pid) {
-    if (cur_version != old_version) {
-      // we are out of date since the version number has been incremented
-      return false;
-    } else {
-      return true;
-    }
-  }
-  // bad format, return false to be safe
-  return false;
-}
 
 //-------------------------------------------------------------------------
 // set_record_value



Mime
View raw message