You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by ka...@apache.org on 2011/02/15 01:20:49 UTC

svn commit: r1070704 - in /tcl/rivet/trunk: ChangeLog src/apache-2/mod_rivet.c src/apache-2/rivetCore.c

Author: karl
Date: Tue Feb 15 00:20:48 2011
New Revision: 1070704

URL: http://svn.apache.org/viewvc?rev=1070704&view=rev
Log:
* src/apache-2/mod_rivet.c: Only create root interpreter once, not twice.  In 
Rivet_CopyConfig cache_size and cache_free were getting copied twice.  Only 
once now.

* src/apache-2/rivetCore.c: Remove unused command var from Rivet_Upload. Remove
unneeded loglevel var from Rivet_LogErrorCmd.

Modified:
    tcl/rivet/trunk/ChangeLog
    tcl/rivet/trunk/src/apache-2/mod_rivet.c
    tcl/rivet/trunk/src/apache-2/rivetCore.c

Modified: tcl/rivet/trunk/ChangeLog
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/ChangeLog?rev=1070704&r1=1070703&r2=1070704&view=diff
==============================================================================
--- tcl/rivet/trunk/ChangeLog (original)
+++ tcl/rivet/trunk/ChangeLog Tue Feb 15 00:20:48 2011
@@ -1,3 +1,7 @@
+2011-02-14 Karl Lehenbauer <ka...@apache.org>
+    * src/apache-2/mod_rivet.c: Only create root interpreter once, not twice.  In Rivet_CopyConfig cache_size and cache_free were getting copied twice.  Only once now.
+    * src/apache-2/rivetCore.c: Remove unused command var from Rivet_Upload.  Remove unneeded loglevel var from Rivet_LogErrorCmd.
+
 2011-01-31 Massimo Manghi <mx...@apache.org>
     * configure.ac: default value for directive SeparateVirtualInterps changed to 'yes'.
     * VERSION: version number set as 2.1.0r1 ('r' is for 'revision')

Modified: tcl/rivet/trunk/src/apache-2/mod_rivet.c
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/src/apache-2/mod_rivet.c?rev=1070704&r1=1070703&r2=1070704&view=diff
==============================================================================
--- tcl/rivet/trunk/src/apache-2/mod_rivet.c (original)
+++ tcl/rivet/trunk/src/apache-2/mod_rivet.c Tue Feb 15 00:20:48 2011
@@ -639,8 +639,6 @@ Rivet_CopyConfig( rivet_server_conf *old
     /* These are pointers so that they can be passed around... */
     newrsc->cache_size = oldrsc->cache_size;
     newrsc->cache_free = oldrsc->cache_free;
-    newrsc->cache_size = oldrsc->cache_size;
-    newrsc->cache_free = oldrsc->cache_free;
     newrsc->upload_max = oldrsc->upload_max;
     newrsc->upload_files_to_var = oldrsc->upload_files_to_var;
     newrsc->separate_virtual_interps = oldrsc->separate_virtual_interps;
@@ -1428,7 +1426,7 @@ Rivet_ChildExit(void *data)
 static Tcl_Interp*
 Rivet_CreateTclInterp (server_rec* s)
 {
-    Tcl_Interp* interp = Tcl_CreateInterp();
+    Tcl_Interp* interp;
 
     /* Initialize TCL stuff  */
     Tcl_FindExecutable(RIVET_NAMEOFEXECUTABLE);

Modified: tcl/rivet/trunk/src/apache-2/rivetCore.c
URL: http://svn.apache.org/viewvc/tcl/rivet/trunk/src/apache-2/rivetCore.c?rev=1070704&r1=1070703&r2=1070704&view=diff
==============================================================================
--- tcl/rivet/trunk/src/apache-2/rivetCore.c (original)
+++ tcl/rivet/trunk/src/apache-2/rivetCore.c Tue Feb 15 00:20:48 2011
@@ -820,7 +820,6 @@ TCL_CMD_HEADER( Rivet_ApacheTable )
 TCL_CMD_HEADER( Rivet_Upload )
 {
     char *varname = NULL;
-    char *command = NULL;
 
     int subcommandindex;
 
@@ -852,7 +851,6 @@ TCL_CMD_HEADER( Rivet_Upload )
     };
 
     rivet_interp_globals *globals = Tcl_GetAssocData(interp, "rivet", NULL);
-    command = Tcl_GetString(objv[1]);
     if (Tcl_GetIndexFromObj(interp, objv[1], SubCommand,
 			"channel|save|data|exists|size|type|filename|names|tempname"
 			"|tempname|names",
@@ -1147,7 +1145,6 @@ TCL_CMD_HEADER( Rivet_VirtualFilenameCmd
 
 TCL_CMD_HEADER( Rivet_LogErrorCmd )
 {
-    char *loglevel = NULL;
     char *message = NULL;
 
     server_rec *serverRec;
@@ -1185,7 +1182,6 @@ TCL_CMD_HEADER( Rivet_LogErrorCmd )
 	return TCL_ERROR;
     }
 
-    loglevel = Tcl_GetString(objv[1]);
     message = Tcl_GetString (objv[2]);
     if (Tcl_GetIndexFromObj(interp, objv[1], logLevel,
 			"emerg|alert|crit|err|warning|notice|info|debug",



---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-cvs-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-cvs-help@tcl.apache.org