[master] 3857621 Mention BACKEND comparison now fully working
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Mon Mar 13 17:40:07 CET 2017
commit 3857621bfe0ebe22f77a3f6def7239d620ccf02c
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Mon Mar 13 15:39:47 2017 +0100
Mention BACKEND comparison now fully working
diff --git a/doc/sphinx/whats-new/upgrading-5.1.rst b/doc/sphinx/whats-new/upgrading-5.1.rst
index 2accfdc..1e7747d 100644
--- a/doc/sphinx/whats-new/upgrading-5.1.rst
+++ b/doc/sphinx/whats-new/upgrading-5.1.rst
@@ -118,11 +118,17 @@ Other notes on data types:
* When ``bereq.backend`` is set to a director, then it returns an
actual backend on subsequent reads if the director resolves to a
backend immediately, or the director otherwise. If ``bereq.backend``
- was set to a director, then ``beresp.backend`` returns the backend
+ was set to a director, then ``beresp.backend`` references the backend
to which it was set for the fetch. When either of these is used in
string context, it returns the name of the director or of the
resolved backend.
+* Comparisons between symbols of type BACKEND now work properly::
+
+ if (bereq.backend == foo.backend()) {
+ # do something specific to the foo backends
+ }
+
* DURATION types may be used in boolean contexts, and are evaluated as
false when the duration is less than or equal to zero, true
otherwise.
More information about the varnish-commit
mailing list