Undo removal of method parameters.
This should be done on a separate branch for a different pull request.
This commit is contained in:
@@ -272,7 +272,7 @@ namespace Duplicati.Library.Main
|
||||
public string Newname;
|
||||
}
|
||||
|
||||
public DatabaseCollector(LocalDatabase database)
|
||||
public DatabaseCollector(LocalDatabase database, IBackendWriter stats)
|
||||
{
|
||||
m_database = database;
|
||||
m_dbqueue = new List<IDbEntry>();
|
||||
@@ -376,7 +376,7 @@ namespace Duplicati.Library.Main
|
||||
m_numberofretries = options.NumberOfRetries;
|
||||
m_retrydelay = options.RetryDelay;
|
||||
|
||||
m_db = new DatabaseCollector(database);
|
||||
m_db = new DatabaseCollector(database, statwriter);
|
||||
|
||||
m_backend = DynamicLoader.BackendLoader.GetBackend(m_backendurl, m_options.RawOptions);
|
||||
if (m_backend == null)
|
||||
|
||||
@@ -399,6 +399,9 @@ namespace Duplicati.Library.Utility
|
||||
/// </summary>
|
||||
public class DataPump
|
||||
{
|
||||
/// <summary> Default buffer size for pumping </summary>
|
||||
public const int DEFAULTBUFSIZE = 1 << 14; // 16K
|
||||
|
||||
private readonly bool m_closeInputWhenDone, m_closeOutputWhenDone;
|
||||
private readonly Action<DataPump> m_callbackFinalizePumping = null;
|
||||
private Stream m_input, m_output;
|
||||
@@ -412,7 +415,7 @@ namespace Duplicati.Library.Utility
|
||||
/// <param name="callbackFinalizePumping"> A callback to issue when pumping is done but before streams are closed. e.g. Can add data to output. </param>
|
||||
/// <param name="dontCloseInputWhenDone"> Disable auto close of input stream when pumping is done. </param>
|
||||
/// <param name="dontCloseOutputWhenDone"> Disable auto close of output stream when pumping is done. </param>
|
||||
public DataPump(Stream input, Stream output
|
||||
public DataPump(Stream input, Stream output, int bufsize = DEFAULTBUFSIZE
|
||||
, Action<DataPump> callbackFinalizePumping = null
|
||||
, bool dontCloseInputWhenDone = false, bool dontCloseOutputWhenDone = false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user