1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-05-22 10:15:16 +02:00

Allow MemContext objects to be copied to a new parent.

This makes it easier to create objects and then copy them to another context when they are complete without having to worry about freeing them on error. Update List, StringList, and Buffer to allow moves. Update Ini and Storage to take advantage of moves.
This commit is contained in:
David Steele
2018-04-06 17:04:52 -04:00
parent b9f636cab4
commit f3b56cf8f3
17 changed files with 443 additions and 240 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ my $oTestDef =
},
{
&TESTDEF_NAME => 'mem-context',
&TESTDEF_TOTAL => 6,
&TESTDEF_TOTAL => 7,
&TESTDEF_C => true,
&TESTDEF_CDEF => '-DNO_MEM_CONTEXT -DNO_LOG',