1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-01-18 04:58:51 +02:00

Fix directory syncs running recursively when only the specified directory should be synced.

Reported by Craig A. James.
This commit is contained in:
David Steele 2018-04-03 18:12:03 -04:00
parent 46b6be6d72
commit 5890272247
2 changed files with 11 additions and 1 deletions

View File

@ -14,6 +14,16 @@
<release-list> <release-list>
<release date="XXXX-XX-XX" version="2.02dev" title="UNDER DEVELOPMENT"> <release date="XXXX-XX-XX" version="2.02dev" title="UNDER DEVELOPMENT">
<release-core-list> <release-core-list>
<release-bug-list>
<release-item>
<release-item-contributor-list>
<release-item-ideator id="james.craig"/>
</release-item-contributor-list>
<p>Fix directory syncs running recursively when only the specified directory should be synced.</p>
</release-item>
</release-bug-list>
<release-development-list> <release-development-list>
<release-item> <release-item>
<p>Storage object improvements. Convert all functions to variadic functions. Enforce read-only storage. Add <code>storageLocalWrite()</code> helper function. Add <code>storageExists()</code>, <code>storagePathCreate()</code>, <code>storageRemove()</code>, and <code>storageStat()</code>. Add <code>StorageFile</code> object and <code>storageOpenRead()</code>/<code>storageOpenWrite()</code>.</p> <p>Storage object improvements. Convert all functions to variadic functions. Enforce read-only storage. Add <code>storageLocalWrite()</code> helper function. Add <code>storageExists()</code>, <code>storagePathCreate()</code>, <code>storageRemove()</code>, and <code>storageStat()</code>. Add <code>StorageFile</code> object and <code>storageOpenRead()</code>/<code>storageOpenWrite()</code>.</p>

View File

@ -750,7 +750,7 @@ sub pathSync
{name => 'bRecurse', default => false}, {name => 'bRecurse', default => false},
); );
$self->driver()->pathSync($self->pathGet($strPathExp), {bRecurse => true}); $self->driver()->pathSync($self->pathGet($strPathExp), {bRecurse => $bRecurse});
# Return from function and log return values if any # Return from function and log return values if any
return logDebugReturn($strOperation); return logDebugReturn($strOperation);