MINOR: sample: use smp_make_rw() in upper/lower converters
authorWilly Tarreau <w@1wt.eu>
Tue, 9 Aug 2016 12:29:38 +0000 (14:29 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Aug 2016 12:31:25 +0000 (14:31 +0200)
commitf0645dce4f4db48d3b763f5fc4f68de76f89b278
tree06164012ada46088fafc464895d33743bc686bdf
parentf65c6c0456410396ab7033c7db0ad892d14a4577
MINOR: sample: use smp_make_rw() in upper/lower converters

There's no point in always duplicating the sample, just ensure it's
writable, as was done prior to the smp_dup() change. This should be
backported to 1.6 to avoid a performance regression caused by this
change (about 30% more time for upper/lower due to the copy).
src/sample.c