pgbackrest.git / summary / log / commit / refs
commit ef9dc89e080d7b364a00fec138d1961c703dd02a
Author: David Steele <david@pgmasters.net>
Date: Wed Jan 16 16:49:12 2019 +0000
Update Storage::Local->list() to accept an undefined path.
The Perl code has a tendency to generate absolute paths even when they are not needed. This change helps the C and Perl storage work together via the protocol layer.
doc/xml/release.xml | 4 ++++
lib/pgBackRest/Storage/Local.pm | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/doc/xml/release.xml b/doc/xml/release.xml
index 67e5c1747..0adda4bc2 100644
--- a/doc/xml/release.xml
+++ b/doc/xml/release.xml
@@ -49,6 +49,10 @@
<p>Update Perl repo rules to work when stanza is not specified.</p>
</release-item>
+ <release-item>
+ <p>Update <code>Storage::Local->list()</code> to accept an undefined path.</p>
+ </release-item>
+
<release-item>
<p>Null-terminate list returned by <code>strLstPtr()</code>.</p>
</release-item>
diff --git a/lib/pgBackRest/Storage/Local.pm b/lib/pgBackRest/Storage/Local.pm
index 196176fb4..588bbbe44 100644
--- a/lib/pgBackRest/Storage/Local.pm
+++ b/lib/pgBackRest/Storage/Local.pm
@@ -301,7 +301,7 @@ sub list
logDebugParam
(
__PACKAGE__ . '->list', \@_,
- {name => 'strPathExp'},
+ {name => 'strPathExp', required => false},
{name => 'strExpression', optional => true},
{name => 'strSortOrder', optional => true, default => 'forward'},
{name => 'bIgnoreMissing', optional => true, default => false},
[parent: b4146b6bff99]