dropping away unneeded threads param in ZRestore

Signed-off-by: Gleb Golubitsky <sectoid@gnolltech.org>
master
Gleb Golubitsky 2014-11-27 18:29:09 +02:00
parent e5cebd17e6
commit c1433dd524
2 changed files with 3 additions and 5 deletions

View File

@ -139,12 +139,11 @@ void ZBackup::backupFromStdin( string const & outputFileName )
}
ZRestore::ZRestore( string const & storageDir, string const & password,
size_t threads, size_t cacheSize ):
size_t cacheSize ):
ZBackupBase( storageDir, password ),
chunkStorageReader( storageInfo, encryptionkey, chunkIndex, getBundlesPath(),
cacheSize )
{
this->threads = threads;
}
void ZRestore::restoreToStdin( string const & inputFileName )
@ -520,7 +519,7 @@ int main( int argc, char *argv[] )
return EXIT_FAILURE;
}
ZRestore zr( ZRestore::deriveStorageDirFromBackupsFile( args[ 1 ] ),
passwords[ 0 ], threads, cacheSizeMb * 1048576 );
passwords[ 0 ], cacheSizeMb * 1048576 );
zr.restoreToStdin( args[ 1 ] );
}
else

View File

@ -39,11 +39,10 @@ public:
class ZRestore: public ZBackupBase
{
ChunkStorage::Reader chunkStorageReader;
size_t threads;
public:
ZRestore( string const & storageDir, string const & password,
size_t threads, size_t cacheSize );
size_t cacheSize );
/// Restores the data to stdin
void restoreToStdin( string const & inputFileName );