commit | c55015ee5b9f24b2855056bbae9c95324d7e4759 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Sep 07 19:02:32 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Sep 07 19:59:58 2018 +0200 |
tree | 40e0bbc4d160163f9fa6472aef8606c051986161 | |
parent | 36b2736a6952c2853be5d729b5ca53fcc86eb2f2 [diff] |
MEDIUM: snapshots: dynamically allocate the snapshots Now upon error we dynamically allocate the snapshot instead of overwriting it. This way there is no more memory wasted in the proxy to hold the two error snapshot descriptors. Also an appreciable side effect of this is that the proxy's lock is only taken during the pointer swap, no more while copying the buffer's contents. This saves 480 bytes of memory per proxy.