[master] bb8e863 Reindent for spaces, explain obj changes.
Lasse Karstensen
lkarsten at varnish-software.com
Thu Mar 20 15:02:35 CET 2014
commit bb8e863d89f0a8c19e245f41143f187cb91bd921
Author: Lasse Karstensen <lkarsten at varnish-software.com>
Date: Thu Mar 20 15:02:08 2014 +0100
Reindent for spaces, explain obj changes.
diff --git a/doc/sphinx/whats-new/upgrading.rst b/doc/sphinx/whats-new/upgrading.rst
index 2921835..02e6f02 100644
--- a/doc/sphinx/whats-new/upgrading.rst
+++ b/doc/sphinx/whats-new/upgrading.rst
@@ -25,15 +25,14 @@ Use the hash director as a client director
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Since the client director was already a special case of the hash director, it has been removed, and you should use the hash director directly::
- sub vcl_init {
- new h = directors.hash();
- h.add_backend(b1, 1);
- h.add_backend(b2, 1);
- }
-
- sub vcl_recv {
- set req.backend_hint = h.backend(client.ip);
- }
+ sub vcl_init {
+ new h = directors.hash();
+ h.add_backend(b1, 1);
+ h.add_backend(b2, 1);
+ }
+ sub vcl_recv {
+ set req.backend_hint = h.backend(client.ip);
+ }
error() is now a return value
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -85,6 +84,12 @@ Any custom-made subs cannot be named 'vcl_*' anymore. This namespace is reserved
req.backend.healthy replaced by std.healthy(req.backend)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+obj is now read-only
+~~~~~~~~~~~~~~~~~~~~
+
+`obj` is now read-only. `obj.hits`, if enabled in VCL, now counts per objecthead,
+not per object. `obj.last_use` has been retired.
+
Changes to parameters
=====================
More information about the varnish-commit
mailing list